From 79eaad4bbb778b04501fca724ce2641e25b33f3a Mon Sep 17 00:00:00 2001 From: Marc Vertes Date: Fri, 23 Jan 2026 09:23:51 +0100 Subject: chore: use parser.Token.Arg to store generated parameters --- parser/parse.go | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'parser') diff --git a/parser/parse.go b/parser/parse.go index 95179be..daf30ca 100644 --- a/parser/parse.go +++ b/parser/parse.go @@ -497,8 +497,7 @@ func (p *Parser) parseReturn(in Tokens) (out Tokens, err error) { // TODO: the function symbol should be already present in the parser context. // otherwise no way to handle anonymous func. s := p.function - in[0].Beg = s.Type.Rtype.NumOut() - in[0].End = s.Type.Rtype.NumIn() + in[0].Arg = []any{s.Type.Rtype.NumOut(), s.Type.Rtype.NumIn()} out = append(out, in[0]) return out, err } -- cgit v1.2.3