Метод | Описание | |
---|---|---|
IRFactory ( ) : System | ||
IRFactory ( |
||
IRFactory ( |
||
Transform ( AstNode node ) : Node | ||
TransformTree ( |
Transforms the tree into a lower-level IR suitable for codegen. Transforms the tree into a lower-level IR suitable for codegen. Optionally generates the encoded source. |
Метод | Описание | |
---|---|---|
AddSwitchCase ( Node switchBlock, Node caseExpression, Node statements ) : void |
If caseExpression argument is null it indicates a default label. If caseExpression argument is null it indicates a default label. |
|
ArrayCompTransformHelper ( |
||
CloseSwitch ( Node switchBlock ) : void | ||
CreateAssignment ( int assignType, Node left, Node right ) : Node | ||
CreateBinary ( int nodeType, Node left, Node right ) : Node | ||
CreateCallOrNew ( int nodeType, Node child ) : Node | ||
CreateCatch ( string varName, Node catchCond, Node stmts, int lineno ) : Node |
Catch clause of try/catch/finally
|
|
CreateCondExpr ( Node cond, Node ifTrue, Node ifFalse ) : Node | ||
CreateElementGet ( Node target, string @namespace, Node elem, int memberTypeFlags ) : Node | ||
CreateExprStatementNoReturn ( Node expr, int lineno ) : Node | ||
CreateFor ( |
||
CreateForIn ( int declType, Node loop, Node lhs, Node obj, Node body, bool isForEach ) : Node |
Generate IR for a for..in loop. Generate IR for a for..in loop. |
|
CreateIf ( Node cond, Node ifTrue, Node ifFalse, int lineno ) : Node | ||
CreateIncDec ( int nodeType, bool post, Node child ) : Node | ||
CreateLoop ( |
||
CreateLoopNode ( Node loopLabel, int lineno ) : |
Create loop node. Create loop node. The code generator will later call createWhile|createDoWhile|createFor|createForIn to finish loop generation. |
|
CreateMemberRefGet ( Node target, string @namespace, Node elem, int memberTypeFlags ) : Node | ||
CreatePropertyGet ( Node target, string @namespace, string name, int memberTypeFlags ) : Node | ||
CreateString ( string @string ) : Node | ||
CreateTryCatchFinally ( Node tryBlock, Node catchBlocks, Node finallyBlock, int lineno ) : Node |
Try/Catch/Finally The IRFactory tries to express as much as possible in the tree; the responsibilities remaining for Codegen are to add the Java handlers: (Either (but not both) of TARGET and FINALLY might not be defined) - a catch handler for javascript exceptions that unwraps the exception onto the stack and GOTOes to the catch target - a finally handler ... Try/Catch/Finally The IRFactory tries to express as much as possible in the tree; the responsibilities remaining for Codegen are to add the Java handlers: (Either (but not both) of TARGET and FINALLY might not be defined) - a catch handler for javascript exceptions that unwraps the exception onto the stack and GOTOes to the catch target - a finally handler ... and a goto to GOTO around these handlers. |
|
CreateUnary ( int nodeType, Node child ) : Node | ||
CreateUseLocal ( Node localBlock ) : Node | ||
CreateWith ( Node obj, Node body, int lineno ) : Node | ||
Decompile ( AstNode node ) : void | ||
DecompileArrayLiteral ( |
||
DecompileElementGet ( |
||
DecompileFunctionHeader ( |
||
DecompileObjectLiteral ( |
||
DecompilePropertyGet ( |
||
GenExprTransformHelper ( |
||
GetPropKey ( Node id ) : object | ||
InitFunction ( |
||
IsAlwaysDefinedBoolean ( Node node ) : int | ||
IsDestructuring ( Node n ) : bool | ||
MakeJump ( int type, Node target ) : |
||
MakeReference ( Node node ) : Node | ||
TransformArrayComp ( |
||
TransformArrayLiteral ( |
||
TransformAssignment ( |
||
TransformBlock ( AstNode node ) : Node | ||
TransformBreak ( |
||
TransformCondExpr ( |
||
TransformContinue ( |
||
TransformDefaultXmlNamepace ( |
||
TransformDoLoop ( |
||
TransformElementGet ( |
||
TransformExprStmt ( |
||
TransformForInLoop ( |
||
TransformForLoop ( |
||
TransformFunction ( |
||
TransformFunctionCall ( |
||
TransformGenExpr ( |
||
TransformIf ( |
||
TransformInfix ( |
||
TransformLabeledStatement ( |
||
TransformLetNode ( |
||
TransformLiteral ( AstNode node ) : Node | ||
TransformName ( |
||
TransformNewExpr ( |
||
TransformNumber ( |
||
TransformObjectLiteral ( |
||
TransformParenExpr ( |
||
TransformPropertyGet ( |
||
TransformRegExp ( |
||
TransformReturn ( |
||
TransformScript ( |
||
TransformString ( |
||
TransformSwitch ( |
||
TransformThrow ( |
||
TransformTry ( |
||
TransformUnary ( |
||
TransformVariableInitializers ( |
||
TransformVariables ( |
||
TransformWhileLoop ( |
||
TransformWith ( WithStatement node ) : Node | ||
TransformXmlLiteral ( |
||
TransformXmlMemberGet ( |
||
TransformXmlRef ( Node pn, |
||
TransformXmlRef ( |
||
TransformYield ( |
public IRFactory ( |
||
env | ||
Результат | System |
public IRFactory ( |
||
env | ||
errorReporter | ErrorReporter | |
Результат | System |
public TransformTree ( |
||
root | ||
Результат |