Skip to content

Commit

Permalink
Issue #9456: updated example of AST for TokenTypes.INTERFACE_DEF
Browse files Browse the repository at this point in the history
  • Loading branch information
theanmolsharma authored and romani committed Mar 28, 2021
1 parent 4817609 commit b1de512
Showing 1 changed file with 10 additions and 15 deletions.
25 changes: 10 additions & 15 deletions src/main/java/com/puppycrawl/tools/checkstyle/api/TokenTypes.java
Original file line number Diff line number Diff line change
Expand Up @@ -432,27 +432,22 @@ public final class TokenTypes {
* <p>For example:</p>
*
* <pre>
* public interface MyInterface
* {
* }
* public interface MyInterface {
*
* }
* </pre>
*
* <p>parses as:</p>
*
* <pre>
* +--INTERFACE_DEF
* |
* +--MODIFIERS
* |
* +--LITERAL_PUBLIC (public)
* +--LITERAL_INTERFACE (interface)
* +--IDENT (MyInterface)
* +--EXTENDS_CLAUSE
* +--OBJBLOCK
* |
* +--LCURLY ({)
* +--RCURLY (})
* INTERFACE_DEF -&gt; INTERFACE_DEF
* |--MODIFIERS -&gt; MODIFIERS
* | `--LITERAL_PUBLIC -&gt; public
* |--LITERAL_INTERFACE -&gt; interface
* |--IDENT -&gt; MyInterface
* `--OBJBLOCK -&gt; OBJBLOCK
* |--LCURLY -&gt; {
* `--RCURLY -&gt; }
* </pre>
*
* @see <a
Expand Down

0 comments on commit b1de512

Please sign in to comment.