Skip to content

Commit

Permalink
make it easy to break
Browse files Browse the repository at this point in the history
Signed-off-by: Eric Vergnaud <[email protected]>
  • Loading branch information
ericvergnaud committed Sep 9, 2022
1 parent 59a7cda commit 974606e
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions tool/src/org/antlr/v4/codegen/model/decl/StructDecl.java
Original file line number Diff line number Diff line change
Expand Up @@ -71,8 +71,10 @@ public void addDispatchMethods(Rule r) {
public void addDecl(Decl d) {
d.ctx = this;

if ( d instanceof ContextGetterDecl ) getters.add(d);
else attrs.add(d);
if ( d instanceof ContextGetterDecl )
getters.add(d);
else
attrs.add(d);

// add to specific "lists"
if ( d instanceof TokenTypeDecl ) {
Expand Down

0 comments on commit 974606e

Please sign in to comment.