Skip to content

Commit c0f612a

Browse files
Andrin Meierretailcoder
authored andcommitted
fix #1683 (#1689)
1 parent c6d3695 commit c0f612a

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

Rubberduck.Parsing/VBA/AttributeParser.cs

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -166,7 +166,12 @@ public override void ExitAttributeStmt(VBAParser.AttributeStmtContext context)
166166
name = GetAttributeNameWithoutProcedureName((VBAParser.MemberAccessExprContext)expr);
167167
}
168168
var values = context.attributeValue().Select(e => e.GetText().Replace("\"", string.Empty)).ToList();
169-
_currentScopeAttributes.Add(name, values);
169+
IEnumerable<string> existingValues;
170+
if (_currentScopeAttributes.TryGetValue(name, out existingValues))
171+
{
172+
values.InsertRange(0, existingValues);
173+
}
174+
_currentScopeAttributes[name] = values;
170175
}
171176

172177
private string GetAttributeNameWithoutProcedureName(VBAParser.MemberAccessExprContext expr)

0 commit comments

Comments
 (0)