Метод | Описание | |
---|---|---|
ArgCount ( this node ) : int | ||
ArgNamed ( this self, Symbol name ) : LNode | ||
Args ( this node ) : NegListSlice |
||
AsLNode ( this |
Converts a list of LNodes to a single LNode by using the list as the argument list in a call to the specified identifier, or, if the list contains a single item, by returning that single item. This is the reverse of the operation performed by AsList(LNode,Symbol). |
|
AsList ( this block, Symbol listIdentifier ) : VList |
Interprets a node as a list by returning
|
|
AttrCount ( this node ) : int | ||
AttrNamed ( this node, Symbol name ) : ILNode | ||
AttrNamed ( this self, Symbol name ) : LNode | ||
Attrs ( this node ) : NegListSlice |
||
BaseStyle ( this node ) : NodeStyle | ||
Calls ( this node, Symbol name ) : bool | ||
GetCaptureIdentifier ( LNode pattern, bool identifierRequired = true ) : LNode |
Checks if
|
|
GetTrailingTrivia ( this node ) : IListSource |
||
GetTrailingTrivia ( this node ) : VList |
Gets all trailing trivia attached to the specified node.
|
|
GetTrailingTrivia ( this |
Gets all trailing trivia attached to the specified node. Trailing trivia is represented by a call to #trivia_trailing in a node's attribute list; each argument to #trivia_trailing represents one piece of trivia. If the attribute list has multiple calls to #trivia_trailing, this method combines those lists into a single list. |
|
GetTrivia ( this node ) : VList |
||
GetTrivia ( this |
||
HasAttrs ( this node ) : bool | ||
HasPAttrs ( this node ) : bool | ||
HasSpecialName ( this node ) : bool | ||
InParens ( this node ) : LNode |
Returns the same node with a parentheses attribute added.
|
|
InParens ( this node, ISourceFile file, int startIndex, int endIndex ) : LNode |
Returns the same node with a parentheses attribute added.
|
|
InParens ( this node, SourceRange range ) : LNode |
Returns the same node with a parentheses attribute added. The node's range is changed to the provided SourceRange and the original range of the node is assigned to the parentheses attribute. |
|
IndexWithName ( this |
||
IsCall ( this node ) : bool | ||
IsId ( this node ) : bool | ||
IsIdNamed ( this node, Symbol name ) : bool | ||
IsIdNamed ( this node, string name ) : bool | ||
IsLiteral ( this node ) : bool | ||
IsParenthesizedExpr ( this node ) : bool | ||
IsTrivia ( this node ) : bool | ||
MatchesPattern ( this candidate, LNode pattern, LNode>.IDictionary |
||
MatchesPattern ( this candidate, LNode pattern, LNode>.IDictionary |
||
MatchesPattern ( this candidate, LNode pattern, LNode>.MMap |
Determines whether one Loyc tree "matches" another. This is different from a simple equality test in that (1) trivia atributes do not have to match, and (2) the pattern can contain placeholders represented by calls to $ (the substitution operator) with an identifier as a parameter. Placeholders match any subtree, and are saved to the Attributes in patterns are not yet supported. |
|
NodeNamed ( this |
||
NodeNamed ( this |
||
PlusTrailingTrivia ( this node, LNode trivia ) : LNode |
Adds additional trailing trivia to a node.
|
|
PlusTrailingTrivia ( this node, VList |
Adds additional trailing trivia to a node.
|
|
PlusTrailingTrivia ( this |
Adds additional trailing trivia to an attribute list.
|
|
PlusTrailingTrivia ( this |
Adds additional trailing trivia to an attribute list. Has no effect if Trailing trivia is represented by a call to #trivia_trailing in a node's attribute list; each argument to #trivia_trailing represents one piece of trivia. |
|
SpliceAdd ( this |
||
SpliceInsert ( this |
||
ToLNode ( ILNode node ) : LNode |
Converts ILNode to LNode recursively. If the specified node is already an LNode, this method simply does a cast.
|
|
WithSpliced ( this |
||
WithSpliced ( this |
||
WithTrailingTrivia ( this node, VList |
Removes a node's trailing trivia and adds a new list of trailing trivia.
|
|
WithTrailingTrivia ( this |
Removes all existing trailing trivia from an attribute list and adds a new list of trailing trivia. This method has a side-effect of recreating the #trivia_trailing node, if there is one, at the end of the attribute list. If |
|
Without ( this |
||
WithoutAttr ( this self, LNode node ) : LNode | ||
WithoutAttrNamed ( this self, Symbol name ) : LNode | ||
WithoutAttrNamed ( this self, Symbol name, LNode &removedAttr ) : LNode | ||
WithoutNodeNamed ( this |
||
WithoutNodeNamed ( this |
||
WithoutOuterParens ( this self ) : LNode |
Removes a single pair of parentheses, if the node has a #trivia_inParens attribute. Returns the same node when no parens are present.
|
|
WithoutTrailingTrivia ( this |
Gets a new list with any #trivia_trailing attributes removed.
|
|
WithoutTrailingTrivia ( this |
Gets a new list with any #trivia_trailing attributes removed. Those trivia are returned in an `out` parameter.
|
Метод | Описание | |
---|---|---|
AddCapture ( LNode>.MMap |
||
AddCapture ( LNode>.MMap |
||
AttributesMatch ( LNode candidate, LNode pattern, LNode>.MMap |
||
CaptureGroup ( int &c, int &p, VList |
||
IsParamsCapture ( LNode pattern ) : bool | ||
ListMatches ( VList |
||
MatchThenParams ( VList |
||
MatchesPatternNested ( LNode candidate, LNode pattern, LNode>.MMap |
||
ToLNodeCore ( ILNode node ) : LNode |
public static ArgCount ( this node ) : int | ||
node | this | |
Результат | int |
public static ArgNamed ( this self, Symbol name ) : LNode | ||
self | this | |
name | Symbol | |
Результат | LNode |
public static Args ( this node ) : NegListSlice |
||
node | this | |
Результат | NegListSlice |
public static AsLNode ( this |
||
list | this |
|
listIdentifier | Symbol | Target of the node that is created if |
Результат | LNode |
public static AsList ( this block, Symbol listIdentifier ) : VList |
||
block | this | |
listIdentifier | Symbol | |
Результат | VList |
public static AttrCount ( this node ) : int | ||
node | this | |
Результат | int |
public static AttrNamed ( this node, Symbol name ) : ILNode | ||
node | this | |
name | Symbol | |
Результат | ILNode |
public static AttrNamed ( this self, Symbol name ) : LNode | ||
self | this | |
name | Symbol | |
Результат | LNode |
public static Attrs ( this node ) : NegListSlice |
||
node | this | |
Результат | NegListSlice |
public static BaseStyle ( this node ) : NodeStyle | ||
node | this | |
Результат | NodeStyle |
public static Calls ( this node, Symbol name ) : bool | ||
node | this | |
name | Symbol | |
Результат | bool |
public static GetCaptureIdentifier ( LNode pattern, bool identifierRequired = true ) : LNode | ||
pattern | LNode | |
identifierRequired | bool | |
Результат | LNode |
public static GetTrailingTrivia ( this node ) : IListSource |
||
node | this | |
Результат | IListSource |
public static GetTrailingTrivia ( this node ) : VList |
||
node | this | |
Результат | VList |
public static GetTrailingTrivia ( this |
||
attrs | this |
|
Результат | VList |
public static GetTrivia ( this node ) : VList |
||
node | this | |
Результат | VList |
public static GetTrivia ( this |
||
attrs | this |
|
Результат | VList |
public static HasAttrs ( this node ) : bool | ||
node | this | |
Результат | bool |
public static HasPAttrs ( this node ) : bool | ||
node | this | |
Результат | bool |
public static HasSpecialName ( this node ) : bool | ||
node | this | |
Результат | bool |
public static InParens ( this node ) : LNode | ||
node | this | |
Результат | LNode |
public static InParens ( this node, ISourceFile file, int startIndex, int endIndex ) : LNode | ||
node | this | |
file | ISourceFile | |
startIndex | int | |
endIndex | int | |
Результат | LNode |
public static InParens ( this node, SourceRange range ) : LNode | ||
node | this | |
range | SourceRange | |
Результат | LNode |
public static IndexWithName ( this |
||
self | this |
|
name | Symbol | |
resultIfNotFound | int | |
Результат | int |
public static IsCall ( this node ) : bool | ||
node | this | |
Результат | bool |
public static IsIdNamed ( this node, Symbol name ) : bool | ||
node | this | |
name | Symbol | |
Результат | bool |
public static IsIdNamed ( this node, string name ) : bool | ||
node | this | |
name | string | |
Результат | bool |
public static IsLiteral ( this node ) : bool | ||
node | this | |
Результат | bool |
public static IsParenthesizedExpr ( this node ) : bool | ||
node | this | |
Результат | bool |
public static IsTrivia ( this node ) : bool | ||
node | this | |
Результат | bool |
public static MatchesPattern ( this candidate, LNode pattern, LNode>.IDictionary |
||
candidate | this | |
pattern | LNode | |
captures | LNode>.IDictionary | |
Результат | bool |
public static MatchesPattern ( this candidate, LNode pattern, LNode>.IDictionary |
||
candidate | this | |
pattern | LNode | |
captures | LNode>.IDictionary | |
unmatchedAttrs | VList |
|
Результат | bool |
public static MatchesPattern ( this candidate, LNode pattern, LNode>.MMap |
||
candidate | this | A node that you want to compare with a 'pattern'. |
pattern | LNode | A syntax tree that may contain placeholders. A
/// placeholder is a call to the $ operator with one parameter, which must
/// be either (A) a simple identifier, or (B) the ".." operator with a simple
/// identifier as its single parameter. Otherwise, the $ operator is treated
/// literally as something that must exist in |
captures | LNode>.MMap | A table that maps placeholder names from
/// |
unmatchedAttrs | VList |
On return, a list of trivia attributes in
/// |
Результат | bool |
public static NodeNamed ( this |
||
self | this |
|
name | Symbol | |
Результат | ILNode |
public static NodeNamed ( this |
||
self | this |
|
name | Symbol | |
Результат | LNode |
public static PlusTrailingTrivia ( this node, LNode trivia ) : LNode | ||
node | this | |
trivia | LNode | |
Результат | LNode |
public static PlusTrailingTrivia ( this node, VList |
||
node | this | |
trivia | VList |
|
Результат | LNode |
public static PlusTrailingTrivia ( this |
||
attrs | this |
|
trivia | LNode | |
Результат | VList |
public static PlusTrailingTrivia ( this |
||
attrs | this |
|
trivia | VList |
|
Результат | VList |
public static SpliceAdd ( this |
||
list | this |
|
node | LNode | |
listName | Symbol | |
Результат | void |
public static SpliceInsert ( this |
||
list | this |
|
index | int | |
node | LNode | |
listName | Symbol | |
Результат | void |
public static ToLNode ( ILNode node ) : LNode | ||
node | ILNode | |
Результат | LNode |
public static WithSpliced ( this |
||
list | this |
|
node | LNode | |
listName | Symbol | |
Результат | VList |
public static WithSpliced ( this |
||
list | this |
|
index | int | |
node | LNode | |
listName | Symbol | |
Результат | VList |
public static WithTrailingTrivia ( this node, VList |
||
node | this | |
trivia | VList |
|
Результат | LNode |
public static WithTrailingTrivia ( this |
||
attrs | this |
|
trivia | VList |
|
Результат | VList |
public static Without ( this |
||
list | this |
|
node | LNode | |
Результат | VList |
public static WithoutAttr ( this self, LNode node ) : LNode | ||
self | this | |
node | LNode | |
Результат | LNode |
public static WithoutAttrNamed ( this self, Symbol name ) : LNode | ||
self | this | |
name | Symbol | |
Результат | LNode |
public static WithoutAttrNamed ( this self, Symbol name, LNode &removedAttr ) : LNode | ||
self | this | |
name | Symbol | |
removedAttr | LNode | |
Результат | LNode |
public static WithoutNodeNamed ( this |
||
a | this |
|
name | Symbol | |
Результат | VList |
public static WithoutNodeNamed ( this |
||
list | this |
|
name | Symbol | |
removedNode | LNode | |
Результат | VList |
public static WithoutOuterParens ( this self ) : LNode | ||
self | this | |
Результат | LNode |
public static WithoutTrailingTrivia ( this |
||
attrs | this |
|
Результат | VList |
public static WithoutTrailingTrivia ( this |
||
attrs | this |
|
trailingTrivia | VList |
|
Результат | VList |