Class FeatureCollector
java.lang.Object
com.google.javascript.jscomp.parsing.FeatureCollector
Class that deserializes an AstNode-tree representing a SCRIPT into a Node-tree.
This process depends on other information from the TypedAST format, but the output it limited to only a single SCRIPT. The other deserialized content must be provided beforehand.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic enumContext of a node while deserializing, specifically for the purpose of trackingFeatureSet.Feature -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvisitSingleNode(List<FeatureCollector.FeatureContext> contextStack, Node node) Records features for a single node.
-
Constructor Details
-
FeatureCollector
public FeatureCollector()
-
-
Method Details
-
allFeatures
-
visitSingleNode
public FeatureCollector.FeatureContext visitSingleNode(List<FeatureCollector.FeatureContext> contextStack, Node node) Records features for a single node.- Parameters:
contextStack- Ancestor node contexts. Last is the parent of node.node- The node to visit.
-