Пример #1
0
 /// <summary> Creates a new reason node with specified text</summary>
 /// <param name="nodeText">node text</param>
 public Node(string nodeText) : base()
 {
     // base() is the same as Super() in java
     this.type       = Tokeniser.TokenType.T_Node;
     this.editorText = nodeText;
     this.nodeType   = ArgumentNodeType.reason;
     this.created    = DateTime.Now;
 }
Пример #2
0
 /// <summary>Node with the basics</summary>
 /// <param name="nodeText">Text</param>
 /// <param name="arg">Type of element</param>
 /// <param name="reference">Reference</param>
 public Node(string nodeText, ArgumentNodeType arg, string reference) : base()
 {
     // base() is the same as Super() in java
     this.type       = Tokeniser.TokenType.T_Node;
     this.editorText = nodeText;
     this.nodeType   = arg;
     this.reference  = reference;
     this.created    = DateTime.Now;
 }