[git-p4: depot-paths = "//depot/code/antlr4/main/": change = 9478]
This commit is contained in:
parrt 2011-11-27 14:39:29 -08:00
parent 3b7e984d5f
commit eb6443b32b
1 changed files with 1 additions and 0 deletions

View File

@ -136,6 +136,7 @@ public class ATNState {
//lexer atn sim: getEpTar: 13.2%
// ruleCtx.equals 10%
// TODO: Sam says this takes a lot of time; optimize
public boolean onlyHasEpsilonTransitions() { // 22% time
if ( epsilonOnlyTransitions>=0 ) return epsilonOnlyTransitions==1;
if ( transitions.size()==0 ) return false;