Skip to content

Commit

Permalink
Issue checkstyle#9396: Add example of AST for TokenTypes.AT
Browse files Browse the repository at this point in the history
  • Loading branch information
vinayak-gaikwad authored and rnveach committed Sep 28, 2021
1 parent b19d203 commit b1eaf64
Showing 1 changed file with 20 additions and 0 deletions.
20 changes: 20 additions & 0 deletions src/main/java/com/puppycrawl/tools/checkstyle/api/TokenTypes.java
Expand Up @@ -4999,6 +4999,26 @@ public final class TokenTypes {
* to the interface literal signifying the definition of an annotation
* declaration.
*
* <p>For example:</p>
* <pre>
* &#64;Deprecated
* private int value;
* </pre>
*
* <p>parses as:</p>
* <pre>
* VARIABLE_DEF -> VARIABLE_DEF
* |--MODIFIERS -> MODIFIERS
* | |--ANNOTATION -> ANNOTATION
* | | |--AT -> &#64;
* | | `--IDENT -> Deprecated
* | `--LITERAL_PRIVATE -> private
* |--TYPE -> TYPE
* | `--LITERAL_INT -> int
* |--IDENT -> value
* `--SEMI -> ;
* </pre>
*
* @see <a href="https://www.jcp.org/en/jsr/detail?id=201">
* JSR201</a>
*/
Expand Down

0 comments on commit b1eaf64

Please sign in to comment.