-
Notifications
You must be signed in to change notification settings - Fork 4.8k
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
Fix StringMarshalling error message and actually copy attributes from methods to shadows #86731
Fix StringMarshalling error message and actually copy attributes from methods to shadows #86731
Conversation
… methods to shadows
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
One fix then LGTM
...s/System.Runtime.InteropServices/gen/LibraryImportGenerator/LibraryImportGeneratorHelpers.cs
Outdated
Show resolved
Hide resolved
Tagging subscribers to this area: @dotnet/interop-contrib Issue DetailsJust a couple small changes to make the diagnostics represent the actual attribute in question, and fix a bug that attributes weren't actually being carried over to the shadowing methods.
|
…Generator/LibraryImportGeneratorHelpers.cs Co-authored-by: Jeremy Koritzinsky <jkoritzinsky@gmail.com>
…r attributes The issue dotnet/source-build#3483 looks similar to the issues I found before fixing in #86731. The relevant changes were in ComMethodContext.cs. If it's the same issue I was hitting, the attribute syntax was being copied over without adding 'using' statements or changing the attribute name to be fully qualified. I haven't validated yet, but this should fix it by just not copying the attributes for the parameters since they're not strictly necessary.
…and don't copy parameter attributes (#86899) * Use fully qualified type names for parameters and don't copy parameter attributes The issue dotnet/source-build#3483 looks similar to the issues I found before fixing in #86731. The relevant changes were in ComMethodContext.cs. If it's the same issue I was hitting, the attribute syntax was being copied over without adding 'using' statements or changing the attribute name to be fully qualified. I haven't validated yet, but this should fix it by just not copying the attributes for the parameters since they're not strictly necessary. * Add test for change
Just a couple small changes to make the diagnostics represent the actual attribute in question, and fix a bug that attributes weren't actually being carried over to the shadowing methods.