Indexed Default Member Access

Identifies the use of indexed default member accesses.

Reasoning

An indexed default member access hides away the actually called member.

Default severity

Warning

Inspection type

CodeQualityIssues

Examples

This example should trigger a result

MyModule (StandardModule)
Public Sub DoSomething(ByVal coll As Collection) Dim bar As Variant bar = coll(23) End Sub

This example should NOT trigger a result

MyModule (StandardModule)
Public Sub DoSomething(ByVal coll As Collection) Dim bar As Variant bar = coll.Item(23) End Sub

Rubberduck.CodeAnalysis.Inspections.Concrete.IndexedDefaultMemberAccessInspection.cs (Prerelease-v2.5.9.6289)