Fixed scope OverVariables stopping immediately

This commit is contained in:
Sasha Koshka 2023-11-26 04:01:55 -05:00
parent 2559b88fbb
commit e71b9951e9
1 changed files with 1 additions and 1 deletions

View File

@ -36,6 +36,6 @@ func (this *Scope) AddVariable (declaration *Declaration) {
func (this *Scope) OverVariables (callback func (*Declaration) bool) {
for _, declaration := range this.variables {
if callback(declaration) { break }
if !callback(declaration) { break }
}
}