Method | Description | |
---|---|---|
GetCondition ( ) : AstNode |
Returns if condition
|
|
GetElsePart ( ) : AstNode |
Returns statement to execute if condition is false
|
|
GetElsePosition ( ) : int |
Returns position of "else" keyword, or -1
|
|
GetLp ( ) : int |
Returns left paren offset
|
|
GetRp ( ) : int |
Returns right paren position, -1 if missing
|
|
GetThenPart ( ) : AstNode |
Returns statement to execute if condition is true
|
|
IfStatement ( ) : System.Text | ||
IfStatement ( int pos ) : System.Text | ||
IfStatement ( int pos, int len ) : System.Text | ||
SetCondition ( AstNode condition ) : void |
Sets if condition. Sets if condition. |
|
SetElsePart ( AstNode elsePart ) : void |
Sets statement to execute if condition is false
|
|
SetElsePosition ( int elsePosition ) : void |
Sets position of "else" keyword, -1 if not present
|
|
SetLp ( int lp ) : void |
Sets left paren offset
|
|
SetParens ( int lp, int rp ) : void |
Sets both paren positions
|
|
SetRp ( int rp ) : void |
Sets right paren position, -1 if missing
|
|
SetThenPart ( AstNode thenPart ) : void |
Sets statement to execute if condition is true
|
|
ToSource ( int depth ) : string | ||
Visit ( NodeVisitor v ) : void |
Visits this node, the condition, the then-part, and if supplied, the else-part. Visits this node, the condition, the then-part, and if supplied, the else-part. |
public IfStatement ( int pos, int len ) : System.Text | ||
pos | int | |
len | int | |
return | System.Text |
public SetCondition ( AstNode condition ) : void | ||
condition | AstNode | |
return | void |
public SetElsePart ( AstNode elsePart ) : void | ||
elsePart | AstNode |
/// statement to execute if condition is false.
/// Can be
/// null
/// .
/// |
return | void |
public SetElsePosition ( int elsePosition ) : void | ||
elsePosition | int | |
return | void |
public SetThenPart ( AstNode thenPart ) : void | ||
thenPart | AstNode | |
return | void |