Method | Description | |
---|---|---|
ExpressionStatement ( ) : System.Text | ||
ExpressionStatement ( AstNode expr ) : System.Text |
Constructs a new
|
|
ExpressionStatement ( AstNode expr, bool hasResult ) : System.Text |
Constructs a new
|
|
ExpressionStatement ( int pos, int len ) : System.Text | ||
ExpressionStatement ( int pos, int len, AstNode expr ) : System.Text |
Constructs a new
|
|
GetExpression ( ) : AstNode |
Returns the wrapped expression
|
|
HasSideEffects ( ) : bool |
Returns true if this node has side effects
|
|
SetExpression ( AstNode expression ) : void |
Sets the wrapped expression, and sets its parent to this node. Sets the wrapped expression, and sets its parent to this node. |
|
SetHasResult ( ) : void |
Called by the parser to set node type to EXPR_RESULT if this node is not within a Function. Called by the parser to set node type to EXPR_RESULT if this node is not within a Function. |
|
ToSource ( int depth ) : string | ||
Visit ( NodeVisitor v ) : void |
Visits this node, then the wrapped statement. Visits this node, then the wrapped statement. |
public ExpressionStatement ( AstNode expr ) : System.Text | ||
expr | AstNode | the wrapped expression |
return | System.Text |
public ExpressionStatement ( AstNode expr, bool hasResult ) : System.Text | ||
expr | AstNode | the wrapped expression |
hasResult | bool |
///
/// true
/// if this expression has side
/// effects. If true, sets node type to EXPR_RESULT, else to EXPR_VOID.
/// |
return | System.Text |
public ExpressionStatement ( int pos, int len ) : System.Text | ||
pos | int | |
len | int | |
return | System.Text |
public ExpressionStatement ( int pos, int len, AstNode expr ) : System.Text | ||
pos | int | |
len | int | |
expr | AstNode |
/// the wrapped
/// ExpressionStatement
/// 's bounds are set to those of expr,
/// and expr's parent is set to this node.
/// |
return | System.Text |
public SetExpression ( AstNode expression ) : void | ||
expression | AstNode | |
return | void |