Map IntegerList to List<int>

This commit is contained in:
Sam Harwell 2013-02-16 10:38:55 -06:00
parent f8c643304b
commit 4e7cd54954
3 changed files with 6 additions and 5 deletions

View File

@ -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 ==

View File

@ -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++)
{

View File

@ -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