Map IntegerList to List<int>
This commit is contained in:
parent
f8c643304b
commit
4e7cd54954
|
@ -856,7 +856,7 @@ namespace Antlr4.Runtime.Atn
|
|||
);
|
||||
}
|
||||
IList<ATNConfig> closureConfigs = new List<ATNConfig>(s0.configs);
|
||||
IntegerList contextElements = null;
|
||||
List<int> contextElements = null;
|
||||
ATNConfigSet reach = new ATNConfigSet();
|
||||
bool stepIntoGlobal;
|
||||
do
|
||||
|
@ -926,7 +926,7 @@ namespace Antlr4.Runtime.Atn
|
|||
int nextContextElement = GetReturnState(remainingGlobalContext);
|
||||
if (contextElements == null)
|
||||
{
|
||||
contextElements = new IntegerList();
|
||||
contextElements = new List<int>();
|
||||
}
|
||||
if (remainingGlobalContext.IsEmpty())
|
||||
{
|
||||
|
@ -1928,7 +1928,7 @@ namespace Antlr4.Runtime.Atn
|
|||
|
||||
[NotNull]
|
||||
protected internal virtual DFAState AddDFAEdge(DFA dfa, DFAState fromState, int t
|
||||
, IntegerList contextTransitions, ATNConfigSet toConfigs, PredictionContextCache
|
||||
, List<int> contextTransitions, ATNConfigSet toConfigs, PredictionContextCache
|
||||
contextCache)
|
||||
{
|
||||
System.Diagnostics.Debug.Assert(dfa.IsContextSensitive() || contextTransitions ==
|
||||
|
|
|
@ -706,9 +706,9 @@ namespace Antlr4.Runtime.Misc
|
|||
return n;
|
||||
}
|
||||
|
||||
public virtual IntegerList ToIntegerList()
|
||||
public virtual List<int> ToIntegerList()
|
||||
{
|
||||
IntegerList values = new IntegerList(Size());
|
||||
List<int> values = new List<int>(Size());
|
||||
int n = intervals.Count;
|
||||
for (int i = 0; i < n; i++)
|
||||
{
|
||||
|
|
|
@ -186,6 +186,7 @@
|
|||
-typeMapping org.antlr.v4.runtime.misc.Tuple System.Tuple
|
||||
-typeMapping org.antlr.v4.runtime.misc.Tuple2<,> System.Tuple
|
||||
-typeMapping org.antlr.v4.runtime.misc.Tuple3<,,> System.Tuple
|
||||
-typeMapping org.antlr.v4.runtime.misc.IntegerList System.Collections.Generic.List<int>
|
||||
|
||||
-typeMapping org.antlr.v4.runtime.ANTLRErrorListener<> IAntlrErrorListener
|
||||
-typeMapping org.antlr.v4.runtime.ANTLRErrorStrategy IAntlrErrorStrategy
|
||||
|
|
Loading…
Reference in New Issue