AST change: keep nkStaticStmt in the AST for incremental compilation support

This commit is contained in:
Andreas Rumpf 2018-06-03 20:16:29 +02:00
commit 9ab92824f6
4 changed files with 9 additions and 6 deletions

View file

@ -2306,7 +2306,7 @@ proc expr(p: BProc, n: PNode, d: var TLoc) =
genTypeSection(p.module, n)
of nkCommentStmt, nkIteratorDef, nkIncludeStmt,
nkImportStmt, nkImportExceptStmt, nkExportStmt, nkExportExceptStmt,
nkFromStmt, nkTemplateDef, nkMacroDef:
nkFromStmt, nkTemplateDef, nkMacroDef, nkStaticStmt:
discard
of nkPragma: genPragma(p, n)
of nkPragmaBlock: expr(p, n.lastSon, d)