Skip to content

Commit be16dc7

Browse files
committed
fixed "dictionary call" syntax
1 parent 97e3ce7 commit be16dc7

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

Rubberduck.Parsing/Symbols/IdentifierReferenceResolver.cs

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -547,6 +547,15 @@ public void Resolve(VBAParser.ICS_S_MembersCallContext context)
547547
var chainedCalls = context.iCS_S_MemberCall();
548548
foreach (var memberCall in chainedCalls)
549549
{
550+
var notationToken = memberCall.children[0];
551+
if (notationToken.GetText() == "!")
552+
{
553+
// we can't handle this syntax yet.
554+
// we need to know what the parent's default property is..
555+
// ...and whether it has a parameterized getter taking in a string.
556+
return;
557+
}
558+
550559
var member = ResolveInternal(memberCall.iCS_S_ProcedureOrArrayCall(), parent)
551560
?? ResolveInternal(memberCall.iCS_S_VariableOrProcedureCall(), parent);
552561

0 commit comments

Comments
 (0)