Cleanup comesFromPush logic (#10278)
This commit is contained in:
parent
09ef25810a
commit
b0979c8b1c
1 changed files with 1 additions and 8 deletions
|
|
@ -1054,14 +1054,7 @@ proc singlePragma(c: PContext, sym: PSym, n: PNode, i: var int,
|
||||||
noVal(c, it)
|
noVal(c, it)
|
||||||
if sym == nil: invalidPragma(c, it)
|
if sym == nil: invalidPragma(c, it)
|
||||||
of wLine: pragmaLine(c, it)
|
of wLine: pragmaLine(c, it)
|
||||||
of wRaises, wTags:
|
of wRaises, wTags: pragmaRaisesOrTags(c, it)
|
||||||
if not sym.isNil and sym.kind in {skVar, skLet, skConst}:
|
|
||||||
if comesFromPush:
|
|
||||||
return
|
|
||||||
else:
|
|
||||||
invalidPragma(c, it)
|
|
||||||
else:
|
|
||||||
pragmaRaisesOrTags(c, it)
|
|
||||||
of wLocks:
|
of wLocks:
|
||||||
if sym == nil: pragmaLockStmt(c, it)
|
if sym == nil: pragmaLockStmt(c, it)
|
||||||
elif sym.typ == nil: invalidPragma(c, it)
|
elif sym.typ == nil: invalidPragma(c, it)
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue