From 7b41b0f84113d3b9901d5c598dd909a1df6f960f Mon Sep 17 00:00:00 2001 From: Zahary Karadjov Date: Mon, 19 Mar 2012 12:13:42 +0200 Subject: [PATCH] missed file from the previous commit --- compiler/ast.nim | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/compiler/ast.nim b/compiler/ast.nim index 37f95c2306..a1b69bed86 100755 --- a/compiler/ast.nim +++ b/compiler/ast.nim @@ -794,6 +794,13 @@ proc newNodeI(kind: TNodeKind, info: TLineInfo): PNode = result = newNode(kind) result.info = info +proc newNode*(kind: TNodeKind, info: TLineInfo, sons: TNodeSeq = @[], + typ: PType = nil): PNode = + result = newNode(kind) + result.info = info + result.typ = typ + result.sons = sons + proc newNodeIT(kind: TNodeKind, info: TLineInfo, typ: PType): PNode = result = newNode(kind) result.info = info