Browse Source

fixed location bug.

newNRvisualizers
Mike Krüger 14 years ago
parent
commit
2cad4e33d0
  1. 1247
      ICSharpCode.NRefactory.CSharp/Parser/mcs/cs-parser.cs
  2. 5
      ICSharpCode.NRefactory.CSharp/Parser/mcs/cs-parser.jay

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

File diff suppressed because it is too large Load Diff

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

@ -962,14 +962,15 @@ struct_declaration
} }
opt_class_member_declarations CLOSE_BRACE opt_class_member_declarations CLOSE_BRACE
{ {
lbag.AppendToMember (current_class, GetLocation ($11), GetLocation ($13));
--lexer.parsing_declaration; --lexer.parsing_declaration;
if (doc_support) if (doc_support)
Lexer.doc_state = XmlCommentState.Allowed; Lexer.doc_state = XmlCommentState.Allowed;
} }
opt_semicolon opt_semicolon
{ {
if ($13 != null) if ($15 != null)
current_class.OptionalSemicolon = GetLocation ($13); current_class.OptionalSemicolon = GetLocation ($15);
$$ = pop_current_class (); $$ = pop_current_class ();
} }
| opt_attributes opt_modifiers opt_partial STRUCT error | opt_attributes opt_modifiers opt_partial STRUCT error

Loading…
Cancel
Save