You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Allow unnecessary [In, Out] attributes on blittable arrays and report them as unnecessary (#87774)
* Change our '[In, Out]' attribute handling to have a concept of 'unnecessary but not invalid' to enable us in the future to report a non-fatal diagnostic.
* WIP enable unnecessary diagnostic in LibraryImportGenerator'
* Hook up diagnostics and add tests for LibraryImportGenerator
* Hook up diagnostics for ComInterfaceGenerator as well
* Update XLF
* Don't reference the live LibraryImportGenerator when building .NET 7 assets. Use the inbox instead.
* PR feedback
* Fix merge
Copy file name to clipboardExpand all lines: src/libraries/System.Runtime.InteropServices.JavaScript/gen/JSImportGenerator/Marshaling/BaseJSGenerator.cs
+1-1
Original file line number
Diff line number
Diff line change
@@ -26,7 +26,7 @@ protected BaseJSGenerator(MarshalerType marshalerType, IMarshallingGenerator inn
Copy file name to clipboardExpand all lines: src/libraries/System.Runtime.InteropServices.JavaScript/gen/JSImportGenerator/Marshaling/EmptyJSGenerator.cs
+1-1
Original file line number
Diff line number
Diff line change
@@ -15,7 +15,7 @@ internal sealed class EmptyJSGenerator : IJSMarshallingGenerator
GeneratorDiagnostic.NotSupported{NotSupportedDetails: not null,TypePositionInfo.IsManagedReturnPosition:true}=>GeneratorDiagnostics.ReturnTypeNotSupportedWithDetails,
26
26
GeneratorDiagnostic.NotSupported{NotSupportedDetails: not null,TypePositionInfo.IsManagedReturnPosition:false}=>GeneratorDiagnostics.ParameterTypeNotSupportedWithDetails,
Copy file name to clipboardExpand all lines: src/libraries/System.Runtime.InteropServices/gen/ComInterfaceGenerator/Marshallers/ComInterfaceDispatchMarshallerFactory.cs
+1-1
Original file line number
Diff line number
Diff line change
@@ -61,7 +61,7 @@ public IEnumerable<StatementSyntax> Generate(TypePositionInfo info, StubCodeCont
Copy file name to clipboardExpand all lines: src/libraries/System.Runtime.InteropServices/gen/ComInterfaceGenerator/Marshallers/ManagedHResultExceptionMarshallerFactory.cs
+2-2
Original file line number
Diff line number
Diff line change
@@ -71,7 +71,7 @@ public IEnumerable<StatementSyntax> Generate(TypePositionInfo info, StubCodeCont
Copy file name to clipboardExpand all lines: src/libraries/System.Runtime.InteropServices/gen/ComInterfaceGenerator/Marshallers/ObjectUnwrapperMarshallerFactory.cs
+1-1
Original file line number
Diff line number
Diff line change
@@ -61,7 +61,7 @@ public IEnumerable<StatementSyntax> Generate(TypePositionInfo info, StubCodeCont
<value>The specified 'MarshalAsAttribute' configuration for the return value of method '{1}' is not supported by source-generated COM. If the specified configuration is required, use `ComImport` instead.</value>
<value>Unnecesssary marshalling info was provided. This marshalling information can be removed without any change in behavior to the application.</value>
<source>Unnecesssary marshalling info was provided. This marshalling information can be removed without any change in behavior to the application.</source>
459
+
<targetstate="new">Unnecesssary marshalling info was provided. This marshalling information can be removed without any change in behavior to the application.</target>
460
+
<note />
461
+
</trans-unit>
462
+
<trans-unitid="UnnecessaryMarshallingInfoTitle">
463
+
<source>Unnecessary marshalling info was provided and can be removed.</source>
464
+
<targetstate="new">Unnecessary marshalling info was provided and can be removed.</target>
<source>Unnecesssary marshalling info was provided. This marshalling information can be removed without any change in behavior to the application.</source>
459
+
<targetstate="new">Unnecesssary marshalling info was provided. This marshalling information can be removed without any change in behavior to the application.</target>
460
+
<note />
461
+
</trans-unit>
462
+
<trans-unitid="UnnecessaryMarshallingInfoTitle">
463
+
<source>Unnecessary marshalling info was provided and can be removed.</source>
464
+
<targetstate="new">Unnecessary marshalling info was provided and can be removed.</target>
<source>Unnecesssary marshalling info was provided. This marshalling information can be removed without any change in behavior to the application.</source>
459
+
<targetstate="new">Unnecesssary marshalling info was provided. This marshalling information can be removed without any change in behavior to the application.</target>
460
+
<note />
461
+
</trans-unit>
462
+
<trans-unitid="UnnecessaryMarshallingInfoTitle">
463
+
<source>Unnecessary marshalling info was provided and can be removed.</source>
464
+
<targetstate="new">Unnecessary marshalling info was provided and can be removed.</target>
<source>Unnecesssary marshalling info was provided. This marshalling information can be removed without any change in behavior to the application.</source>
459
+
<targetstate="new">Unnecesssary marshalling info was provided. This marshalling information can be removed without any change in behavior to the application.</target>
460
+
<note />
461
+
</trans-unit>
462
+
<trans-unitid="UnnecessaryMarshallingInfoTitle">
463
+
<source>Unnecessary marshalling info was provided and can be removed.</source>
464
+
<targetstate="new">Unnecessary marshalling info was provided and can be removed.</target>
0 commit comments