diff options
Diffstat (limited to 'vendor/github.com/d5/tengo/compiler/symbol.go')
-rw-r--r-- | vendor/github.com/d5/tengo/compiler/symbol.go | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/vendor/github.com/d5/tengo/compiler/symbol.go b/vendor/github.com/d5/tengo/compiler/symbol.go new file mode 100644 index 00000000..bcd53234 --- /dev/null +++ b/vendor/github.com/d5/tengo/compiler/symbol.go @@ -0,0 +1,9 @@ +package compiler + +// Symbol represents a symbol in the symbol table. +type Symbol struct { + Name string + Scope SymbolScope + Index int + LocalAssigned bool // if the local symbol is assigned at least once +} |