Skip to content

Method references which aren't immediately invoked can't be mapped due to overload resolution failure #1

@david-acker

Description

@david-acker

Bug

If a method is not immediately called, but rather assigned to a variable or passed as an argument and then invoked later, the method won't be included as a dependency as it will failure during overload resolution using the current mapping process.

The MethodReferenceNotInvoked and MethodReferencePassedAsArgument tests in MethodDependencyMapperTests are currently being skipped as they fail due to this issue.

Possible Solution

When overload resolution failures, attempt to get the correct symbol manually from SymbolInfo.CandidateSymbols.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workinghelp wantedExtra attention is needed

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions