From f35ccedfda2d40d74d29d9458b570ef8452433ef Mon Sep 17 00:00:00 2001 From: Andrew Mansell Date: Wed, 20 Mar 2019 22:34:17 +0000 Subject: [PATCH] Linting --- .../ComponentDeclaration.cs | 40 ------------------- .../ModuleDeclaration.cs | 15 +++++-- 2 files changed, 12 insertions(+), 43 deletions(-) delete mode 100644 Rubberduck.Parsing/Symbols/ComponentDeclarations/ComponentDeclaration.cs diff --git a/Rubberduck.Parsing/Symbols/ComponentDeclarations/ComponentDeclaration.cs b/Rubberduck.Parsing/Symbols/ComponentDeclarations/ComponentDeclaration.cs deleted file mode 100644 index 12bf09ffc6..0000000000 --- a/Rubberduck.Parsing/Symbols/ComponentDeclarations/ComponentDeclaration.cs +++ /dev/null @@ -1,40 +0,0 @@ -using System.Collections.Generic; -using System.Linq; -using Rubberduck.Parsing.Annotations; -using Rubberduck.VBEditor; - -namespace Rubberduck.Parsing.Symbols -{ - public abstract class ComponentDeclaration : Declaration - { - protected ComponentDeclaration( - QualifiedMemberName qualifiedName, - Declaration projectDeclaration, - string name, - DeclarationType declarationType, - bool isUserDefined, - IEnumerable annotations, - Attributes attributes, - bool isWithEvents = false) - : base( - qualifiedName, - projectDeclaration, - projectDeclaration, - name, - null, - false, - isWithEvents, - Accessibility.Public, - declarationType, - null, - null, - Selection.Home, - false, - null, - isUserDefined, - annotations, - attributes) - { - } - } -} diff --git a/Rubberduck.Parsing/Symbols/ComponentDeclarations/ModuleDeclaration.cs b/Rubberduck.Parsing/Symbols/ComponentDeclarations/ModuleDeclaration.cs index ca11b56f8a..7f2d2ccf01 100644 --- a/Rubberduck.Parsing/Symbols/ComponentDeclarations/ModuleDeclaration.cs +++ b/Rubberduck.Parsing/Symbols/ComponentDeclarations/ModuleDeclaration.cs @@ -5,7 +5,7 @@ namespace Rubberduck.Parsing.Symbols { - public abstract class ModuleDeclaration : ComponentDeclaration + public abstract class ModuleDeclaration : Declaration { protected ModuleDeclaration( QualifiedMemberName qualifiedName, @@ -19,12 +19,21 @@ public abstract class ModuleDeclaration : ComponentDeclaration : base( qualifiedName, projectDeclaration, + projectDeclaration, name, + null, + false, + isWithEvents, + Accessibility.Public, declarationType, + null, + null, + Selection.Home, + false, + null, isUserDefined, annotations, - attributes, - isWithEvents) + attributes) { CustomFolder = FolderFromAnnotations(); }