Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/xamarin/NRefactory.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMike Krüger <mkrueger@xamarin.com>2014-09-03 16:53:40 +0400
committerMike Krüger <mkrueger@xamarin.com>2014-09-03 16:53:40 +0400
commit52dff8b06bad0eceed496b63104cc55620a34ad2 (patch)
treee1a89a5c01694fd7ba032db5634d0191198d0549
parentb95cc315949760b58b3bd4361a66715b1ae4725a (diff)
Fixed bug in unbound type argument parsing.
-rw-r--r--ICSharpCode.NRefactory.CSharp/Parser/CSharpParser.cs5
1 files changed, 4 insertions, 1 deletions
diff --git a/ICSharpCode.NRefactory.CSharp/Parser/CSharpParser.cs b/ICSharpCode.NRefactory.CSharp/Parser/CSharpParser.cs
index 76c3908a..158b86ce 100644
--- a/ICSharpCode.NRefactory.CSharp/Parser/CSharpParser.cs
+++ b/ICSharpCode.NRefactory.CSharp/Parser/CSharpParser.cs
@@ -144,10 +144,13 @@ namespace ICSharpCode.NRefactory.CSharp
if (j < loc2.Count)
result.AddChild(new CSharpTokenNode(Convert(loc2 [j++]), Roles.LChevron), Roles.LChevron);
while (j < loc2.Count - 1) {
+ result.AddChild (new SimpleType (), Roles.TypeArgument);
result.AddChild(new CSharpTokenNode(Convert(loc2 [j++]), Roles.LChevron), Roles.Comma);
}
- if (j < loc2.Count)
+ if (j < loc2.Count) {
+ result.AddChild (new SimpleType (), Roles.TypeArgument);
result.AddChild(new CSharpTokenNode(Convert(loc2 [j++]), Roles.RChevron), Roles.RChevron);
+ }
return;
}
if (texpr.TypeArguments == null || texpr.TypeArguments.Args == null)