fixes pragmas reorder (#21205)
This commit is contained in:
parent
4032eb4baa
commit
5b20f0685c
2 changed files with 20 additions and 0 deletions
|
|
@ -106,6 +106,7 @@ proc computeDeps(cache: IdentCache; n: PNode, declares, uses: var IntSet; topLev
|
|||
if a.kind == nkExprColonExpr and a[0].kind == nkIdent and a[0].ident.s == "pragma":
|
||||
# user defined pragma
|
||||
decl(a[1])
|
||||
for i in 1..<n.safeLen: deps(n[i])
|
||||
else:
|
||||
for i in 0..<n.safeLen: deps(n[i])
|
||||
of nkMixinStmt, nkBindStmt: discard
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue