write tracking for funcs implemented

This commit is contained in:
Andreas Rumpf 2017-09-23 23:29:23 +02:00
commit be2e7290fb
2 changed files with 5 additions and 1 deletions

View file

@ -1604,6 +1604,9 @@ proc semIterator(c: PContext, n: PNode): PNode =
proc semProc(c: PContext, n: PNode): PNode =
result = semProcAux(c, n, skProc, procPragmas)
proc semFunc(c: PContext, n: PNode): PNode =
result = semProcAux(c, n, skFunc, procPragmas)
proc semMethod(c: PContext, n: PNode): PNode =
if not isTopLevel(c): localError(n.info, errXOnlyAtModuleScope, "method")
result = semProcAux(c, n, skMethod, methodPragmas)