Skip to content

Commit

Permalink
Issue #9464: updated example of AST for TokenTypes.LITERAL_BREAK
Browse files Browse the repository at this point in the history
  • Loading branch information
AbhinavRajputEXE authored and pbludov committed Nov 26, 2021
1 parent 9afeb2b commit 66b7b00
Showing 1 changed file with 22 additions and 0 deletions.
22 changes: 22 additions & 0 deletions src/main/java/com/puppycrawl/tools/checkstyle/api/TokenTypes.java
Expand Up @@ -2598,6 +2598,28 @@ public final class TokenTypes {
* The {@code break} keyword. The first child is an optional
* identifier and the last child is a semicolon.
*
* <p>For example:</p>
* <pre>
* for (;;) {
* break;
* }
* </pre>
* <p>parses as:</p>
* <pre>
* LITERAL_FOR -&gt; for
* |--LPAREN -&gt; (
* |--FOR_INIT -&gt; FOR_INIT
* |--SEMI -&gt; ;
* |--FOR_CONDITION -&gt; FOR_CONDITION
* |--SEMI -&gt; ;
* |--FOR_ITERATOR -&gt; FOR_ITERATOR
* |--RPAREN -&gt; )
* `--SLIST -&gt; {
* |--LITERAL_BREAK -&gt; break
* | `--SEMI -&gt; ;
* `--RCURLY -&gt; }
* </pre>
*
* @see #IDENT
* @see #SEMI
* @see #SLIST
Expand Down

0 comments on commit 66b7b00

Please sign in to comment.