Method | Description | |
---|---|---|
AddFunction ( |
Adds a
|
|
AddRegExp ( |
Called by IRFactory to add a RegExp to the regexp table. Called by IRFactory to add a RegExp to the regexp table. |
|
FlattenSymbolTable ( bool flattenAllTables ) : void |
Assign every symbol a unique integer index. Assign every symbol a unique integer index. Generate arrays of variable names and constness that can be indexed by those indices. |
|
GetBaseLineno ( ) : int | ||
GetCompilerData ( ) : object | ||
GetEncodedSource ( ) : string |
Returns a canonical version of the source for this script or function, for use in implementing the Given a parsed AST, you can always convert it to source code using the
|
|
GetEncodedSourceEnd ( ) : int |
Returns the end offset of the encoded source. Returns the end offset of the encoded source. Only valid if |
|
GetEncodedSourceStart ( ) : int |
Returns the start offset of the encoded source. Returns the start offset of the encoded source. Only valid if |
|
GetEndLineno ( ) : int | ||
GetFunctionCount ( ) : int | ||
GetFunctionNode ( int i ) : |
||
GetFunctions ( ) : IList |
||
GetIndexForNameNode ( Node nameNode ) : int | ||
GetNextTempName ( ) : string | ||
GetParamAndVarConst ( ) : bool[] | ||
GetParamAndVarCount ( ) : int | ||
GetParamAndVarNames ( ) : string[] | ||
GetParamCount ( ) : int | ||
GetParamOrVarName ( int index ) : string | ||
GetRegexpCount ( ) : int | ||
GetRegexpFlags ( int index ) : string | ||
GetRegexpString ( int index ) : string | ||
GetSourceName ( ) : string |
Returns the URI, path or descriptive text indicating the origin of this script's source code. Returns the URI, path or descriptive text indicating the origin of this script's source code. |
|
GetSymbols ( ) : IList |
||
ScriptNode ( ) : System | ||
ScriptNode ( int pos ) : System | ||
SetBaseLineno ( int lineno ) : void |
Sets base (starting) line number for this script or function. Sets base (starting) line number for this script or function. This is a one-time operation, and throws an exception if the line number has already been set. |
|
SetCompilerData ( object data ) : void | ||
SetEncodedSource ( string encodedSource ) : void |
Used by the code generator. Used by the code generator. |
|
SetEncodedSourceBounds ( int start, int end ) : void |
Used by code generator. Used by code generator. |
|
SetEncodedSourceEnd ( int end ) : void |
Used by code generator. Used by code generator. |
|
SetEncodedSourceStart ( int start ) : void |
Used by code generator. Used by code generator. |
|
SetEndLineno ( int lineno ) : void | ||
SetSourceName ( string sourceName ) : void |
Sets the URI, path or descriptive text indicating the origin of this script's source code. Sets the URI, path or descriptive text indicating the origin of this script's source code. |
|
SetSymbols ( IList |
||
Visit ( NodeVisitor v ) : void |
Method | Description | |
---|---|---|
AddSymbol ( |
public AddFunction ( |
||
fnNode | ||
return | int |
public FlattenSymbolTable ( bool flattenAllTables ) : void | ||
flattenAllTables | bool | /// if true, flatten all symbol tables, /// included nested block scope symbol tables. If false, just flatten the /// script's or function's symbol table. /// |
return | void |
public GetFunctionNode ( int i ) : |
||
i | int | |
return |
public GetIndexForNameNode ( Node nameNode ) : int | ||
nameNode | Node | |
return | int |
public GetParamOrVarName ( int index ) : string | ||
index | int | |
return | string |
public GetRegexpString ( int index ) : string | ||
index | int | |
return | string |
public SetCompilerData ( object data ) : void | ||
data | object | |
return | void |
public SetEncodedSource ( string encodedSource ) : void | ||
encodedSource | string | |
return | void |
public SetEncodedSourceBounds ( int start, int end ) : void | ||
start | int | |
end | int | |
return | void |
public SetEncodedSourceEnd ( int end ) : void | ||
end | int | |
return | void |
public SetEncodedSourceStart ( int start ) : void | ||
start | int | |
return | void |
public SetSourceName ( string sourceName ) : void | ||
sourceName | string | |
return | void |