메소드 | 설명 | |
---|---|---|
AddFunction ( Rhino fnNode ) : int | ||
AddLiveLocals ( Node node, int locals ) : void | ||
AddParam ( AstNode param ) : void |
Adds a parameter to the function parameter list. Adds a parameter to the function parameter list. Sets the parent of the param node to this node. |
|
AddResumptionPoint ( Node target ) : void | ||
FunctionNode ( ) : System.Collections.Generic | ||
FunctionNode ( int pos ) : System.Collections.Generic | ||
FunctionNode ( int pos, |
||
GetBody ( ) : AstNode |
Returns function body. Returns function body. Normally a |
|
GetFunctionName ( ) : |
Returns function name
|
|
GetFunctionType ( ) : int |
Returns the function type (statement, expr, statement expr)
|
|
GetLiveLocals ( ) : int[]>.IDictionary |
||
GetLp ( ) : int |
Returns left paren position, -1 if missing
|
|
GetMemberExprNode ( ) : AstNode | ||
GetName ( ) : string |
Returns the function name as a string
|
|
GetParams ( ) : IList |
Returns the function parameter list
|
|
GetResumptionPoints ( ) : IList |
||
GetRp ( ) : int |
Returns right paren position, -1 if missing
|
|
IsExpressionClosure ( ) : bool |
Returns whether this is a 1.8 function closure
|
|
IsGenerator ( ) : bool | ||
IsGetter ( ) : bool | ||
IsGetterOrSetter ( ) : bool | ||
IsParam ( AstNode node ) : bool |
Returns true if the specified
|
|
IsSetter ( ) : bool | ||
RequiresActivation ( ) : bool |
Return true if this function requires an Ecma-262 Activation object. Return true if this function requires an Ecma-262 Activation object. The Activation object is implemented by |
|
SetBody ( AstNode body ) : void |
Sets function body, and sets its parent to this node. Sets function body, and sets its parent to this node. Also sets the encoded source bounds based on the body bounds. Assumes the function node absolute position has already been set, and the body node's absolute position and length are set.
|
|
SetFunctionIsGetter ( ) : void | ||
SetFunctionIsSetter ( ) : void | ||
SetFunctionName ( |
Sets function name, and sets its parent to this node. Sets function name, and sets its parent to this node. |
|
SetFunctionType ( int type ) : void | ||
SetIsExpressionClosure ( bool isExpressionClosure ) : void |
Sets whether this is a 1.8 function closure
|
|
SetIsGenerator ( ) : void | ||
SetLp ( int lp ) : void |
Sets left paren position
|
|
SetMemberExprNode ( AstNode node ) : void |
Rhino supports a nonstandard Ecma extension that allows you to say, for instance, function a.b.c(arg1, arg) {...}, and it will be rewritten at codegen time to: a.b.c = function(arg1, arg2) {...} If we detect an expression other than a simple Name in the position where a function name was expected, we record that expression here. Rhino supports a nonstandard Ecma extension that allows you to say, for instance, function a.b.c(arg1, arg) {...}, and it will be rewritten at codegen time to: a.b.c = function(arg1, arg2) {...} If we detect an expression other than a simple Name in the position where a function name was expected, we record that expression here. This extension is only available by setting the CompilerEnv option "isAllowMemberExprAsFunctionName" in the Parser. |
|
SetParams ( IList |
Sets the function parameter list, and sets the parent for each element of the list. Sets the function parameter list, and sets the parent for each element of the list. |
|
SetParens ( int lp, int rp ) : void |
Sets both paren positions
|
|
SetRequiresActivation ( ) : void | ||
SetRp ( int rp ) : void |
Sets right paren position
|
|
ToSource ( int depth ) : string | ||
Visit ( NodeVisitor v ) : void |
Visits this node, the function name node if supplied, the parameters, and the body. Visits this node, the function name node if supplied, the parameters, and the body. If there is a member-expr node, it is visited last. |
public AddLiveLocals ( Node node, int locals ) : void | ||
node | Node | |
locals | int | |
리턴 | void |
public FunctionNode ( ) : System.Collections.Generic | ||
리턴 | System.Collections.Generic |
public FunctionNode ( int pos ) : System.Collections.Generic | ||
pos | int | |
리턴 | System.Collections.Generic |
public FunctionNode ( int pos, |
||
pos | int | |
name | ||
리턴 | System.Collections.Generic |
public SetBody ( AstNode body ) : void | ||
body | AstNode | /// function body. Its parent is set to this node, and its /// position is updated to be relative to this node. /// |
리턴 | void |
public SetFunctionName ( |
||
name |
/// function name,
/// null
/// for anonymous functions
/// |
|
리턴 | void |
public SetIsExpressionClosure ( bool isExpressionClosure ) : void | ||
isExpressionClosure | bool | |
리턴 | void |