Skip to content

Commit 61524cd

Browse files
committed
Merge branch 'next' of https://github.com/rubberduck-vba/Rubberduck into Issue1824
2 parents 709e96d + 2163f41 commit 61524cd

File tree

6 files changed

+26
-3
lines changed

6 files changed

+26
-3
lines changed

RetailCoder.VBE/Properties/AssemblyInfo.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,5 +31,5 @@
3131
// You can specify all the values or you can default the Build and Revision Numbers
3232
// by using the '*' as shown below:
3333
// [assembly: AssemblyVersion("1.0.*")]
34-
[assembly: AssemblyVersion("2.0.0.*")]
35-
[assembly: AssemblyFileVersion("2.0.0.0")]
34+
[assembly: AssemblyVersion("2.0.2.*")]
35+
[assembly: AssemblyFileVersion("2.0.2.0")]

Rubberduck.Parsing/Annotations/AnnotationType.cs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ public enum AnnotationType
1111
IgnoreTest,
1212
Ignore,
1313
Folder,
14-
NoIndent
14+
NoIndent,
15+
Interface
1516
}
1617
}
Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
using System.Collections.Generic;
2+
using Rubberduck.VBEditor;
3+
4+
namespace Rubberduck.Parsing.Annotations
5+
{
6+
public sealed class InterfaceAnnotation : AnnotationBase
7+
{
8+
public InterfaceAnnotation(QualifiedSelection qualifiedSelection, IEnumerable<string> parameters)
9+
: base(AnnotationType.Interface, qualifiedSelection)
10+
{
11+
}
12+
}
13+
}

Rubberduck.Parsing/Annotations/VBAParserAnnotationFactory.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@ public VBAParserAnnotationFactory()
2222
_creators.Add(AnnotationType.IgnoreTest.ToString().ToUpperInvariant(), typeof(IgnoreTestAnnotation));
2323
_creators.Add(AnnotationType.Folder.ToString().ToUpperInvariant(), typeof(FolderAnnotation));
2424
_creators.Add(AnnotationType.NoIndent.ToString().ToUpperInvariant(), typeof(NoIndentAnnotation));
25+
_creators.Add(AnnotationType.Interface.ToString().ToUpperInvariant(), typeof(InterfaceAnnotation));
2526
}
2627

2728
public IAnnotation Create(VBAParser.AnnotationContext context, QualifiedSelection qualifiedSelection)

Rubberduck.Parsing/Rubberduck.Parsing.csproj

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -71,6 +71,7 @@
7171
<Compile Include="Annotations\IAnnotation.cs" />
7272
<Compile Include="Annotations\IAnnotationFactory.cs" />
7373
<Compile Include="Annotations\IgnoreAnnotation.cs" />
74+
<Compile Include="Annotations\InterfaceAnnotation.cs" />
7475
<Compile Include="Annotations\InvalidAnnotationArgumentException.cs" />
7576
<Compile Include="Annotations\ModuleCleanupAnnotation.cs" />
7677
<Compile Include="Annotations\ModuleInitializeAnnotation.cs" />

RubberduckTests/Grammar/AnnotationTests.cs

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -91,5 +91,12 @@ public void NoIndentAnnotation_TypeIsNoIndent()
9191
var annotation = new NoIndentAnnotation(new QualifiedSelection(), null);
9292
Assert.AreEqual(AnnotationType.NoIndent, annotation.AnnotationType);
9393
}
94+
95+
[TestMethod]
96+
public void InterfaceAnnotation_TypeIsInterface()
97+
{
98+
var annotation = new InterfaceAnnotation(new QualifiedSelection(), null);
99+
Assert.AreEqual(AnnotationType.Interface, annotation.AnnotationType);
100+
}
94101
}
95102
}

0 commit comments

Comments
 (0)