diff options
author | Mike Krüger <mkrueger@xamarin.com> | 2014-09-03 16:53:40 +0400 |
---|---|---|
committer | Mike Krüger <mkrueger@xamarin.com> | 2014-09-03 16:53:40 +0400 |
commit | 52dff8b06bad0eceed496b63104cc55620a34ad2 (patch) | |
tree | e1a89a5c01694fd7ba032db5634d0191198d0549 | |
parent | b95cc315949760b58b3bd4361a66715b1ae4725a (diff) |
Fixed bug in unbound type argument parsing.
-rw-r--r-- | ICSharpCode.NRefactory.CSharp/Parser/CSharpParser.cs | 5 |
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) |