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 c6d3695 commit c0f612aCopy full SHA for c0f612a
Rubberduck.Parsing/VBA/AttributeParser.cs
@@ -166,7 +166,12 @@ public override void ExitAttributeStmt(VBAParser.AttributeStmtContext context)
166
name = GetAttributeNameWithoutProcedureName((VBAParser.MemberAccessExprContext)expr);
167
}
168
var values = context.attributeValue().Select(e => e.GetText().Replace("\"", string.Empty)).ToList();
169
- _currentScopeAttributes.Add(name, values);
+ IEnumerable<string> existingValues;
170
+ if (_currentScopeAttributes.TryGetValue(name, out existingValues))
171
+ {
172
+ values.InsertRange(0, existingValues);
173
+ }
174
+ _currentScopeAttributes[name] = values;
175
176
177
private string GetAttributeNameWithoutProcedureName(VBAParser.MemberAccessExprContext expr)
0 commit comments