Browse Source

Fixed bug with class keyword.

newNRvisualizers
Mike Krüger 14 years ago
parent
commit
2fc0c7c8b3
  1. 4
      ICSharpCode.NRefactory.CSharp/Parser/mcs/cs-parser.cs
  2. 4
      ICSharpCode.NRefactory.CSharp/Parser/mcs/cs-parser.jay
  3. 1
      ICSharpCode.NRefactory.CSharp/Parser/mcs/decl.cs

4
ICSharpCode.NRefactory.CSharp/Parser/mcs/cs-parser.cs

@ -7080,7 +7080,7 @@ void case_645() @@ -7080,7 +7080,7 @@ void case_645()
}
push_current_class (c, yyVals[-3+yyTop]);
lbag.AddMember (current_class, GetModifierLocations ());
lbag.AddMember (current_class, GetModifierLocations (), GetLocation (yyVals[-2+yyTop]));
}
void case_646()
@ -7107,7 +7107,7 @@ void case_647() @@ -7107,7 +7107,7 @@ void case_647()
void case_648()
#line 4360 "cs-parser.jay"
{
lbag.AppendToMember (current_class, GetLocation (yyVals[-11+yyTop]), GetLocation (yyVals[-4+yyTop]), GetLocation (yyVals[-2+yyTop]));
lbag.AppendToMember (current_class, GetLocation (yyVals[-4+yyTop]), GetLocation (yyVals[-2+yyTop]));
if (yyVals[0+yyTop] != null)
current_class.OptionalSemicolon = GetLocation (yyVals[0+yyTop]);
yyVal = pop_current_class ();

4
ICSharpCode.NRefactory.CSharp/Parser/mcs/cs-parser.jay

@ -4336,7 +4336,7 @@ class_declaration @@ -4336,7 +4336,7 @@ class_declaration
}
push_current_class (c, $3);
lbag.AddMember (current_class, GetModifierLocations ());
lbag.AddMember (current_class, GetModifierLocations (), GetLocation ($4));
}
opt_class_base
opt_type_parameter_constraints_clauses
@ -4358,7 +4358,7 @@ class_declaration @@ -4358,7 +4358,7 @@ class_declaration
}
opt_semicolon
{
lbag.AppendToMember (current_class, GetLocation ($4), GetLocation ($11), GetLocation ($13));
lbag.AppendToMember (current_class, GetLocation ($11), GetLocation ($13));
if ($15 != null)
current_class.OptionalSemicolon = GetLocation ($15);
$$ = pop_current_class ();

1
ICSharpCode.NRefactory.CSharp/Parser/mcs/decl.cs

@ -27,6 +27,7 @@ using IKVM.Reflection.Emit; @@ -27,6 +27,7 @@ using IKVM.Reflection.Emit;
#else
using System.Reflection;
using System.Reflection.Emit;
//using Mono.Collections.Generic;
#endif
namespace Mono.CSharp {

Loading…
Cancel
Save