forked from lug/matterbridge
4
vendor/github.com/d5/tengo/compiler/symbol_table.go
generated
vendored
4
vendor/github.com/d5/tengo/compiler/symbol_table.go
generated
vendored
@@ -64,9 +64,7 @@ func (t *SymbolTable) Resolve(name string) (symbol *Symbol, depth int, ok bool)
|
||||
return
|
||||
}
|
||||
|
||||
if !t.block {
|
||||
depth++
|
||||
}
|
||||
depth++
|
||||
|
||||
// if symbol is defined in parent table and if it's not global/builtin
|
||||
// then it's free variable.
|
||||
|
||||
Reference in New Issue
Block a user