Fix function parsing
This commit is contained in:
parent
21f55472fb
commit
aaff208be2
|
@ -35,8 +35,8 @@ func (this *Parser) parseTopLevel () error {
|
|||
if this.token.Is(lexer.LBracket) {
|
||||
function, err := this.parseFunctionCore(access)
|
||||
if err != nil { return err }
|
||||
// TODO add toplevel entity
|
||||
this.tree.AddDeclaration(function)
|
||||
return nil
|
||||
}
|
||||
|
||||
// TypeIdent: Method, or Typedef
|
||||
|
|
Loading…
Reference in New Issue