Table of Contents

Interface ISyntaxNode

Namespace
Alternet.Syntax
Assembly
Alternet.Syntax.v9.dll

Represents properties and methods to describe a particular language element.

public interface ISyntaxNode : ICloneable
Extension Methods

Properties

AttributeCount

When implemented by a class, represents number of attributes in the attribute collection.

AttributeList

When implemented by a class, gets a list of attributes.

Attributes

When implemented by a class, gets or sets an attribute collection in the form of array.

ChildCount

When implemented by a class, represents number of children in the child collection.

ChildList

When implemented by a class, gets a list of child nodes.

Childs

When implemented by a class, gets or sets a collection of child nodes in the form of array.

ErrorCount

When implemented by a class, represents number of syntax errors in the error collection.

ErrorList

When implemented by a class, gets a list of syntax errors.

Errors

When implemented by a class, gets or sets an error collection in the form of array.

HasAttributes

When implemented by a class, indicates whether node has attributes.

HasChildren

When implemented by a class, indicates whether node has children.

HasErrors

When implemented by a class, indicates whether node has errors.

Index

When implemented by a class, represents index of then node within its parent child collection.

Level

When implemented by a class, represents node level inside SyntaxTree.

Name

When implemented by a class, gets or sets node name.

NodeType

When implemented by a class, gets or sets type of the node.

Options

When implemented by a class, gets or sets node options that defines its behavior.

Parent

When implemented by a class, gets or sets ISyntaxNode that holds this node in its child list.

Position

When implemented by a class, gets or sets node position in the code text.

Range

When implemented by a class, gets or sets node scope.

Root

When implemented by a class, represents root level ISyntaxNode in the syntax tree.

Size

When implemented by a class, gets or sets node dimension.

Methods

AddAttribute()

When implemented by a class, creates a new ISyntaxAttribute and adds it to the attribute collection.

AddAttribute(ISyntaxAttribute)

When implemented by a class, adds specified attribute to the attribute collection.

AddAttributes(ISyntaxAttributes)

When implemented by a class, adds specified attributes to the attribute collection.

AddChild()

When implemented by a class, creates a new ISyntaxNode and adds it to the child collection.

AddChild(ISyntaxNode)

When implemented by a class, adds specified node to the child collection.

AddChildren(ISyntaxNodes)

When implemented by a class, adds specified nodes to the child collection.

AddError()

When implemented by a class, creates a new ISyntaxError and add it to the error collection.

AddError(ISyntaxError)

When implemented by a class, adds specified error to the error collection.

AddErrors(ISyntaxErrors)

When implemented by a class, 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()

When implemented by a class, removes all elements from child nodes, attribute and error collections.

ClearAfter(Point)

When implemented by a class, removes all elements from child nodes, attribute and error collections starting from given position.

Specifies starting position
ContainsErrors()

When implemented by a class, indicates whether node or its children contain errors.

FindAttribute(string)

When implemented by a class, finds attribute by its name.

FindAttributes(string)

When implemented by a class, locates all attribute with given name.

FindNode(ISyntaxNode, IComparer<ISyntaxNode>)

When implemented by a class, finds specified child node.

FindNode(int)

When implemented by a class, finds child node by its type.

FindNode(string)

When implemented by a class, finds child node by its name.

FindNodes(ISyntaxNode, IComparer<ISyntaxNode>, ISyntaxNodes)

When implemented by a class, locates all nodes matching search criteria.

GetIndent(int, int)

When implemented by a class, returns indentation level of this syntax node.

GetIndent(int, int, out bool)

When implemented by a class, returns indentation level of this syntax node.

HasAsParent(ISyntaxNode)

When implemented by a class, indicates whether the node has specified node as a parent node.

InsertChild(ISyntaxNode, IComparer<ISyntaxNode>)

When implemented by a class, inserts specified node to the child collection.

PositionChanged(int, int, int, int, IComparer<ISyntaxNode>)

When implemented by a class, updates content of this ISyntaxNode.

Sort(IComparer<ISyntaxNode>)

When implemented by a class, sorts the ISyntaxNode in the child list using the specified comparer.