+2006-07-26 Raja R Harinath <rharinath@novell.com>
+
+ * tree.cs (Tree.RecordDecl): Remove.
+ (RootTypes.AddToTypeContainer): Record the toplevel type in its
+ namespace here.
+ * class.cs, cs-parser.jay: Remove mention of RecordDecl.
+
2006-07-23 Raja R Harinath <harinath@gmail.com>
* codegen.cs (EmitContext.Flags): Move InCatch, InFinally,
if (types == null)
types = new ArrayList (2);
- RootContext.Tree.RecordDecl (c.NamespaceEntry.NS, c.MemberName, c);
types.Add (c);
return true;
}
if (delegates == null)
delegates = new MemberCoreArrayList ();
-
+
delegates.Add (d);
}
if (!AddToTypeContainer (iface))
return false;
- if (interfaces == null) {
+ if (interfaces == null)
interfaces = new MemberCoreArrayList ();
- }
- RootContext.Tree.RecordDecl (iface.NamespaceEntry.NS, iface.MemberName, iface);
interfaces.Add (iface);
return true;
}
}
current_container.AddEnum (e);
- RootContext.Tree.RecordDecl (current_namespace.NS, name, e);
$$ = e;
}
}
current_container.AddDelegate (del);
- RootContext.Tree.RecordDecl (current_namespace.NS, name, del);
-
current_delegate = del;
}
opt_type_parameter_constraints_clauses
{
root_types = new RootTypes ();
}
-
- public void RecordDecl (Namespace ns, MemberName name, DeclSpace ds)
- {
- if (ds.Parent == root_types)
- ns.AddDeclSpace (name.Basename, ds);
- }
//
// FIXME: Why are we using Types?
protected override bool AddToTypeContainer (DeclSpace ds)
{
- return AddToContainer (ds, ds.Name);
+ if (!AddToContainer (ds, ds.Name))
+ return false;
+ ds.NamespaceEntry.NS.AddDeclSpace (ds.Basename, ds);
+ return true;
}
public override TypeContainer AddPartial (TypeContainer nextPart)
+2006-07-26 Raja R Harinath <rharinath@novell.com>
+
+ * tree.cs (Tree.RecordDecl): Remove.
+ (RootTypes.AddToTypeContainer): Record the toplevel type in its
+ namespace here.
+ * class.cs, cs-parser.jay: Remove mention of RecordDecl.
+
2006-07-23 Raja R Harinath <harinath@gmail.com>
* codegen.cs (EmitContext.Flags): Move InCatch, InFinally,
if (types == null)
types = new ArrayList (2);
- RootContext.Tree.RecordDecl (c.NamespaceEntry.NS, c.MemberName, c);
types.Add (c);
return true;
}
if (delegates == null)
delegates = new MemberCoreArrayList ();
-
+
delegates.Add (d);
}
if (!AddToTypeContainer (iface))
return false;
- if (interfaces == null) {
+ if (interfaces == null)
interfaces = new MemberCoreArrayList ();
- }
- RootContext.Tree.RecordDecl (iface.NamespaceEntry.NS, iface.MemberName, iface);
interfaces.Add (iface);
return true;
}
}
current_container.AddEnum (e);
- RootContext.Tree.RecordDecl (current_namespace.NS, name, e);
$$ = e;
}
}
current_container.AddDelegate (del);
- RootContext.Tree.RecordDecl (current_namespace.NS, name, del);
$$ = del;
}
;
{
root_types = new RootTypes ();
}
-
- public void RecordDecl (Namespace ns, MemberName name, DeclSpace ds)
- {
- if (ds.Parent == root_types)
- ns.AddDeclSpace (name.Basename, ds);
- }
//
// FIXME: Why are we using Types?
protected override bool AddToTypeContainer (DeclSpace ds)
{
- return AddToContainer (ds, ds.Name);
+ if (!AddToContainer (ds, ds.Name))
+ return false;
+ ds.NamespaceEntry.NS.AddDeclSpace (ds.Basename, ds);
+ return true;
}
public override TypeContainer AddPartial (TypeContainer nextPart)