MCPcopy Create free account
hub / github.com/akyoto/q / parseReturn

Function parseReturn

src/ast/parseReturn.go:9–16  ·  view source on GitHub ↗
(tokens token.List, file *fs.File)

Source from the content-addressed store, hash-verified

7)
8
9func parseReturn(tokens token.List, file *fs.File) (Node, error) {
10 if len(tokens) == 1 {
11 return &Return{Token: tokens[0]}, nil
12 }
13
14 values := expression.NewList(tokens[1:])
15 return &Return{Values: values, Token: tokens[0]}, nil
16}

Callers 1

parseKeywordFunction · 0.85

Calls 1

NewListFunction · 0.92

Tested by

no test coverage detected