From dbc1bc5a514814f4d6e6951c06c88f7b64a06d68 Mon Sep 17 00:00:00 2001 From: Sam Harwell Date: Wed, 27 Feb 2013 12:59:44 -0600 Subject: [PATCH] Use HashSet instead of ISet for improved compatibility with earlier frameworks --- runtime/CSharp/Antlr4.Runtime/Atn/ATNConfig.cs | 2 +- runtime/CSharp/Antlr4.Runtime/Atn/SemanticContext.cs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/runtime/CSharp/Antlr4.Runtime/Atn/ATNConfig.cs b/runtime/CSharp/Antlr4.Runtime/Atn/ATNConfig.cs index e455486d1..1e7d8ff97 100644 --- a/runtime/CSharp/Antlr4.Runtime/Atn/ATNConfig.cs +++ b/runtime/CSharp/Antlr4.Runtime/Atn/ATNConfig.cs @@ -403,7 +403,7 @@ namespace Antlr4.Runtime.Atn StringBuilder builder = new StringBuilder(); builder.Append("digraph G {\n"); builder.Append("rankdir=LR;\n"); - ISet visited = new HashSet(); + HashSet visited = new HashSet(); Stack workList = new Stack(); workList.Push(Context); visited.Add(Context); diff --git a/runtime/CSharp/Antlr4.Runtime/Atn/SemanticContext.cs b/runtime/CSharp/Antlr4.Runtime/Atn/SemanticContext.cs index e801b91ba..a2b21e7cb 100644 --- a/runtime/CSharp/Antlr4.Runtime/Atn/SemanticContext.cs +++ b/runtime/CSharp/Antlr4.Runtime/Atn/SemanticContext.cs @@ -386,7 +386,7 @@ namespace Antlr4.Runtime.Atn } private static IList FilterPrecedencePredicates - (ISet collection) + (HashSet collection) { if (!collection.OfType().Any()) Collections.EmptyList();