[]
Represents a node in the syntax tree. The node can be terminal or non-terminal.
public abstract class SyntaxNode : ICloneable
protected SyntaxNode()
Gets children of a non-terminal node. Elements are not nullable.
public abstract IList<SyntaxNode> Children { get; }
Clones the syntax node if the node is mutable.
public SyntaxNode Clone()
If the node is mutable, returns the cloned object. Otherwise, returns the equivalent object from object pool.
Checks whether the SyntaxNode equal to another.
public override bool Equals(object obj)
obj
objectAnother syntax node.
Whether the current node equals to the specified node.
This object doesn't support getting hash code, because all fields are mutable.
public override int GetHashCode()
The hash code of the current type.
Loads a SyntaxNode from a string that contains formula, optionally specifying context.
public static SyntaxNode Parse(string text, ParseContext context)
text
stringA string that contains formula.
context
ParseContextA ParseContext that specifies base row, base column and R1C1 reference style.
A SyntaxNode populated from the string that contains formula.
Loads a SyntaxNode from a string that contains formula, optionally specifying context.
public static SyntaxNode Parse(string text)
text
stringA string that contains formula.
A SyntaxNode populated from the string that contains formula.
Returns the formula text for this node, optionally specifying context.
public override string ToString()
Returns the formula text for this node, optionally specifying context.
public virtual string ToString(UnParseContext context)
context
UnParseContextOptions for converting FormulaSyntaxTree to string.