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
Nested Classes -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidProcess the JS with root node root.voidvoidvoidvalidateRoot(Node n) voidvoid
-
Constructor Details
-
AstValidator
-
AstValidator
public AstValidator()
-
-
Method Details
-
process
Description copied from interface:CompilerPassProcess the JS with root node root. Can modify the contents of each Node tree- Specified by:
processin interfaceCompilerPass- Parameters:
externs- Top of external JS treeroot- Top of JS tree
-
validateRoot
-
validateCodeRoot
-
validateScript
-
validateStatement
-
validateExpression
-