Package com.google.javascript.jscomp
Class FindExportableNodes
java.lang.Object
com.google.javascript.jscomp.NodeTraversal.AbstractPostOrderCallback
com.google.javascript.jscomp.FindExportableNodes
- All Implemented Interfaces:
NodeTraversal.Callback
Records all of the symbols and properties that should be exported.
Currently applies to:
- function foo() {}
- var foo = function() {}
- foo.bar = function() {}
- var FOO = ...;
- foo.BAR = ...;
FOO = BAR = 5;
and
var FOO = BAR = 5;
are not supported because the annotation is ambiguous to whether it applies
to all the variables or only the first one.
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic class
Context holding the node references required for generating the export calls. -
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
visit
(NodeTraversal t, Node n, Node parent) Visits a node in post order (after its children have been visited).Methods inherited from class com.google.javascript.jscomp.NodeTraversal.AbstractPostOrderCallback
shouldTraverse
-
Constructor Details
-
FindExportableNodes
-
-
Method Details
-
visit
Description copied from interface:NodeTraversal.Callback
Visits a node in post order (after its children have been visited). A node is visited only if all its parents should be traversed (
NodeTraversal.Callback.shouldTraverse(NodeTraversal, Node, Node)
).Implementations can have side effects (e.g. modifying the parse tree).
-
getExports
-