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. 7
      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

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

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

Loading…
Cancel
Save