even more strict isNil handling for strings/seqs in order to detect bugs
This commit is contained in:
parent
9047c3f582
commit
64517445ea
36 changed files with 193 additions and 245 deletions
|
|
@ -593,7 +593,6 @@ proc len*(n: SqlNode): int =
|
|||
proc `[]`*(n: SqlNode; i: int): SqlNode = n.sons[i]
|
||||
|
||||
proc add*(father, n: SqlNode) =
|
||||
if isNil(father.sons): father.sons = @[]
|
||||
add(father.sons, n)
|
||||
|
||||
proc getTok(p: var SqlParser) =
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue