/// <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; }
/// <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; }