Added Node constructors needed to create new nodes to emit.
This commit is contained in:
parent
2c230751d2
commit
b0f2ce201a
3 changed files with 191 additions and 15 deletions
|
@ -54,8 +54,8 @@ static this()
|
|||
///Construct a node with specified value.
|
||||
Node node(T)(T value)
|
||||
{
|
||||
static if(Node.Value.allowed!T){return Node(Node.Value(value));}
|
||||
else{return Node(Node.userValue(value));}
|
||||
static if(Node.Value.allowed!T){return Node.rawNode(Node.Value(value));}
|
||||
else{return Node.rawNode(Node.userValue(value));}
|
||||
}
|
||||
|
||||
///Construct a pair of nodes with specified values.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue