public final class CheckJSDocStyle extends NodeTraversal.AbstractPostOrderCallback implements CompilerPass
@param annotation, coding conventions not being respected, etc.| Modifier and Type | Field and Description |
|---|---|
static DiagnosticType |
MISSING_PARAM_JSDOC |
static DiagnosticType |
MUST_BE_PRIVATE |
static DiagnosticType |
OPTIONAL_PARAM_NOT_MARKED_OPTIONAL |
static DiagnosticType |
OPTIONAL_TYPE_NOT_USING_OPTIONAL_NAME |
| Constructor and Description |
|---|
CheckJSDocStyle(AbstractCompiler compiler) |
| Modifier and Type | Method and Description |
|---|---|
void |
process(Node externs,
Node root)
Process the JS with root node root.
|
void |
visit(NodeTraversal t,
Node n,
Node parent)
Visits a node in postorder (after its children have been visited).
|
shouldTraversepublic static final DiagnosticType MISSING_PARAM_JSDOC
public static final DiagnosticType MUST_BE_PRIVATE
public static final DiagnosticType OPTIONAL_PARAM_NOT_MARKED_OPTIONAL
public static final DiagnosticType OPTIONAL_TYPE_NOT_USING_OPTIONAL_NAME
public CheckJSDocStyle(AbstractCompiler compiler)
public void process(Node externs, Node root)
CompilerPassprocess in interface CompilerPassexterns - Top of external JS treeroot - Top of JS treepublic void visit(NodeTraversal t, Node n, Node parent)
NodeTraversal.CallbackVisits a node in postorder (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).
visit in interface NodeTraversal.CallbackCopyright © 2009-2015 Google. All Rights Reserved.