missed file from the previous commit
This commit is contained in:
parent
e43f8d842b
commit
7b41b0f841
1 changed files with 7 additions and 0 deletions
|
|
@ -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
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue