From ee9397bc031dc33e4f735b3331643bbf60a0d17a Mon Sep 17 00:00:00 2001 From: Marc Vertes Date: Fri, 16 Jan 2026 12:30:31 +0100 Subject: feat: handle slice expressions --- symbol/symbol.go | 3 +++ 1 file changed, 3 insertions(+) (limited to 'symbol/symbol.go') diff --git a/symbol/symbol.go b/symbol/symbol.go index 5e8610a..8f261e3 100644 --- a/symbol/symbol.go +++ b/symbol/symbol.go @@ -60,6 +60,9 @@ func (s *Symbol) IsFunc() bool { return s.Kind == Func } // IsPtr returns true if symbol is a pointer. func (s *Symbol) IsPtr() bool { return s.Type.Rtype.Kind() == reflect.Pointer } +// IsInt returns true if symbol is an int. +func (s *Symbol) IsInt() bool { return s.Type.Rtype.Kind() == reflect.Int } + // Vtype returns the VM type of a symbol. func Vtype(s *Symbol) *vm.Type { if s.Type != nil { -- cgit v1.2.3