AST change: keep nkStaticStmt in the AST for incremental compilation support
This commit is contained in:
parent
1ed7751dac
commit
9ab92824f6
4 changed files with 9 additions and 6 deletions
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue