Package org.mozilla.javascript
Class IRFactory
java.lang.Object
org.mozilla.javascript.Parser
org.mozilla.javascript.IRFactory
This class rewrites the parse tree into an IR suitable for codegen.
- Author:
- Mike McCabe, Norris Boyd
- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from class org.mozilla.javascript.Parser
Parser.PerFunctionVariables
-
Field Summary
Fields inherited from class org.mozilla.javascript.Parser
ARGC_LIMIT, inUseStrictDirective, nestingOfFunction
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiontransformTree
(AstRoot root) Transforms the tree into a lower-level IR suitable for codegen.Methods inherited from class org.mozilla.javascript.Parser
checkActivationName, checkMutableReference, createName, createName, createNumber, createScopeNode, eof, inUseStrictDirective, parse, parse, removeParens, setDefaultUseStrictDirective, setIsGenerator, setRequiresActivation, simpleAssignment
-
Constructor Details
-
IRFactory
public IRFactory() -
IRFactory
-
IRFactory
-
-
Method Details
-
transformTree
Transforms the tree into a lower-level IR suitable for codegen. Optionally generates the encoded source. -
transform
-