Skip to content

Replace ide_support with direct call binding; add typeArguments#9

Merged
knutwannheden merged 4 commits intomainfrom
wonky-koala
Feb 23, 2026
Merged

Replace ide_support with direct call binding; add typeArguments#9
knutwannheden merged 4 commits intomainfrom
wonky-koala

Conversation

@knutwannheden
Copy link
Contributor

Summary

  • Replace ide_support::call_signature_details with direct use of ty's binding APIs (Type::bindings(), match_parameters(), check_types_impl())
  • Extract Specialization from call bindings to resolve TypeVar parameters to concrete types and surface inferred type arguments in CallSignatureInfo
  • Update ruff submodule with additional widen script fix-ups for bare fn and mod declarations

Test plan

  • All 13 integration tests pass (12 existing + 1 new)
  • New test_generic_call_type_arguments verifies identity(42) surfaces one typeArguments entry
  • cargo check clean

…tors

Surface generic type parameters (PEP 695) in the wire protocol. Extracts
type parameters from Signature.generic_context and ClassLiteral.generic_context,
filtering out implicit Self type variables. Also fixes TypeVar name to use the
simple name (e.g. "T") instead of the qualified display form ("T@identity").
…tors

A function declaration should always include a parameters array, even
when empty, so consumers don't need to handle the absent-key case.
Replace the ide_support call_signature_details API with direct use of
ty's binding APIs (Type::bindings, match_parameters, check_types_impl).
This gives access to Binding::specialization(), which we use to:

- Resolve TypeVar parameters to their concrete types inline
- Surface inferred type arguments on CallSignatureInfo
# Conflicts:
#	ruff
#	tests/integration/main.rs
@knutwannheden knutwannheden merged commit 7d64c91 into main Feb 23, 2026
7 checks passed
@knutwannheden knutwannheden deleted the wonky-koala branch February 23, 2026 10:23
@github-project-automation github-project-automation bot moved this from In Progress to Done in OpenRewrite Feb 23, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Archived in project

Development

Successfully merging this pull request may close these issues.

1 participant