This commit is contained in:
Ganesh Viswanathan 2018-11-27 16:58:11 -06:00
commit fb053dd81e
3 changed files with 16 additions and 13 deletions

View file

@ -228,6 +228,9 @@ proc pDeclaration*(node: ref Ast) =
pFunctionDeclarator(node.children[1], styp) pFunctionDeclarator(node.children[1], styp)
proc genNimAst*(node: ref Ast) = proc genNimAst*(node: ref Ast) =
if node.isNil:
return
case node.sym: case node.sym:
of ERROR: of ERROR:
let (line, col) = getLineCol(node) let (line, col) = getLineCol(node)