C# Class Rhino.Ast.Loop

Abstract base type for loops.
Abstract base type for loops.
Inheritance: Scope
Show file Open project: hazzik/Rhino.Net Class Usage Examples

Protected Properties

Property Type Description
body AstNode
lp int
rp int

Public Methods

Method Description
GetBody ( ) : AstNode

Returns loop body

GetLp ( ) : int

Returns left paren position, -1 if missing

GetRp ( ) : int

Returns right paren position, -1 if missing

Loop ( ) : Rhino.Ast
Loop ( int pos ) : Rhino.Ast
Loop ( int pos, int len ) : Rhino.Ast
SetBody ( AstNode body ) : void

Sets loop body.

Sets loop body. Sets the parent of the body to this loop node, and updates its offset to be relative. Extends the length of this node to include the body.

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

Method Details

GetBody() public method

Returns loop body
public GetBody ( ) : AstNode
return AstNode

GetLp() public method

Returns left paren position, -1 if missing
public GetLp ( ) : int
return int

GetRp() public method

Returns right paren position, -1 if missing
public GetRp ( ) : int
return int

Loop() public method

public Loop ( ) : Rhino.Ast
return Rhino.Ast

Loop() public method

public Loop ( int pos ) : Rhino.Ast
pos int
return Rhino.Ast

Loop() public method

public Loop ( int pos, int len ) : Rhino.Ast
pos int
len int
return Rhino.Ast

SetBody() public method

Sets loop body.
Sets loop body. Sets the parent of the body to this loop node, and updates its offset to be relative. Extends the length of this node to include the body.
public SetBody ( AstNode body ) : void
body AstNode
return void

SetLp() public method

Sets left paren position
public SetLp ( int lp ) : void
lp int
return void

SetParens() public method

Sets both paren positions
public SetParens ( int lp, int rp ) : void
lp int
rp int
return void

SetRp() public method

Sets right paren position
public SetRp ( int rp ) : void
rp int
return void

Property Details

body protected property

protected AstNode body
return AstNode

lp protected property

protected int lp
return int

rp protected property

protected int rp
return int