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

Use a collection expression to assign the IID in GeneratedComInterface-generated code #99734

Merged

Conversation

jkoritzinsky
Copy link
Member

Fixes #93151

var literals = new LiteralExpressionSyntax[bytes.Length];
var literals = new CollectionElementSyntax[bytes.Length];
Copy link
Member

Choose a reason for hiding this comment

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

Does this require language version guard?

Copy link
Member Author

Choose a reason for hiding this comment

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

Generally, we haven't been adding language version guards in the interop source generators. It's technically more correct to do so, but I'd rather hold off until we have a customer who explicitly downgrades the language version and files an issue with us before I add them.

Copy link
Member

@jtschuster jtschuster left a comment

Choose a reason for hiding this comment

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

LGTM, thank you!

@jkoritzinsky jkoritzinsky merged commit 9fc8ae7 into dotnet:main Mar 14, 2024
114 of 121 checks passed
@jkoritzinsky jkoritzinsky deleted the com-sg-collection-expressions branch March 14, 2024 17:09
@github-actions github-actions bot locked and limited conversation to collaborators Apr 14, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Update ComInterfaceGenerator to use collection expressions in IID creation
3 participants