diff options
-rw-r--r-- | parse.go | 2 |
1 files changed, 2 insertions, 0 deletions
@@ -96,6 +96,7 @@ func parseFunction(toks *tokens, errs chan<- error) *functionExpr { errs <- err return nil } + line := toks.current().line if ok { link = exportLinkage } else { @@ -170,6 +171,7 @@ func parseFunction(toks *tokens, errs chan<- error) *functionExpr { params: params, returnType: returnTypeTok.value, blk: blk, + ln: line, } } |