Méthode | Description | |
---|---|---|
AddElement ( |
Adds an element to the list, and sets its parent to this node. Adds an element to the list, and sets its parent to this node. |
|
GetElements ( ) : IList |
Returns the element list. Returns the element list. Returns an immutable empty list if there are no elements. |
|
IsDestructuring ( ) : bool |
Returns true if this node is in a destructuring position: a function parameter, the target of a variable initializer, the iterator of a for..in loop, etc. Returns true if this node is in a destructuring position: a function parameter, the target of a variable initializer, the iterator of a for..in loop, etc. |
|
ObjectLiteral ( ) : System.Collections.Generic | ||
ObjectLiteral ( int pos ) : System.Collections.Generic | ||
ObjectLiteral ( int pos, int len ) : System.Collections.Generic | ||
SetElements ( IList |
Sets the element list, and updates the parent of each element. Sets the element list, and updates the parent of each element. Replaces any existing elements. |
|
SetIsDestructuring ( bool destructuring ) : void |
Marks this node as being a destructuring form - that is, appearing in a context such as
|
|
ToSource ( int depth ) : string | ||
Visit ( NodeVisitor v ) : void |
Visits this node, then visits each child property node, in lexical (source) order. Visits this node, then visits each child property node, in lexical (source) order. |
public AddElement ( |
||
element | the property node to append to the end of the list | |
Résultat | void |
public ObjectLiteral ( ) : System.Collections.Generic | ||
Résultat | System.Collections.Generic |
public ObjectLiteral ( int pos ) : System.Collections.Generic | ||
pos | int | |
Résultat | System.Collections.Generic |
public ObjectLiteral ( int pos, int len ) : System.Collections.Generic | ||
pos | int | |
len | int | |
Résultat | System.Collections.Generic |
public SetElements ( IList |
||
elements | IList |
/// the element list. Can be
/// null
/// .
/// |
Résultat | void |
public SetIsDestructuring ( bool destructuring ) : void | ||
destructuring | bool | |
Résultat | void |