* fixes #19013 [backport:1.6] * added test case
This commit is contained in:
parent
83a9c3ba31
commit
b7c66ce860
4 changed files with 46 additions and 8 deletions
|
|
@ -2101,3 +2101,11 @@ proc skipAddr*(n: PNode): PNode {.inline.} =
|
|||
proc isNewStyleConcept*(n: PNode): bool {.inline.} =
|
||||
assert n.kind == nkTypeClassTy
|
||||
result = n[0].kind == nkEmpty
|
||||
|
||||
const
|
||||
nodesToIgnoreSet* = {nkNone..pred(nkSym), succ(nkSym)..nkNilLit,
|
||||
nkTypeSection, nkProcDef, nkConverterDef,
|
||||
nkMethodDef, nkIteratorDef, nkMacroDef, nkTemplateDef, nkLambda, nkDo,
|
||||
nkFuncDef, nkConstSection, nkConstDef, nkIncludeStmt, nkImportStmt,
|
||||
nkExportStmt, nkPragma, nkCommentStmt, nkBreakState,
|
||||
nkTypeOfExpr, nkMixinStmt, nkBindStmt}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue