From e3e11d0b8c81d1c0694aa3f1b4055ac319dcf669 Mon Sep 17 00:00:00 2001 From: Jackson Schuster <36744439+jtschuster@users.noreply.github.com> Date: Mon, 14 Aug 2023 11:42:23 -0700 Subject: [PATCH] Rename GeneratedClearManagedSource to correct name --- .../Marshalling/ElementsMarshalling.cs | 2 +- .../Marshalling/StatefulMarshallingStrategy.cs | 2 +- .../Marshalling/StatelessMarshallingStrategy.cs | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/libraries/System.Runtime.InteropServices/gen/Microsoft.Interop.SourceGeneration/Marshalling/ElementsMarshalling.cs b/src/libraries/System.Runtime.InteropServices/gen/Microsoft.Interop.SourceGeneration/Marshalling/ElementsMarshalling.cs index 10c7d7a8c34fd8..e4a86b44019261 100644 --- a/src/libraries/System.Runtime.InteropServices/gen/Microsoft.Interop.SourceGeneration/Marshalling/ElementsMarshalling.cs +++ b/src/libraries/System.Runtime.InteropServices/gen/Microsoft.Interop.SourceGeneration/Marshalling/ElementsMarshalling.cs @@ -28,7 +28,7 @@ protected ElementsMarshalling(IElementsMarshallingCollectionSource collectionSou CollectionSource = collectionSource; } - public StatementSyntax GenerateClearManagedSource(TypePositionInfo info, StubCodeContext context) + public StatementSyntax GenerateClearUnmanagedDestination(TypePositionInfo info, StubCodeContext context) { // .Clear(); return ExpressionStatement( diff --git a/src/libraries/System.Runtime.InteropServices/gen/Microsoft.Interop.SourceGeneration/Marshalling/StatefulMarshallingStrategy.cs b/src/libraries/System.Runtime.InteropServices/gen/Microsoft.Interop.SourceGeneration/Marshalling/StatefulMarshallingStrategy.cs index 22c1c33c9f2260..62e96988ebc415 100644 --- a/src/libraries/System.Runtime.InteropServices/gen/Microsoft.Interop.SourceGeneration/Marshalling/StatefulMarshallingStrategy.cs +++ b/src/libraries/System.Runtime.InteropServices/gen/Microsoft.Interop.SourceGeneration/Marshalling/StatefulMarshallingStrategy.cs @@ -438,7 +438,7 @@ public IEnumerable GenerateMarshalStatements(TypePositionInfo i { // If the parameter is marshalled by-value [Out], then we don't marshal the contents of the collection. // We do clear the span, so that if the invoke target doesn't fill it, we aren't left with undefined content. - yield return _elementsMarshalling.GenerateClearManagedSource(info, context); + yield return _elementsMarshalling.GenerateClearUnmanagedDestination(info, context); yield break; } if (context.Direction == MarshalDirection.UnmanagedToManaged && !info.IsByRef && info.ByValueContentsMarshalKind.HasFlag(ByValueContentsMarshalKind.Out)) diff --git a/src/libraries/System.Runtime.InteropServices/gen/Microsoft.Interop.SourceGeneration/Marshalling/StatelessMarshallingStrategy.cs b/src/libraries/System.Runtime.InteropServices/gen/Microsoft.Interop.SourceGeneration/Marshalling/StatelessMarshallingStrategy.cs index 2ed2653eb96a73..b8e0c5be4919fd 100644 --- a/src/libraries/System.Runtime.InteropServices/gen/Microsoft.Interop.SourceGeneration/Marshalling/StatelessMarshallingStrategy.cs +++ b/src/libraries/System.Runtime.InteropServices/gen/Microsoft.Interop.SourceGeneration/Marshalling/StatelessMarshallingStrategy.cs @@ -673,7 +673,7 @@ public IEnumerable GenerateMarshalStatements(TypePositionInfo i { // If the parameter is marshalled by-value [Out], then we don't marshal the contents of the collection. // We do clear the span, so that if the invoke target doesn't fill it, we aren't left with undefined content. - yield return _elementsMarshalling.GenerateClearManagedSource(info, context); + yield return _elementsMarshalling.GenerateClearUnmanagedDestination(info, context); yield break; }