Fixed scope OverVariables stopping immediately
This commit is contained in:
parent
2559b88fbb
commit
e71b9951e9
|
@ -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 }
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue