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

Change IMarshallingGenerator.AsNativeType to return ManagedTypeInfo instead of TypeSyntax #78195

Merged
merged 2 commits into from
Nov 19, 2022

Conversation

jkoritzinsky
Copy link
Member

Change IMarshallingGenerator.AsNativeType to return a ManagedTypeInfo and not a TypeSyntax. We need to reason about this type for the unmanaged exception handling design, so using a ManagedTypeInfo is preferable. Split off from #77130 for eaiser review

… and not a TypeSyntax. We need to reason about this type for the unmanaged exception handling design, so using a ManagedTypeInfo is preferable.

# Conflicts:
#	src/libraries/System.Runtime.InteropServices/gen/ComInterfaceGenerator/Marshallers/NativeThisToManagedThisMarshallerFactory.cs
#	src/libraries/System.Runtime.InteropServices/gen/Microsoft.Interop.SourceGeneration/VariableDeclarations.cs
@jkoritzinsky jkoritzinsky added area-System.Runtime.InteropServices source-generator Indicates an issue with a source generator feature labels Nov 10, 2022
@jkoritzinsky jkoritzinsky added this to the 8.0.0 milestone Nov 10, 2022
@ghost
Copy link

ghost commented Nov 10, 2022

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

Issue Details

Change IMarshallingGenerator.AsNativeType to return a ManagedTypeInfo and not a TypeSyntax. We need to reason about this type for the unmanaged exception handling design, so using a ManagedTypeInfo is preferable. Split off from #77130 for eaiser review

Author: jkoritzinsky
Assignees: -
Labels:

area-System.Runtime.InteropServices, source-generator

Milestone: 8.0.0

…erop.SourceGeneration/Marshalling/MarshallingGenerator.cs

Co-authored-by: Elinor Fung <[email protected]>
@jkoritzinsky jkoritzinsky merged commit 13ff1c0 into dotnet:main Nov 19, 2022
@jkoritzinsky jkoritzinsky deleted the as-native-type-info branch November 19, 2022 17:57
@ghost ghost locked as resolved and limited conversation to collaborators Dec 19, 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.

3 participants