xgo/compiler/symbol.go

10 lines
229 B
Go
Raw Normal View History

2019-01-09 10:17:42 +03:00
package compiler
// Symbol represents a symbol in the symbol table.
2019-01-09 10:17:42 +03:00
type Symbol struct {
2019-02-02 10:27:29 +03:00
Name string
Scope SymbolScope
Index int
LocalAssigned bool // if the local symbol is assigned at least once
2019-01-09 10:17:42 +03:00
}