/// <summary> /// Checks for ObsoleteAttribute presence. It's used for testing of all non-types elements /// </summary> public virtual void CheckObsoleteness(Location loc) { ObsoleteAttribute oa = GetAttributeObsolete(); if (oa != null) { AttributeTester.Report_ObsoleteMessage(oa, GetSignatureForError(), loc, Report); } }
public void CheckObsoleteness(Location loc) { ObsoleteAttribute oa = AttributeTester.GetMemberObsoleteAttribute(fi); if (oa == null) { return; } AttributeTester.Report_ObsoleteMessage(oa, TypeManager.GetFullNameSignature(fi), loc, RootContext.ToplevelTypes.Compiler.Report); }
public virtual void CheckObsoleteness(IMemberContext mc, Location loc) { var oa = GetAttributeObsolete(); if (oa == null) { return; } if (!mc.IsObsolete) { AttributeTester.Report_ObsoleteMessage(oa, GetSignatureForError(), loc, mc.Module.Compiler.Report); } }