parent
0014b9c48e
commit
9d9ecc3c1d
1 changed files with 4 additions and 0 deletions
|
|
@ -320,6 +320,10 @@ proc isSimpleExpr(p: PProc; n: PNode): bool =
|
||||||
for c in n:
|
for c in n:
|
||||||
if not p.isSimpleExpr(c): return false
|
if not p.isSimpleExpr(c): return false
|
||||||
result = true
|
result = true
|
||||||
|
elif n.kind == nkStmtListExpr:
|
||||||
|
for i in 0..<n.len-1:
|
||||||
|
if n[i].kind notin {nkCommentStmt, nkEmpty}: return false
|
||||||
|
result = isSimpleExpr(p, n.lastSon)
|
||||||
elif n.isAtom:
|
elif n.isAtom:
|
||||||
result = true
|
result = true
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue