Skip to content

Commit

Permalink
Issue #9443: Updated example of AST for TokenTypes.FOR_EACH_CLAUSE
Browse files Browse the repository at this point in the history
  • Loading branch information
theanmolsharma authored and romani committed Mar 28, 2021
1 parent df16ff5 commit 63d764c
Showing 1 changed file with 20 additions and 21 deletions.
41 changes: 20 additions & 21 deletions src/main/java/com/puppycrawl/tools/checkstyle/api/TokenTypes.java
Original file line number Diff line number Diff line change
Expand Up @@ -3486,27 +3486,26 @@ public final class TokenTypes {
* </pre>
* <p>parses as:</p>
* <pre>
* --LITERAL_FOR (for)
* |--LPAREN (()
* |--FOR_EACH_CLAUSE
* | |--VARIABLE_DEF
* | | |--MODIFIERS
* | | |--TYPE
* | | | `--LITERAL_INT (int)
* | | `--IDENT (value)
* | |--COLON (:)
* | `--EXPR
* | `--IDENT (values
* |--RPAREN ())
* `--SLIST ({)
* |--EXPR
* | `--METHOD_CALL (()
* | |--IDENT (doSmth)
* | |--ELIST
* | `--RPAREN ())
* |--SEMI (;)
* `--RCURLY (})
*
* LITERAL_FOR -&gt; for
* |--LPAREN -&gt; (
* |--FOR_EACH_CLAUSE -&gt; FOR_EACH_CLAUSE
* | |--VARIABLE_DEF -&gt; VARIABLE_DEF
* | | |--MODIFIERS -&gt; MODIFIERS
* | | |--TYPE -&gt; TYPE
* | | | `--LITERAL_INT -&gt; int
* | | `--IDENT -&gt; value
* | |--COLON -&gt; :
* | `--EXPR -&gt; EXPR
* | `--IDENT -&gt; values
* |--RPAREN -&gt; )
* `--SLIST -&gt; {
* |--EXPR -&gt; EXPR
* | `--METHOD_CALL -&gt; (
* | |--IDENT -&gt; doSmth
* | |--ELIST -&gt; ELIST
* | `--RPAREN -&gt; )
* |--SEMI -&gt; ;
* `--RCURLY -&gt; }
* </pre>
*
* @see #VARIABLE_DEF
Expand Down

0 comments on commit 63d764c

Please sign in to comment.