code cleanup: remove newScopeForIf switch
This commit is contained in:
parent
86a7054c88
commit
db35ac435b
5 changed files with 4 additions and 78 deletions
|
|
@ -340,9 +340,8 @@ proc semTemplBody(c: var TemplCtx, n: PNode): PNode =
|
|||
for i in countup(0, sonsLen(n)-1):
|
||||
var it = n.sons[i]
|
||||
if it.len == 2:
|
||||
when newScopeForIf: openScope(c)
|
||||
openScope(c)
|
||||
it.sons[0] = semTemplBody(c, it.sons[0])
|
||||
when not newScopeForIf: openScope(c)
|
||||
it.sons[1] = semTemplBody(c, it.sons[1])
|
||||
closeScope(c)
|
||||
else:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue