Skip to content

Conversation

@jkoritzinsky
Copy link
Member

Now that we track "is runtime marshalling disabled" via a simple flag and we do not calculate it from the Compilation object, we can avoid using the Compilation when creating the IMarshallingGeneratorFactory. As a result, we can move where we construct the object to the stage where it's actually used and avoid having to create custom equality operators and other cleverness to keep our models incremental.

…rator factory during the 'source emit' stage.
@jkoritzinsky jkoritzinsky added this to the 9.0.0 milestone Oct 4, 2023
@jkoritzinsky jkoritzinsky added area-System.Runtime.InteropServices source-generator Indicates an issue with a source generator feature labels Oct 4, 2023
@ghost ghost assigned jkoritzinsky Oct 4, 2023
@ghost
Copy link

ghost commented Oct 4, 2023

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

Issue Details

Now that we track "is runtime marshalling disabled" via a simple flag and we do not calculate it from the Compilation object, we can avoid using the Compilation when creating the IMarshallingGeneratorFactory. As a result, we can move where we construct the object to the stage where it's actually used and avoid having to create custom equality operators and other cleverness to keep our models incremental.

Author: jkoritzinsky
Assignees: -
Labels:

area-System.Runtime.InteropServices, source-generator

Milestone: 9.0.0

@jkoritzinsky jkoritzinsky merged commit e66bc8a into dotnet:main Oct 5, 2023
@jkoritzinsky jkoritzinsky deleted the no-gen-factory-key branch October 5, 2023 02:54
@ghost ghost locked as resolved and limited conversation to collaborators Nov 4, 2023
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