Skip to content

Commit ecddd1e

Browse files
Update EnumeratorMemberAnnotation.cs
replaced magical number with a variable reference to that magical number
1 parent 91a5088 commit ecddd1e

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed
Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
using System.Collections.Generic;
22
using Rubberduck.Parsing.Grammar;
33
using Rubberduck.VBEditor;
4+
using Rubberduck.Resources.Registration;
45

56
namespace Rubberduck.Parsing.Annotations
67
{
@@ -10,7 +11,7 @@ namespace Rubberduck.Parsing.Annotations
1011
public sealed class EnumeratorMemberAnnotation : FixedAttributeValueAnnotationBase
1112
{
1213
public EnumeratorMemberAnnotation()
13-
: base("Enumerator", AnnotationTarget.Member, "VB_UserMemId", new[] { "-4" })
14+
: base("Enumerator", AnnotationTarget.Member, "VB_UserMemId", new[] { WellKnownDispIds.NewEnum })
1415
{}
1516
}
16-
}
17+
}

0 commit comments

Comments
 (0)