From 8c3f088c3edcfbff7e3bb3cd923e6e551df61d35 Mon Sep 17 00:00:00 2001 From: Daniel Grunwald Date: Wed, 27 Sep 2006 17:29:31 +0000 Subject: [PATCH] CecilReader was incorrectly marking interface members as private. git-svn-id: svn://svn.sharpdevelop.net/sharpdevelop/trunk@1855 1ccf3a8d-04fe-1044-b7c0-cef0b8235c61 --- .../Project/Src/CecilReader.cs | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/src/Main/ICSharpCode.SharpDevelop.Dom/Project/Src/CecilReader.cs b/src/Main/ICSharpCode.SharpDevelop.Dom/Project/Src/CecilReader.cs index 46ac535e3a..3973f50853 100644 --- a/src/Main/ICSharpCode.SharpDevelop.Dom/Project/Src/CecilReader.cs +++ b/src/Main/ICSharpCode.SharpDevelop.Dom/Project/Src/CecilReader.cs @@ -265,7 +265,9 @@ namespace ICSharpCode.SharpDevelop.Dom || (property.SetMethod != null && IsVisible(property.SetMethod.Attributes))) { DefaultProperty p = new DefaultProperty(this, property.Name); - if (this.ClassType != ClassType.Interface) { + if (this.ClassType == ClassType.Interface) { + p.Modifiers = ModifierEnum.Public | ModifierEnum.Abstract; + } else { p.Modifiers = TranslateModifiers(property); } p.ReturnType = CreateType(this.ProjectContent, this, property.PropertyType); @@ -282,7 +284,9 @@ namespace ICSharpCode.SharpDevelop.Dom foreach (EventDefinition eventDef in type.Events) { if (eventDef.AddMethod != null && IsVisible(eventDef.AddMethod.Attributes)) { DefaultEvent e = new DefaultEvent(this, eventDef.Name); - if (this.ClassType != ClassType.Interface) { + if (this.ClassType == ClassType.Interface) { + e.Modifiers = ModifierEnum.Public | ModifierEnum.Abstract; + } else { e.Modifiers = TranslateModifiers(eventDef); } e.ReturnType = CreateType(this.ProjectContent, this, eventDef.EventType);