public virtual void AddOptimizedTransition(erl.Oracle.TnsNames.Antlr4.Runtime.Atn.Transition e) { if (!IsOptimized) { optimizedTransitions = new List <erl.Oracle.TnsNames.Antlr4.Runtime.Atn.Transition>(); } optimizedTransitions.Add(e); }
public virtual void SetOptimizedTransition(int i, erl.Oracle.TnsNames.Antlr4.Runtime.Atn.Transition e) { if (!IsOptimized) { throw new InvalidOperationException(); } optimizedTransitions[i] = e; }
public virtual void AddTransition(int index, erl.Oracle.TnsNames.Antlr4.Runtime.Atn.Transition e) { if (transitions.Count == 0) { epsilonOnlyTransitions = e.IsEpsilon; } else { if (epsilonOnlyTransitions != e.IsEpsilon) { System.Console.Error.WriteLine("ATN state {0} has both epsilon and non-epsilon transitions.", stateNumber); epsilonOnlyTransitions = false; } } transitions.Insert(index, e); }
public virtual void AddTransition(erl.Oracle.TnsNames.Antlr4.Runtime.Atn.Transition e) { AddTransition(transitions.Count, e); }
public virtual void SetTransition(int i, erl.Oracle.TnsNames.Antlr4.Runtime.Atn.Transition e) { transitions[i] = e; }