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

Provide a code-fix to add missing stateful marshaller shape methods #73186

Merged
merged 8 commits into from
Aug 5, 2022

Conversation

jkoritzinsky
Copy link
Member

@jkoritzinsky jkoritzinsky commented Aug 1, 2022

Provide a code-fix to add the missing marshaller methods for the stateful marshaller shape when they are not present (based on the analyzer).

Also, update the Compiler testing platform toolset to pick up some fixes needed to test this well, and update our test suites to utilize the new features.

@ghost
Copy link

ghost commented Aug 1, 2022

Tagging subscribers to this area: @dotnet/interop-contrib
See info in area-owners.md if you want to be subscribed.

Issue Details

Provide a code-fix to add the missing marshaller methods for the stateful marshaller shape when they are not present (based on the analyzer).

Testing is blocked on the API in dotnet/roslyn-sdk#1003 (the current tests will behave erratically as the non-deterministic order of diagnostics will cause issues)

Author: jkoritzinsky
Assignees: -
Labels:

area-System.Runtime.InteropServices

Milestone: -

@jkoritzinsky jkoritzinsky marked this pull request as ready for review August 3, 2022 22:57
@jkoritzinsky jkoritzinsky added the source-generator Indicates an issue with a source generator feature label Aug 3, 2022
{
newMembers.Add(
gen.MethodDeclaration(
ShapeMemberNames.LinearCollection.Stateless.GetManagedValuesSource,
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Stateless -> Stateful in a bunch of places below. Or maybe we should put the shared names just under ShapeMemeberNames.LinearCollection?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think the only ones we have shared are the ones with the same signatures. It might be worthwhile sharing the common names that represent slightly different method signatures, but I don't think that needs to be done in this PR.

@jkoritzinsky jkoritzinsky merged commit 7e967b1 into dotnet:main Aug 5, 2022
@jkoritzinsky jkoritzinsky deleted the stateful-shape-codefix branch August 5, 2022 16:49
@ghost ghost locked as resolved and limited conversation to collaborators Sep 4, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
area-System.Runtime.InteropServices source-generator Indicates an issue with a source generator feature
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants