Added Node constructors needed to create new nodes to emit.

This commit is contained in:
Ferdinand Majerech 2011-08-21 03:56:21 +02:00
parent 2c230751d2
commit b0f2ce201a
3 changed files with 191 additions and 15 deletions

View file

@ -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.