Skip to content

C#: Add TypeUtils and MethodMatcher#6995

Merged
jkschneider merged 1 commit intomainfrom
jkschneider/type-utils-and-method-matcher
Mar 17, 2026
Merged

C#: Add TypeUtils and MethodMatcher#6995
jkschneider merged 1 commit intomainfrom
jkschneider/type-utils-and-method-matcher

Conversation

@jkschneider
Copy link
Member

Summary

  • Add TypeUtils C# implementation for type compatibility checks (assignability, inheritance, generic type handling)
  • Add MethodMatcher C# implementation for matching method invocations by type pattern and argument types
  • Add comprehensive tests for both utilities

Test plan

  • TypeUtilsTests cover assignability, generic types, parameterized types, arrays, and ShallowClass
  • MethodMatcherTests cover exact matches, wildcard patterns, subtype matching, constructors, and untyped arguments

@github-project-automation github-project-automation bot moved this to In Progress in OpenRewrite Mar 17, 2026
@jkschneider jkschneider merged commit d6ef72c into main Mar 17, 2026
1 check passed
@jkschneider jkschneider deleted the jkschneider/type-utils-and-method-matcher branch March 17, 2026 00:28
@github-project-automation github-project-automation bot moved this from In Progress to Done in OpenRewrite Mar 17, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

1 participant