diff options
Diffstat (limited to 'symbol/symbol.go')
| -rw-r--r-- | symbol/symbol.go | 19 |
1 files changed, 10 insertions, 9 deletions
diff --git a/symbol/symbol.go b/symbol/symbol.go index 96c860f..2ed8907 100644 --- a/symbol/symbol.go +++ b/symbol/symbol.go @@ -31,15 +31,16 @@ const UnsetAddr = -65535 // Symbol structure used in parser and compiler. type Symbol struct { - Kind Kind - Name string // - Index int // address of symbol in frame - PkgPath string // - Type *vm.Type // - Value vm.Value // - Cval constant.Value // - Local bool // if true address is relative to local frame, otherwise global - Used bool // + Kind Kind + Name string // + Index int // address of symbol in frame + PkgPath string // + Type *vm.Type // + Value vm.Value // + SliceLen int // initial slice length (slice types only) + Cval constant.Value // + Local bool // if true address is relative to local frame, otherwise global + Used bool // } // func (s *Symbol) String() string { |
