aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--parse.go2
1 files changed, 2 insertions, 0 deletions
diff --git a/parse.go b/parse.go
index fa01c52..4704ed3 100644
--- a/parse.go
+++ b/parse.go
@@ -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,
}
}