We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4241494 commit 56cd0f8Copy full SHA for 56cd0f8
Rubberduck.Parsing/VBA/Attributes.cs
@@ -80,7 +80,11 @@ public class Attributes : HashSet<AttributeNode>
80
{
81
public bool HasAttributeFor(AnnotationType annotationType, string memberName = null)
82
83
- Debug.Assert(annotationType.HasFlag(AnnotationType.Attribute));
+ if (!annotationType.HasFlag(AnnotationType.Attribute))
84
+ {
85
+ return false;
86
+ }
87
+
88
var name = "VB_" + annotationType;
89
90
if (annotationType.HasFlag(AnnotationType.MemberAnnotation))
0 commit comments