}
current_namespace = new NamespaceEntry (
- current_namespace, file, name.GetName (false), lexer.Location);
+ current_namespace, file, name.GetName (), lexer.Location);
}
namespace_body opt_semicolon
{
: namespace_or_type_name {
MemberName name = (MemberName) $1;
- $$ = name.GetName (false);
+ $$ = name.GetName ();
}
;
attribute_sections
: attribute_section
- {
+ {
ArrayList sect = (ArrayList) $1;
if (global_attrs_enabled) {
$$ = new Attributes (sect);
}
current_attr_target = null;
- }
+ }
| attribute_sections attribute_section
{
Attributes attrs = $1 as Attributes;
}
opt_attribute_arguments
{
+ MemberName mname = (MemberName) $1;
+ string name = mname.GetName ();
if (current_attr_target == "assembly" || current_attr_target == "module")
- $$ = new GlobalAttribute (current_container, current_attr_target, (string) ($1).ToString (), (ArrayList) $3, (Location) $2);
+ $$ = new GlobalAttribute (current_container, current_attr_target,
+ name, (ArrayList) $3, (Location) $2);
else
- $$ = new Attribute (current_attr_target, (string) ($1).ToString (), (ArrayList) $3, (Location) $2);
+ $$ = new Attribute (current_attr_target, name, (ArrayList) $3,
+ (Location) $2);
}
;
Operator op = new Operator (
current_class, decl.optype, decl.ret_type, (int) $2,
new Parameters (param_list, null, decl.location),
- (Block) $5, (Attributes) $1, decl.location);
+ (Block) $5, (Attributes) $1, decl.location);
if (SimpleIteratorContainer.Simple.Yields)
op.SetYields ();
foreach (VariableDeclaration ev in (ArrayList) $6) {
e.AddEnumMember (ev.identifier,
- (Expression) ev.expression_or_array_initializer,
- ev.Location, ev.OptAttributes);
+ (Expression) ev.expression_or_array_initializer,
+ ev.Location, ev.OptAttributes);
}
- string name = full_name.GetName (false);
+ string name = full_name.GetName ();
current_container.AddEnum (e);
RootContext.Tree.RecordDecl (name, e);
(int) $2, name, (Parameters) $7, (Attributes) $1, l);
current_container.AddDelegate (del);
- RootContext.Tree.RecordDecl (name.GetName (false), del);
+ RootContext.Tree.RecordDecl (name.GetName (true), del);
}
| opt_attributes
opt_modifiers
(Parameters) $7, (Attributes) $1, l);
current_container.AddDelegate (del);
- RootContext.Tree.RecordDecl (name.GetName (false), del);
+ RootContext.Tree.RecordDecl (name.GetName (true), del);
}
;
}
current_container = current_class;
- RootContext.Tree.RecordDecl (name.GetName (false), current_class);
+ RootContext.Tree.RecordDecl (name.GetName (true), current_class);
}
}
opt_class_base