Skip to content

Commit

Permalink
Issue #9450: update example of AST for TokenTypes.IDENT
Browse files Browse the repository at this point in the history
  • Loading branch information
Binita-tech authored and romani committed Nov 27, 2021
1 parent 4bd9856 commit 73c5d47
Showing 1 changed file with 18 additions and 0 deletions.
18 changes: 18 additions & 0 deletions src/main/java/com/puppycrawl/tools/checkstyle/api/TokenTypes.java
Expand Up @@ -1720,6 +1720,24 @@ public final class TokenTypes {
/**
* An identifier. These can be names of types, subpackages,
* fields, methods, parameters, and local variables.
*
* <p>For example:</p>
* <pre>
* int a = 10;
* </pre>
* <p>parses as:</p>
* <pre>
* VARIABLE_DEF -&gt; VARIABLE_DEF
* |--MODIFIERS -&gt; MODIFIERS
* |--TYPE -&gt; TYPE
* | `--LITERAL_INT -&gt; int
* |--IDENT -&gt; a
* | `--ASSIGN -&gt; =
* | `--EXPR -&gt; EXPR
* | `--NUM_INT -&gt; 10
* `--SEMI -&gt; ;
* </pre>
*
**/
public static final int IDENT = JavaLanguageLexer.IDENT;
/**
Expand Down

0 comments on commit 73c5d47

Please sign in to comment.