Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add new 'Implements' analyzer for interface implementation lookup #2028

Merged
merged 3 commits into from
Jun 3, 2020
Merged

Add new 'Implements' analyzer for interface implementation lookup #2028

merged 3 commits into from
Jun 3, 2020

Conversation

dymanoid
Copy link
Contributor

@dymanoid dymanoid commented Jun 1, 2020

Resolves #1998

A new analyzer for the interface implementation lookup. The analyzer can be used on any non-static members of classes and structs. The analyzer shows a new Implements node for those members that implement an interface (implicitly or explicitly). Abstract members are considered as implementation. Overridden virtual members of base classes are not considered.

I also added the Moq library into the ILSpy.Tests test project. If you'd like to use another mocking library, let me know - I'll change that.

implements

dymanoid added 3 commits June 1, 2020 21:34
These analyzers show all members implementing the analyzed member,
not the members of implemented interfaces
The analyzer can be used on any non-static members of classes and
structs. The analyzer shows a new 'Implements' node for those members
that implement an interface (implicitly or explicitly). Abstract members
are considered as implementation. Overridden virtual members of base
classes are not considered.
@siegfriedpammer
Copy link
Member

Thank you very much for your contribution!

LGTM

@siegfriedpammer siegfriedpammer merged commit b8ef9f5 into icsharpcode:master Jun 3, 2020
@dymanoid dymanoid deleted the implements-interface-analyzer branch June 4, 2020 22:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Issues with finding usages of a member implementing an interface member
2 participants