Skip to content

Commit ed1f15e

Browse files
committed
Move COM serialization and reflection to ComReflection namespace.
1 parent 319d4c9 commit ed1f15e

File tree

9 files changed

+14
-9
lines changed

9 files changed

+14
-9
lines changed

RetailCoder.VBE/Root/RubberduckModule.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@
77
using Ninject.Modules;
88
using Rubberduck.Common;
99
using Rubberduck.Parsing;
10+
using Rubberduck.Parsing.ComReflection;
1011
using Rubberduck.Parsing.Symbols.DeclarationLoaders;
1112
using Rubberduck.Parsing.VBA;
1213
using Rubberduck.Settings;

RetailCoder.VBE/UI/Command/MenuItems/CommandBars/SerializeDeclarationsCommandMenuItem.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
using System;
22
using System.IO;
33
using NLog;
4+
using Rubberduck.Parsing.ComReflection;
45
using Rubberduck.Parsing.Symbols;
56
using Rubberduck.Parsing.VBA;
67
using Rubberduck.SettingsProvider;

Rubberduck.Parsing/Symbols/ReferencedDeclarationsCollector.cs renamed to Rubberduck.Parsing/ComReflection/ReferencedDeclarationsCollector.cs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,15 +2,15 @@
22
using System.Collections.Generic;
33
using System.ComponentModel;
44
using System.IO;
5+
using System.Linq;
56
using System.Runtime.InteropServices;
67
using System.Runtime.InteropServices.ComTypes;
7-
using Rubberduck.Parsing.ComReflection;
8+
using Rubberduck.Parsing.Symbols;
89
using Rubberduck.Parsing.VBA;
910
using Rubberduck.VBEditor;
10-
using System.Linq;
1111
using Rubberduck.VBEditor.SafeComWrappers.Abstract;
1212

13-
namespace Rubberduck.Parsing.Symbols
13+
namespace Rubberduck.Parsing.ComReflection
1414
{
1515
public class ReferencedDeclarationsCollector
1616
{

Rubberduck.Parsing/Symbols/SerializableDeclaration.cs renamed to Rubberduck.Parsing/ComReflection/SerializableDeclaration.cs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,11 @@
22
using System.Linq;
33
using System.Runtime.Serialization;
44
using Rubberduck.Parsing.Annotations;
5+
using Rubberduck.Parsing.Symbols;
56
using Rubberduck.Parsing.VBA;
67
using Rubberduck.VBEditor;
78

8-
namespace Rubberduck.Parsing.Symbols
9+
namespace Rubberduck.Parsing.ComReflection
910
{
1011
public class SerializableDeclarationTree
1112
{

Rubberduck.Parsing/Symbols/XmlPersistableDeclarations.cs renamed to Rubberduck.Parsing/ComReflection/XmlPersistableDeclarations.cs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,11 @@
11
using System;
22
using System.IO;
3-
using System.Runtime.InteropServices.ComTypes;
43
using System.Runtime.Serialization;
54
using System.Text;
65
using System.Xml;
76
using Rubberduck.SettingsProvider;
87

9-
namespace Rubberduck.Parsing.Symbols
8+
namespace Rubberduck.Parsing.ComReflection
109
{
1110
public class XmlPersistableDeclarations : IPersistable<SerializableProject>
1211
{

Rubberduck.Parsing/Rubberduck.Parsing.csproj

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -258,7 +258,7 @@
258258
<Compile Include="Symbols\PropertyGetDeclaration.cs" />
259259
<Compile Include="Symbols\FunctionDeclaration.cs" />
260260
<Compile Include="Symbols\DeclarationLoaders\RubberduckApiDeclarations.cs" />
261-
<Compile Include="Symbols\SerializableDeclaration.cs" />
261+
<Compile Include="ComReflection\SerializableDeclaration.cs" />
262262
<Compile Include="Symbols\SquareBracketedNameComparer.cs" />
263263
<Compile Include="Symbols\SubroutineDeclaration.cs" />
264264
<Compile Include="Symbols\ProjectReferencePass.cs" />
@@ -272,7 +272,7 @@
272272
<Compile Include="Symbols\ProceduralModuleDeclaration.cs" />
273273
<Compile Include="Symbols\ProjectDeclaration.cs" />
274274
<Compile Include="Symbols\ProjectReference.cs" />
275-
<Compile Include="Symbols\ReferencedDeclarationsCollector.cs" />
275+
<Compile Include="ComReflection\ReferencedDeclarationsCollector.cs" />
276276
<Compile Include="Symbols\SyntaxErrorException.cs" />
277277
<Compile Include="ParserRuleContextExtensions.cs" />
278278
<Compile Include="Properties\AssemblyInfo.cs" />
@@ -284,7 +284,7 @@
284284
<Compile Include="Symbols\IdentifierReference.cs" />
285285
<Compile Include="Symbols\IdentifierReferenceListener.cs" />
286286
<Compile Include="Symbols\ConstantDeclaration.cs" />
287-
<Compile Include="Symbols\XmlPersistableDeclarations.cs" />
287+
<Compile Include="ComReflection\XmlPersistableDeclarations.cs" />
288288
<Compile Include="Syntax\SyntaxTree.cs" />
289289
<Compile Include="Syntax\TextSpan.cs" />
290290
<Compile Include="VBA\AttributeParser.cs" />

Rubberduck.Parsing/VBA/ParseCoordinator.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55
using System.Threading.Tasks;
66
using Antlr4.Runtime;
77
using Antlr4.Runtime.Tree;
8+
using Rubberduck.Parsing.ComReflection;
89
using Rubberduck.Parsing.Symbols;
910
using Rubberduck.Parsing.Symbols.DeclarationLoaders;
1011
using Rubberduck.VBEditor;

Rubberduck.Parsing/VBA/RubberduckParserState.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@
66
using System.Threading;
77
using Antlr4.Runtime;
88
using Antlr4.Runtime.Tree;
9+
using Rubberduck.Parsing.ComReflection;
910
using Rubberduck.Parsing.Symbols;
1011
using Rubberduck.VBEditor;
1112
using Rubberduck.Parsing.Annotations;

RubberduckTests/Mocks/MockParser.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44
using System.Linq;
55
using Microsoft.VisualStudio.TestTools.UnitTesting;
66
using Moq;
7+
using Rubberduck.Parsing.ComReflection;
78
using Rubberduck.Parsing.Symbols;
89
using Rubberduck.Parsing.Symbols.DeclarationLoaders;
910
using Rubberduck.Parsing.VBA;

0 commit comments

Comments
 (0)