Package com.google.javascript.jscomp
Class AstValidator
java.lang.Object
com.google.javascript.jscomp.AstValidator
- All Implemented Interfaces:
CompilerPass
This class walks the AST and validates that the structure is correct.
-
Nested Class Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
Process the JS with root node root.void
void
void
validateRoot
(Node n) void
void
-
Constructor Details
-
AstValidator
-
AstValidator
public AstValidator()
-
-
Method Details
-
process
Description copied from interface:CompilerPass
Process the JS with root node root. Can modify the contents of each Node tree- Specified by:
process
in interfaceCompilerPass
- Parameters:
externs
- Top of external JS treeroot
- Top of JS tree
-
validateRoot
-
validateCodeRoot
-
validateScript
-
validateStatement
-
validateExpression
-