Class SyntaxNode
Represents a particular language element.
[Serializable]
public class SyntaxNode : ISyntaxNode, ICloneable
- Inheritance
-
SyntaxNode
- Implements
- Derived
- Extension Methods
Constructors
- SyntaxNode()
Initializes a new instance of the
SyntaxNode
class with default settings.
- SyntaxNode(Point, string)
Initializes a new instance of the
SyntaxNode
class with specified parameters.
- SyntaxNode(Point, string, int)
Initializes a new instance of the
SyntaxNode
class with specified parameters.
- SyntaxNode(Point, string, int, SyntaxNodeOptions)
Initializes a new instance of the
SyntaxNode
class with specified parameters.
Properties
- AttributeCount
Represents number of attributes in the attribute collection.
- AttributeList
Gets a list of attributes.
- Attributes
Gets or sets an attribute collection in the form of array.
- ChildCount
Represents number of children in the child collection.
- ChildList
Gets a list of child nodes.
- Childs
Gets or sets a collection of child nodes in the form of array.
- ErrorCount
Represents number of syntax errors in the error collection.
- ErrorList
Gets a list of syntax errors.
- Errors
Gets or sets an error collection in the form of array.
- HasAttributes
Indicates whether node has attributes.
- HasChildren
Indicates whether node has children.
- HasErrors
Indicates whether node has errors.
- Index
Represents index of then node within its parent child collection.
- Level
Represents node level inside SyntaxTree.
- Name
Gets or sets node name.
- NodeType
Gets or sets type of the node.
- Options
Gets or sets node options that defines its behavior.
- Parent
Gets or sets
ISyntaxNode
that holds this node in its child list.
- Position
Gets or sets node position in the code text.
- Range
Gets or sets node scope.
- Root
Represents root level
ISyntaxNode
in the syntax tree.
- Size
Gets or sets node dimension.
Methods
- AddAttribute()
Creates a new
ISyntaxAttribute
and adds it to the attribute collection.
- AddAttribute(ISyntaxAttribute)
Adds specified attribute to the attribute collection.
- AddAttributes(ISyntaxAttributes)
Adds specified attributes to the attribute collection.
- AddChild()
Creates a new
ISyntaxNode
and adds it to the child collection.
- AddChild(ISyntaxNode)
Adds specified node to the child collection.
- AddChildren(ISyntaxNodes)
Adds specified nodes to the child collection.
- AddError()
Creates a new
ISyntaxError
and add it to the error collection.
- AddError(ISyntaxError)
Adds specified error to the error collection.
- AddErrors(ISyntaxErrors)
Adds specified errors to the error collection.
- Assign(ISyntaxNode)
Copies contents from another
ISyntaxNode
object.
- BlockDeleting(Rectangle, IComparer<ISyntaxNode>)
When implemented by a class, removes node's inside the specified rectangle.
- Clear()
Removes all elements from child nodes, attribute and error collections.
- ClearAfter(Point)
Removes all elements from child nodes, attribute and error collections starting from given position.
Specifies starting position
- Clone()
Creates a new object that is a copy of the current
ISyntaxNode
object.
- ContainsErrors()
Indicates whether node or its children contain errors.
- FindAttribute(string)
Finds attribute by its name.
- FindAttributes(string)
Locates all attribute with given name.
- FindNode(ISyntaxNode, IComparer<ISyntaxNode>)
Finds child node by comparing nodes with the given object.
- FindNode(int)
Finds child node by its type.
- FindNode(string)
Finds child node by its name.
- FindNodes(ISyntaxNode, IComparer<ISyntaxNode>, ISyntaxNodes)
Locates all nodes matching search criteria.
- GetIndent(int, int)
Returns indentation level of this syntax node.
- GetIndent(int, int, out bool)
Returns indentation level of this syntax node.
- HasAsParent(ISyntaxNode)
Indicates whether the node has specified node as a parent node.
- InsertChild(ISyntaxNode, IComparer<ISyntaxNode>)
Inserts specified node to the child collection.
- PositionChanged(int, int, int, int, IComparer<ISyntaxNode>)
Updates content of this
ISyntaxNode
.
- Sort(IComparer<ISyntaxNode>)
Sorts the
ISyntaxNode
in the child list using the specified comparer.
- ToString()
Returns a
String
that represents the currentSyntaxNode
.