File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
Rubberduck.CodeAnalysis/Inspections/Concrete Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -80,9 +80,9 @@ protected override IEnumerable<IInspectionResult> DoGetInspectionResults(Declara
8080 protected override bool IsResultReference ( IdentifierReference reference , DeclarationFinder finder )
8181 {
8282 var memberAccess = reference . Context . GetAncestor < VBAParser . MemberAccessExprContext > ( ) ;
83- var memberArgs = memberAccess ? . GetAncestor < VBAParser . IndexExprContext > ( ) ? . argumentList ( ) ? . argument ( ) ;
83+ var memberArgs = memberAccess ? . GetAncestor < VBAParser . IndexExprContext > ( ) ? . argumentList ( ) ;
8484
85- return memberAccess is VBAParser . MemberAccessExprContext && ( memberArgs ? . Length ?? 0 ) == 0 ;
85+ return memberAccess != null && ! memberArgs . GetDescendents < VBAParser . ArgumentExpressionContext > ( ) . Any ( ) ;
8686 }
8787
8888 protected override string ResultDescription ( IdentifierReference reference )
You can’t perform that action at this time.
0 commit comments