Метод | Описание | |
---|---|---|
AddCase ( |
Adds a switch case statement to the end of the list. Adds a switch case statement to the end of the list. |
|
GetCases ( ) : IList |
Returns case statement list. Returns case statement list. If there are no cases, returns an immutable empty list. |
|
GetExpression ( ) : AstNode |
Returns the switch discriminant expression
|
|
GetLp ( ) : int |
Returns left paren position, -1 if missing
|
|
GetRp ( ) : int |
Returns right paren position, -1 if missing
|
|
SetCases ( IList |
Sets case statement list, and sets the parent of each child case to this node. Sets case statement list, and sets the parent of each child case to this node. |
|
SetExpression ( AstNode expression ) : void |
Sets the switch discriminant expression, and sets its parent to this node. Sets the switch discriminant expression, and sets its parent to this node. |
|
SetLp ( int lp ) : void |
Sets left paren position
|
|
SetParens ( int lp, int rp ) : void |
Sets both paren positions
|
|
SetRp ( int rp ) : void |
Sets right paren position
|
|
SwitchStatement ( ) : System.Collections.Generic | ||
SwitchStatement ( int pos ) : System.Collections.Generic | ||
SwitchStatement ( int pos, int len ) : System.Collections.Generic | ||
ToSource ( int depth ) : string | ||
Visit ( NodeVisitor v ) : void |
Visits this node, then the switch-expression, then the cases in lexical order. Visits this node, then the switch-expression, then the cases in lexical order. |
public AddCase ( |
||
switchCase | ||
Результат | void |
public SetCases ( IList |
||
cases | IList |
/// list, which may be
/// null
/// to remove all the cases
/// |
Результат | void |
public SetExpression ( AstNode expression ) : void | ||
expression | AstNode | |
Результат | void |
public SwitchStatement ( ) : System.Collections.Generic | ||
Результат | System.Collections.Generic |
public SwitchStatement ( int pos ) : System.Collections.Generic | ||
pos | int | |
Результат | System.Collections.Generic |
public SwitchStatement ( int pos, int len ) : System.Collections.Generic | ||
pos | int | |
len | int | |
Результат | System.Collections.Generic |