This commit is contained in:
Araq 2017-11-22 23:39:50 +01:00
commit a6226d9452
4 changed files with 35 additions and 2 deletions

View file

@ -1448,6 +1448,10 @@ proc rawAddSon*(father, son: PType) =
add(father.sons, son)
if not son.isNil: propagateToOwner(father, son)
proc rawAddSonNoPropagationOfTypeFlags*(father, son: PType) =
if isNil(father.sons): father.sons = @[]
add(father.sons, son)
proc addSonNilAllowed*(father, son: PNode) =
if isNil(father.sons): father.sons = @[]
add(father.sons, son)