Method | Description | |
---|---|---|
AddStatement ( AstNode statement ) : void |
Adds a statement to the end of the statement list. Adds a statement to the end of the statement list. Sets the parent of the new statement to this node, updates its start offset to be relative to this node, and sets the length of this node to include the new child. |
|
GetExpression ( ) : AstNode |
Returns the case expression,
|
|
GetStatements ( ) : IList |
Returns statement list, which may be
|
|
IsDefault ( ) : bool |
Return true if this is a default case. Return true if this is a default case. |
|
SetExpression ( AstNode expression ) : void |
Sets the case expression,
|
|
SetStatements ( IList |
Sets statement list. Sets statement list. May be |
|
SwitchCase ( ) : System.Collections.Generic | ||
SwitchCase ( int pos ) : System.Collections.Generic | ||
SwitchCase ( int pos, int len ) : System.Collections.Generic | ||
ToSource ( int depth ) : string | ||
Visit ( NodeVisitor v ) : void |
Visits this node, then the case expression if present, then each statement (if any are specified). Visits this node, then the case expression if present, then each statement (if any are specified). |
public AddStatement ( AstNode statement ) : void | ||
statement | AstNode | a child statement |
return | void |
public SetExpression ( AstNode expression ) : void | ||
expression | AstNode | |
return | void |
public SetStatements ( IList |
||
statements | IList |
|
return | void |
public SwitchCase ( ) : System.Collections.Generic | ||
return | System.Collections.Generic |
public SwitchCase ( int pos ) : System.Collections.Generic | ||
pos | int | |
return | System.Collections.Generic |
public SwitchCase ( int pos, int len ) : System.Collections.Generic | ||
pos | int | |
len | int | |
return | System.Collections.Generic |