AstNode
Public / Methods
CheckCount
Checks if the number of child nodes (see Count) is within the given range.
- ValidatingException
-
If the check has failed.
CheckType
Checks if the type of this node if equal to the given one.
- ValidatingException
-
If the check has failed.
CheckValue
Checks if the textual value of this node in the code input matches the given expected value.
- ValidatingException
-
If the check has failed.
Child
2 overloads
Returns the first child node that has the given token type.
Returns the n-th child node, assuming that it exists.
CreatePsi
Creates the PSI model for this AST node.
The outermost invocation of this method will call the IPsiNode.Resolve method once on the root PSI node, before returning it.
- ValidatingException
-
If there is no PSI factory method available for this AST node type or the AST structure is invalid.
Extract
Extracts the range of this AST node from the given string.
The given string must be identical to the parser input (e.g. see CodeInput).
- See also