Uses of Class
org.htmlunit.corejs.javascript.ast.ScriptNode
Packages that use ScriptNode
Package
Description
-
Uses of ScriptNode in org.htmlunit.corejs.javascript
Fields in org.htmlunit.corejs.javascript declared as ScriptNodeModifier and TypeFieldDescription(package private) ScriptNode
Parser.currentScriptOrFn
private ScriptNode
Parser.PerFunctionVariables.savedCurrentScriptOrFn
private ScriptNode
CodeGenerator.scriptOrFn
Methods in org.htmlunit.corejs.javascript that return ScriptNodeModifier and TypeMethodDescriptionprivate ScriptNode
Context.parse
(String sourceString, String sourceName, int lineno, CompilerEnvirons compilerEnv, ErrorReporter compilationErrorReporter, boolean returnFunction) IRFactory.transformTree
(AstRoot root, String sourceString) Transforms the tree into a lower-level IR suitable for codegen.Methods in org.htmlunit.corejs.javascript with parameters of type ScriptNodeModifier and TypeMethodDescriptionCodeGenerator.compile
(CompilerEnvirons compilerEnv, ScriptNode tree, String encodedSource, boolean returnFunction) Evaluator.compile
(CompilerEnvirons compilerEnv, ScriptNode tree, String encodedSource, boolean returnFunction) Compile the script or function from intermediate representation tree into an executable form.Interpreter.compile
(CompilerEnvirons compilerEnv, ScriptNode tree, String encodedSource, boolean returnFunction) Node.toStringTree
(ScriptNode treeTop) private static void
Node.toStringTreeHelper
(ScriptNode treeTop, Node n, ObjToIntMap printIds, int level, StringBuilder sb) final void
NodeTransformer.transform
(ScriptNode tree, boolean inStrictMode, CompilerEnvirons env) final void
NodeTransformer.transform
(ScriptNode tree, CompilerEnvirons env) private void
NodeTransformer.transformCompilationUnit
(ScriptNode tree, boolean inStrictMode) private void
NodeTransformer.transformCompilationUnit_r
(ScriptNode tree, Node parent, Scope scope, boolean createScopeObjects, boolean inStrictMode) private Node
IRFactory.transformScript
(ScriptNode node) protected void
NodeTransformer.visitCall
(Node node, ScriptNode tree) protected void
NodeTransformer.visitNew
(Node node, ScriptNode tree) -
Uses of ScriptNode in org.htmlunit.corejs.javascript.ast
Subclasses of ScriptNode in org.htmlunit.corejs.javascript.astModifier and TypeClassDescriptionclass
Node for the root of a parse tree.class
A JavaScript function declaration or expression.Fields in org.htmlunit.corejs.javascript.ast declared as ScriptNodeMethods in org.htmlunit.corejs.javascript.ast that return ScriptNodeMethods in org.htmlunit.corejs.javascript.ast with parameters of type ScriptNodeModifier and TypeMethodDescriptionvoid
Scope.setTop
(ScriptNode top) Sets top current script or function scope -
Uses of ScriptNode in org.htmlunit.corejs.javascript.optimizer
Fields in org.htmlunit.corejs.javascript.optimizer declared as ScriptNodeModifier and TypeFieldDescription(package private) ScriptNode
BodyCodegen.scriptOrFn
(package private) ScriptNode[]
Codegen.scriptOrFnNodes
Methods in org.htmlunit.corejs.javascript.optimizer with parameters of type ScriptNodeModifier and TypeMethodDescription(package private) String
Codegen.cleanName
(ScriptNode n) Gets a Java-compatible "informative" name for the the ScriptOrFnNodeprivate static void
Codegen.collectScriptNodes_r
(ScriptNode n, ObjArray x) Codegen.compile
(CompilerEnvirons compilerEnv, ScriptNode tree, String encodedSource, boolean returnFunction) byte[]
Codegen.compileToClassFile
(CompilerEnvirons compilerEnv, String mainClassName, ScriptNode scriptOrFn, String encodedSource, boolean returnFunction) private void
OptTransformer.detectDirectCall
(Node node, ScriptNode tree) static OptFunctionNode
OptFunctionNode.get
(ScriptNode scriptOrFn) static OptFunctionNode
OptFunctionNode.get
(ScriptNode scriptOrFn, int i) (package private) String
Codegen.getBodyMethodName
(ScriptNode n) (package private) String
Codegen.getBodyMethodSignature
(ScriptNode n) (package private) String
Codegen.getCompiledRegexpName
(ScriptNode n, int regexpIndex) (package private) String
Codegen.getDirectCtorName
(ScriptNode n) (package private) int
Codegen.getIndex
(ScriptNode n) (package private) String
Codegen.getTemplateLiteralName
(ScriptNode n) private static void
Codegen.initOptFunctions_r
(ScriptNode scriptOrFn) private void
Codegen.initScriptNodesData
(ScriptNode scriptOrFn) (package private) static boolean
Codegen.isGenerator
(ScriptNode node) (package private) void
Optimizer.optimize
(ScriptNode scriptOrFn) private void
Codegen.transform
(ScriptNode tree) protected void
OptTransformer.visitCall
(Node node, ScriptNode tree) protected void
OptTransformer.visitNew
(Node node, ScriptNode tree)