Skip to content

Commit

Permalink
Issue #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 romani committed Oct 2, 2021
1 parent c83d823 commit 55b4cbe
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 -&gt; VARIABLE_DEF
* |--MODIFIERS -&gt; MODIFIERS
* | |--ANNOTATION -&gt; ANNOTATION
* | | |--AT -&gt; &#64;
* | | `--IDENT -&gt; Deprecated
* | `--LITERAL_PRIVATE -&gt; private
* |--TYPE -&gt; TYPE
* | `--LITERAL_INT -&gt; int
* |--IDENT -&gt; value
* `--SEMI -&gt; ;
* </pre>
*
* @see <a href="https://www.jcp.org/en/jsr/detail?id=201">
* JSR201</a>
*/
Expand Down

0 comments on commit 55b4cbe

Please sign in to comment.