From 9b2e62e9e96ca755626bda73234eee36198ab4d0 Mon Sep 17 00:00:00 2001 From: Marek Safar Date: Mon, 12 May 2008 14:00:34 +0000 Subject: [PATCH] 2008-05-12 Marek Safar * class.cs (Constructor): Added IsCompilerGenerated. svn path=/trunk/mcs/; revision=103003 --- mcs/mcs/ChangeLog | 4 ++++ mcs/mcs/class.cs | 22 ++++------------------ 2 files changed, 8 insertions(+), 18 deletions(-) diff --git a/mcs/mcs/ChangeLog b/mcs/mcs/ChangeLog index ff26cfc5f48..0d41c02369a 100644 --- a/mcs/mcs/ChangeLog +++ b/mcs/mcs/ChangeLog @@ -1,3 +1,7 @@ +2008-05-12 Marek Safar + + * class.cs (Constructor): Added IsCompilerGenerated. + 2008-05-12 Marek Safar * expression.cs: Enum binary operators can accept non-enum operand only when diff --git a/mcs/mcs/class.cs b/mcs/mcs/class.cs index cbf1547cf33..628fcb4992c 100644 --- a/mcs/mcs/class.cs +++ b/mcs/mcs/class.cs @@ -4070,12 +4070,6 @@ namespace Mono.CSharp { get { return iterator; } } - public new Location Location { - get { - return base.Location; - } - } - protected override bool CheckBase () { if (!base.CheckBase ()) @@ -4712,6 +4706,10 @@ namespace Mono.CSharp { (Initializer.Arguments == null); } + public bool IsCompilerGenerated { + get { return Initializer is GeneratedBaseInitializer; } + } + public override void ApplyAttributeBuilder (Attribute a, CustomAttributeBuilder cb) { if (a.IsValidSecurityAttribute ()) { @@ -4994,12 +4992,6 @@ namespace Mono.CSharp { } } - public new Location Location { - get { - return base.Location; - } - } - public MemberName MethodName { get { return MemberName; @@ -6308,12 +6300,6 @@ namespace Mono.CSharp { } } - public new Location Location { - get { - return base.Location; - } - } - public virtual bool ResolveMembers () { return true; -- 2.25.1