+2005-08-30 Raja R Harinath <rharinath@novell.com>
+
+ Fix #75802.
+ * class.cs (TypeContainer.VerifyClsName): Don't use a
+ PartialContainer when verifying CLS compliance.
+ (AbstractPropertyEventMethod): Set Parent here, ...
+ (PropertyMethod): ... not here.
+
2005-08-30 Atsushi Enomoto <atsushi@ximian.com>
* attribute.cs : escaped attribute name should not be allowed to be
foreach (DictionaryEntry entry in defined_names) {
MemberCore mc = (MemberCore)entry.Value;
- if (!mc.IsClsComplianceRequired (this))
+ if (!mc.IsClsCompliaceRequired (mc.Parent))
continue;
- string name = (string)entry.Key;
+ string name = (string) entry.Key;
string basename = name.Substring (name.LastIndexOf ('.') + 1);
string lcase = basename.ToLower (System.Globalization.CultureInfo.InvariantCulture);
continue;
if (found is MemberInfo) {
- if (basename == ((MemberInfo)found).Name)
+ if (basename == ((MemberInfo) found).Name)
continue;
- Report.SymbolRelatedToPreviousError ((MemberInfo)found);
+ Report.SymbolRelatedToPreviousError ((MemberInfo) found);
} else {
Report.SymbolRelatedToPreviousError ((MemberCore) found);
}
ReturnParameter return_attributes;
public AbstractPropertyEventMethod (MemberBase member, string prefix)
- : base (null, SetupName (prefix, member, member.Location), null)
+ : base (member.Parent, SetupName (prefix, member, member.Location), null)
{
this.prefix = prefix;
IsDummy = true;
public AbstractPropertyEventMethod (MemberBase member, Accessor accessor,
string prefix)
- : base (null, SetupName (prefix, member, accessor.Location),
+ : base (member.Parent, SetupName (prefix, member, accessor.Location),
accessor.Attributes)
{
this.prefix = prefix;
: base (method, prefix)
{
this.method = method;
- Parent = method.Parent;
}
public PropertyMethod (MethodCore method, Accessor accessor, string prefix)
: base (method, accessor, prefix)
{
this.method = method;
- Parent = method.Parent;
this.ModFlags = accessor.ModFlags;
yields = accessor.Yields;