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

[Parameter Capturing] Add support for generics, tuples, and nullable value types #5812

Merged
merged 19 commits into from
Jan 18, 2024

Conversation

schmittjoseph
Copy link
Member

Summary

This PR was co-developed with @kkeirstead .

This PR adds support for generics, tuples, and nullable value types. All of these parameters are considered TypeSpecs. To support boxing them we need to identify their signature blobs and then get a metadata token that represents it.

We can leverage our managed signature decoder to find the signature blobs for these parameters and then let the mutating profiler convert these information into a metadata token (sometimes the profiler will need to produce a new token if there already isn't one for the given TypeSpec).

Release Notes Entry

Support capturing the following parameter types: generics, tuples, and nullable value types

@schmittjoseph schmittjoseph added experimental-feature Pull requests that are focused on an experimental feature update-release-notes Pull requests that should be mentioned in the release notes labels Jan 10, 2024
@ghost ghost added the needs-review label Jan 10, 2024
@schmittjoseph schmittjoseph marked this pull request as ready for review January 10, 2024 19:01
@schmittjoseph schmittjoseph requested a review from a team as a code owner January 10, 2024 19:01
@ghost ghost removed the needs-review label Jan 12, 2024
@ghost ghost added the needs-review label Jan 12, 2024
@schmittjoseph schmittjoseph requested a review from wiktork January 16, 2024 17:33
@ghost ghost removed the needs-review label Jan 18, 2024
@schmittjoseph schmittjoseph merged commit 158a228 into main Jan 18, 2024
31 checks passed
@schmittjoseph schmittjoseph deleted the dev/joschmit+kkeirstead/typespec-param-support branch January 18, 2024 23:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
experimental-feature Pull requests that are focused on an experimental feature update-release-notes Pull requests that should be mentioned in the release notes
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants