Removed FuncOutput from the tree

This commit is contained in:
2022-09-17 12:12:04 -04:00
parent a492622e30
commit 49eb7f9b9d
4 changed files with 5 additions and 22 deletions

View File

@@ -171,7 +171,7 @@ func (parser *ParsingOperation) parseFuncArguments (
if err != nil { return }
case lexer.TokenKindLessThan:
output := FuncOutput { }
output := Declaration { }
output.location = parser.token.Location()
// get name
@@ -186,6 +186,8 @@ func (parser *ParsingOperation) parseFuncArguments (
if err != nil { return }
output.what, err = parser.parseType()
if err != nil { return }
into.outputs = append(into.outputs, output)
parser.expect(lexer.TokenKindNewline)
if err != nil { return }