메소드 | 설명 | |
---|---|---|
AddElement ( AstNode element ) : void |
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. |
|
ArrayLiteral ( ) : System | ||
ArrayLiteral ( int pos ) : System | ||
ArrayLiteral ( int pos, int len ) : System | ||
GetDestructuringLength ( ) : int |
Returns destructuring length
|
|
GetElement ( int index ) : AstNode |
Returns element at specified index. Returns element at specified index. |
|
GetElements ( ) : IList |
Returns the element list
|
|
GetSize ( ) : int |
Returns the number of elements in this
|
|
GetSkipCount ( ) : int |
Used by code generator. Used by code generator. |
|
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. |
|
SetDestructuringLength ( int destructuringLength ) : void |
Sets destructuring length. Sets destructuring length. This is set by the parser and used by the code generator. |
|
SetElements ( IList |
Sets the element list, and sets each element's parent to this node. Sets the element list, and sets each element's parent to this node. |
|
SetIsDestructuring ( bool destructuring ) : void |
Marks this node as being a destructuring form - that is, appearing in a context such as
|
|
SetSkipCount ( int count ) : void |
Used by code generator. Used by code generator. |
|
ToSource ( int depth ) : string | ||
Visit ( NodeVisitor v ) : void |
Visits this node, then visits its element expressions in order. Visits this node, then visits its element expressions in order. Any empty elements are represented by |
public AddElement ( AstNode element ) : void | ||
element | AstNode | the element to add |
리턴 | void |
public GetElement ( int index ) : AstNode | ||
index | int | the index of the element to retrieve |
리턴 | AstNode |
public SetDestructuringLength ( int destructuringLength ) : void | ||
destructuringLength | int | |
리턴 | void |
public SetElements ( IList |
||
elements | IList |
/// the element list. Can be
/// null
/// .
/// |
리턴 | void |
public SetIsDestructuring ( bool destructuring ) : void | ||
destructuring | bool | |
리턴 | void |
public SetSkipCount ( int count ) : void | ||
count | int | the count of empty elements |
리턴 | void |