Skip to content

Commit 6bc7700

Browse files
committed
Fix Attributes HasHiddenMemberAttribute
Includes another suggestion from the review comments on PR #4641
1 parent cbaa468 commit 6bc7700

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

Rubberduck.Parsing/Annotations/AnnotationType.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ namespace Rubberduck.Parsing.Annotations
55
/// <summary>
66
/// Member names are
77
/// </summary>
8+
[Flags]
89
public enum AnnotationType
910
{
1011
/// <summary>

Rubberduck.Parsing/Symbols/Attributes.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -126,13 +126,13 @@ public bool HasDefaultMemberAttribute()
126126

127127
public void AddHiddenMemberAttribute(string identifierName)
128128
{
129-
Add(new AttributeNode(identifierName + ".VB_UserMemId", new[] {"40"}));
129+
Add(new AttributeNode(identifierName + ".VB_MemberFlags", new[] {"40"}));
130130
}
131131

132132
public bool HasHiddenMemberAttribute(string identifierName, out AttributeNode attribute)
133133
{
134134
attribute = this.SingleOrDefault(a => a.HasValue("40")
135-
&& a.Name.Equals($"{identifierName}.VB_UserMemId", StringComparison.OrdinalIgnoreCase));
135+
&& a.Name.Equals($"{identifierName}.VB_MemberFlags", StringComparison.OrdinalIgnoreCase));
136136
return attribute != null;
137137
}
138138

0 commit comments

Comments
 (0)