diff options
author | Wim <wim@42.be> | 2020-10-11 23:07:00 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-10-11 23:07:00 +0200 |
commit | 2d98df61221e23b3be557d7b1931ee3d510ac32d (patch) | |
tree | 7898a2d3c2b3003bae97d50541443072046666f3 /vendor/github.com/d5/tengo/v2/compiler.go | |
parent | 219a5453f9edaa87aa7aa4b9d5f9c3de9c75b38f (diff) | |
download | matterbridge-msglm-2d98df61221e23b3be557d7b1931ee3d510ac32d.tar.gz matterbridge-msglm-2d98df61221e23b3be557d7b1931ee3d510ac32d.tar.bz2 matterbridge-msglm-2d98df61221e23b3be557d7b1931ee3d510ac32d.zip |
Update vendor (#1257)
Diffstat (limited to 'vendor/github.com/d5/tengo/v2/compiler.go')
-rw-r--r-- | vendor/github.com/d5/tengo/v2/compiler.go | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/vendor/github.com/d5/tengo/v2/compiler.go b/vendor/github.com/d5/tengo/v2/compiler.go index 1937a1d6..53cc7d38 100644 --- a/vendor/github.com/d5/tengo/v2/compiler.go +++ b/vendor/github.com/d5/tengo/v2/compiler.go @@ -323,7 +323,7 @@ func (c *Compiler) Compile(node parser.Node) error { return err } case *parser.Ident: - symbol, _, ok := c.symbolTable.Resolve(node.Name) + symbol, _, ok := c.symbolTable.Resolve(node.Name, false) if !ok { return c.errorf(node, "unresolved reference '%s'", node.Name) } @@ -659,7 +659,7 @@ func (c *Compiler) compileAssign( return c.errorf(node, "operator ':=' not allowed with selector") } - symbol, depth, exists := c.symbolTable.Resolve(ident) + symbol, depth, exists := c.symbolTable.Resolve(ident, false) if op == token.Define { if depth == 0 && exists { return c.errorf(node, "'%s' redeclared in this block", ident) |