C# Class Rhino.Ast.BreakStatement

A break statement.
A break statement. Node type is Rhino.Token.BREAK .

BreakStatement : break [no LineTerminator here] [Identifier] ;
Inheritance: Jump
Show file Open project: hazzik/Rhino.Net Class Usage Examples

Public Methods

Method Description
BreakStatement ( ) : System.Text
BreakStatement ( int pos ) : System.Text
BreakStatement ( int pos, int len ) : System.Text
GetBreakLabel ( ) : Name

Returns the intended label of this break statement

GetBreakTarget ( ) : AstNode

Returns the statement to break to

SetBreakLabel ( Name label ) : void

Sets the intended label of this break statement, e.g.

Sets the intended label of this break statement, e.g. 'foo' in "break foo". Also sets the parent of the label to this node.

SetBreakTarget ( Jump target ) : void

Sets the statement to break to.

Sets the statement to break to.

ToSource ( int depth ) : string
Visit ( NodeVisitor v ) : void

Visits this node, then visits the break label if non- null .

Method Details

BreakStatement() public method

public BreakStatement ( ) : System.Text
return System.Text

BreakStatement() public method

public BreakStatement ( int pos ) : System.Text
pos int
return System.Text

BreakStatement() public method

public BreakStatement ( int pos, int len ) : System.Text
pos int
len int
return System.Text

GetBreakLabel() public method

Returns the intended label of this break statement
public GetBreakLabel ( ) : Name
return Name

GetBreakTarget() public method

Returns the statement to break to
public GetBreakTarget ( ) : AstNode
return AstNode

SetBreakLabel() public method

Sets the intended label of this break statement, e.g.
Sets the intended label of this break statement, e.g. 'foo' in "break foo". Also sets the parent of the label to this node.
public SetBreakLabel ( Name label ) : void
label Name /// the break label, or /// null /// if the statement is /// just the "break" keyword by itself. ///
return void

SetBreakTarget() public method

Sets the statement to break to.
Sets the statement to break to.
/// if target is /// null ///
public SetBreakTarget ( Jump target ) : void
target Jump the statement to break to
return void

ToSource() public method

public ToSource ( int depth ) : string
depth int
return string

Visit() public method

Visits this node, then visits the break label if non- null .
public Visit ( NodeVisitor v ) : void
v NodeVisitor
return void