missed file from the previous commit

This commit is contained in:
Zahary Karadjov 2012-03-19 12:13:42 +02:00
commit 7b41b0f841

View file

@ -794,6 +794,13 @@ proc newNodeI(kind: TNodeKind, info: TLineInfo): PNode =
result = newNode(kind) result = newNode(kind)
result.info = info 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 = proc newNodeIT(kind: TNodeKind, info: TLineInfo, typ: PType): PNode =
result = newNode(kind) result = newNode(kind)
result.info = info result.info = info