Méthode | 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 |
Méthode | Description | |
---|---|---|
AddSymbol ( |
public AddFunction ( |
||
fnNode | ||
Résultat | int |
public AddRegExp ( |
||
re | ||
Résultat | void |
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. /// |
Résultat | void |
public GetFunctionNode ( int i ) : |
||
i | int | |
Résultat |
public GetIndexForNameNode ( Node nameNode ) : int | ||
nameNode | Node | |
Résultat | int |
public GetParamOrVarName ( int index ) : string | ||
index | int | |
Résultat | string |
public GetRegexpFlags ( int index ) : string | ||
index | int | |
Résultat | string |
public GetRegexpString ( int index ) : string | ||
index | int | |
Résultat | string |
public SetCompilerData ( object data ) : void | ||
data | object | |
Résultat | void |
public SetEncodedSource ( string encodedSource ) : void | ||
encodedSource | string | |
Résultat | void |
public SetEncodedSourceBounds ( int start, int end ) : void | ||
start | int | |
end | int | |
Résultat | void |
public SetEncodedSourceEnd ( int end ) : void | ||
end | int | |
Résultat | void |
public SetEncodedSourceStart ( int start ) : void | ||
start | int | |
Résultat | void |
public SetSourceName ( string sourceName ) : void | ||
sourceName | string | |
Résultat | void |