summaryrefslogblamecommitdiffstats
path: root/vendor/github.com/d5/tengo/compiler/symbol.go
blob: bcd53234ee95c0ccdfdb3b1fd99875b4e220ab8f (plain) (tree)
1
2
3
4
5
6
7
8
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
}