Skip to content

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

Merged
jkoritzinsky merged 2 commits into
dotnet:mainfrom
jkoritzinsky:as-native-type-info
Nov 19, 2022
Merged

Change IMarshallingGenerator.AsNativeType to return ManagedTypeInfo instead of TypeSyntax#78195
jkoritzinsky merged 2 commits into
dotnet:mainfrom
jkoritzinsky:as-native-type-info

Conversation

@jkoritzinsky

Copy link
Copy Markdown
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
@ghost

Copy link
Copy Markdown

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 <elfung@microsoft.com>
@jkoritzinsky
jkoritzinsky merged commit 13ff1c0 into dotnet:mainNov 19, 2022
@jkoritzinsky
jkoritzinsky deleted the as-native-type-info branch November 19, 2022 17:57
@ghostghost locked as resolved and limited conversation to collaborators Dec 19, 2022
Sign up for freeto subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

area-System.Runtime.InteropServicessource-generatorIndicates an issue with a source generator feature

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants

@jkoritzinsky@AaronRobinsonMSFT@elinor-fung