forked from jasder/antlr
Use Dictionary constructor where allowed
This commit is contained in:
parent
59583da8b0
commit
3d5f7664c6
|
@ -290,7 +290,11 @@ namespace Antlr4.Runtime.Dfa
|
|||
}
|
||||
else
|
||||
{
|
||||
#if NET_4_5
|
||||
Dictionary<int, DFAState> result = map.ToDictionary(i => i.Key, i => i.Value);
|
||||
#else
|
||||
Dictionary<int, DFAState> result = new Dictionary<int, DFAState>(map);
|
||||
#endif
|
||||
result.Add(PredictionContext.EmptyFullStateKey, result[-1]);
|
||||
result.Remove(-1);
|
||||
#if NET_4_5
|
||||
|
|
Loading…
Reference in New Issue