Simplified return code
This commit is contained in:
parent
ef512441cf
commit
bd71a29c04
12 changed files with 66 additions and 77 deletions
|
@ -97,7 +97,7 @@ func scanFunctionSignature(file *fs.File, tokens token.List, i int, delimiter to
|
|||
outputTokens := tokens[typeStart:typeEnd]
|
||||
|
||||
err := outputTokens.Split(func(tokens token.List) error {
|
||||
function.Output = append(function.Output, core.NewOutput(tokens))
|
||||
function.Output = append(function.Output, core.NewParameter(tokens))
|
||||
return nil
|
||||
})
|
||||
|
||||
|
@ -117,7 +117,7 @@ func scanFunctionSignature(file *fs.File, tokens token.List, i int, delimiter to
|
|||
return errors.New(errors.MissingType, file, tokens[0].End())
|
||||
}
|
||||
|
||||
function.Input = append(function.Input, core.NewInput(tokens))
|
||||
function.Input = append(function.Input, core.NewParameter(tokens))
|
||||
return nil
|
||||
})
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue