Skip to content

Commit d66c82f

Browse files
beachasaurus-rexVogel612
authored andcommitted
concrete ctor now feeds specific AnnotationType to base
1 parent 7256d4d commit d66c82f

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

Rubberduck.Parsing/Annotations/ExcelHotKeyAnnotation.cs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -8,12 +8,12 @@ namespace Rubberduck.Parsing.Annotations
88
{
99
public sealed class ExcelHotKeyAnnotation : FlexibleAttributeValueAnnotationBase
1010
{
11-
public ExcelHotKeyAnnotation(AnnotationType annotationType, QualifiedSelection qualifiedSelection, VBAParser.AnnotationContext context, IEnumerable<string> attributeValues) :
12-
base(annotationType, qualifiedSelection, context, GetHotKeyAttributeValue(attributeValues))
11+
public ExcelHotKeyAnnotation(QualifiedSelection qualifiedSelection, VBAParser.AnnotationContext context, IEnumerable<string> parameters) :
12+
base(AnnotationType.ExcelHotKey, qualifiedSelection, context, GetHotKeyAttributeValue(parameters))
1313
{ }
1414

15-
private static IEnumerable<string> GetHotKeyAttributeValue(IEnumerable<string> attributeValues) =>
16-
attributeValues.Take(1).Select(StripStringLiteralQuotes).Select(v => v[0] + @"\n14").ToList();
15+
private static IEnumerable<string> GetHotKeyAttributeValue(IEnumerable<string> parameters) =>
16+
parameters.Take(1).Select(StripStringLiteralQuotes).Select(v => v[0] + @"\n14").ToList();
1717

1818
private static string StripStringLiteralQuotes(string value) =>
1919
value.StartsWith("\"") && value.EndsWith("\"") && value.Length > 2

0 commit comments

Comments
 (0)