Skip to main content
Replace verbose if-statements with composable matchers for symbols and invocations.

Match.* (Symbol Matching)

Fluent matching for ISymbol types:
Matchers mutate this when chaining. Create new matchers for each distinct pattern.

Factory Pattern

For reusable base matchers:

Method Matcher

Type Matcher

Invoke.* (Invocation Matching)

Match IInvocationOperation:

Invocation Matcher

Examples

Test Method Detection

Async Handler Detection

Dispose Call Detection

LINQ Query Detection