From e71b9951e98e1224fbb451df4c0e702dead7e364 Mon Sep 17 00:00:00 2001 From: Sasha Koshka Date: Sun, 26 Nov 2023 04:01:55 -0500 Subject: [PATCH] Fixed scope OverVariables stopping immediately --- entity/scope.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/entity/scope.go b/entity/scope.go index 12cca52..bbb1f62 100644 --- a/entity/scope.go +++ b/entity/scope.go @@ -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 } } }