We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e8a8271 commit e8866a1Copy full SHA for e8866a1
tool/src/main/antlr3/org/antlr/grammar/v3/CodeGenTreeWalker.g
@@ -56,6 +56,7 @@ import org.antlr.codegen.*;
56
import java.util.HashSet;
57
import java.util.Set;
58
import java.util.Collection;
59
+import java.util.Collections;
60
import org.antlr.runtime.BitSet;
61
import org.antlr.runtime.DFA;
62
import org.stringtemplate.v4.ST;
@@ -284,6 +285,7 @@ protected final List<String> getTokenTypesAsTargetLabels(Collection<GrammarAST>
284
285
}
286
labels.add( label );
287
288
+ Collections.sort(labels); // ensure reproducible order
289
return labels;
290
291
0 commit comments