From 6ae0a2530c9a57fc093d2159591d9cae8140d641 Mon Sep 17 00:00:00 2001 From: Marc Vertes Date: Thu, 8 Jan 2026 23:46:02 +0100 Subject: fix: improve composite literal for slices --- symbol/symbol.go | 19 ++++++++++--------- 1 file changed, 10 insertions(+), 9 deletions(-) (limited to 'symbol/symbol.go') 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 { -- cgit v1.2.3