C# Class Rhino.Ast.FunctionCall

AST node for a function call.
AST node for a function call. Node type is Rhino.Token.CALL .

Inheritance: AstNode
Exibir arquivo Open project: hazzik/Rhino.Net Class Usage Examples

Protected Properties

Property Type Description
NO_ARGS IList
arguments IList
lp int
rp int
target AstNode

Public Methods

Method Description
AddArgument ( AstNode arg ) : void

Adds an argument to the list, and sets its parent to this node.

Adds an argument to the list, and sets its parent to this node.

FunctionCall ( ) : System.Collections.Generic
FunctionCall ( int pos ) : System.Collections.Generic
FunctionCall ( int pos, int len ) : System.Collections.Generic
GetArguments ( ) : IList

Returns function argument list

GetLp ( ) : int

Returns left paren position, -1 if missing

GetRp ( ) : int

Returns right paren position, -1 if missing

GetTarget ( ) : AstNode

Returns node evaluating to the function to call

SetArguments ( IList arguments ) : void

Sets function argument list

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

SetTarget ( AstNode target ) : void

Sets node evaluating to the function to call, and sets its parent to this node.

Sets node evaluating to the function to call, and sets its parent to this node.

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

Visits this node, the target object, and the arguments.

Visits this node, the target object, and the arguments.

Method Details

AddArgument() public method

Adds an argument to the list, and sets its parent to this node.
Adds an argument to the list, and sets its parent to this node.
/// } if arg is /// null ///
public AddArgument ( AstNode arg ) : void
arg AstNode the argument node to add to the list
return void

FunctionCall() public method

public FunctionCall ( ) : System.Collections.Generic
return System.Collections.Generic

FunctionCall() public method

public FunctionCall ( int pos ) : System.Collections.Generic
pos int
return System.Collections.Generic

FunctionCall() public method

public FunctionCall ( int pos, int len ) : System.Collections.Generic
pos int
len int
return System.Collections.Generic

GetArguments() public method

Returns function argument list
public GetArguments ( ) : IList
return IList

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

GetTarget() public method

Returns node evaluating to the function to call
public GetTarget ( ) : AstNode
return AstNode

SetArguments() public method

Sets function argument list
public SetArguments ( IList arguments ) : void
arguments IList /// function argument list. Can be /// null /// , /// in which case any existing args are removed. ///
return void

SetLp() public method

Sets left paren position
public SetLp ( int lp ) : void
lp int left paren position
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

SetTarget() public method

Sets node evaluating to the function to call, and sets its parent to this node.
Sets node evaluating to the function to call, and sets its parent to this node.
/// } if target is /// null ///
public SetTarget ( AstNode target ) : void
target AstNode node evaluating to the function to call.
return void

ToSource() public method

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

Visit() public method

Visits this node, the target object, and the arguments.
Visits this node, the target object, and the arguments.
public Visit ( NodeVisitor v ) : void
v NodeVisitor
return void

Property Details

NO_ARGS protected_oe static_oe property

protected static IList NO_ARGS
return IList

arguments protected_oe property

protected IList arguments
return IList

lp protected_oe property

protected int lp
return int

rp protected_oe property

protected int rp
return int

target protected_oe property

protected AstNode target
return AstNode