1 write to CollectionSource
Microsoft.Interop.SourceGeneration (1)
Marshalling\ElementsMarshalling.cs (1)
33
CollectionSource
= collectionSource;
58 references to CollectionSource
Microsoft.Interop.SourceGeneration (58)
Marshalling\ElementsMarshalling.cs (58)
45
CollectionSource
.GetUnmanagedValuesDestination(context),
57
CollectionSource
.GetManagedValuesDestination(context),
160
Argument(
CollectionSource
.GetUnmanagedValuesSource(context)))),
163
CollectionSource
.GetUnmanagedValuesSource(context),
168
CollectionSource
.GetManagedValuesDestination(context),
175
ExpressionSyntax destination = CastToManagedIfNecessary(
CollectionSource
.GetUnmanagedValuesDestination(context));
179
CollectionSource
.GetManagedValuesSource(context),
186
ExpressionSyntax source = CastToManagedIfNecessary(
CollectionSource
.GetUnmanagedValuesDestination(context));
196
Argument(
CollectionSource
.GetManagedValuesSource(context)))),
199
CollectionSource
.GetManagedValuesSource(context),
215
ExpressionSyntax source = CastToManagedIfNecessary(
CollectionSource
.GetUnmanagedValuesSource(context));
221
Argument(
CollectionSource
.GetManagedValuesDestination(context)));
257
string managedSpanIdentifier = MarshallerHelpers.GetManagedSpanIdentifier(
CollectionSource
.TypeInfo, context);
258
string nativeSpanIdentifier = MarshallerHelpers.GetNativeSpanIdentifier(
CollectionSource
.TypeInfo, context);
269
CollectionSource
.GetManagedValuesSource(context)),
273
CollectionSource
.GetUnmanagedValuesDestination(context))
276
if (ShouldCleanUpAllElements(
CollectionSource
.TypeInfo,
CollectionSource
.CodeContext))
295
string managedSpanIdentifier = MarshallerHelpers.GetManagedSpanIdentifier(
CollectionSource
.TypeInfo, context);
296
string nativeSpanIdentifier = MarshallerHelpers.GetNativeSpanIdentifier(
CollectionSource
.TypeInfo, context);
305
CollectionSource
.GetUnmanagedValuesSource(context)),
309
CollectionSource
.GetManagedValuesDestination(context)),
325
string numElementsIdentifier = MarshallerHelpers.GetNumElementsIdentifier(
CollectionSource
.TypeInfo, context);
326
string managedSpanIdentifier = MarshallerHelpers.GetManagedSpanIdentifier(
CollectionSource
.TypeInfo, context);
328
var setNumElements =
CollectionSource
.GetNumElementsAssignmentFromManagedValuesSource(
CollectionSource
.TypeInfo, context);
342
CollectionSource
.GetManagedValuesSource(context),
347
string nativeSpanIdentifier = MarshallerHelpers.GetNativeSpanIdentifier(
CollectionSource
.TypeInfo, context);
351
CollectionSource
.GetUnmanagedValuesDestination(context));
368
string nativeSpanIdentifier = MarshallerHelpers.GetNativeSpanIdentifier(
CollectionSource
.TypeInfo, context);
370
if (!UsesLastIndexMarshalled(
CollectionSource
.TypeInfo,
CollectionSource
.CodeContext))
378
indexConstraintName = IdentifierName(MarshallerHelpers.GetLastIndexMarshalledIdentifier(
CollectionSource
.TypeInfo, context));
388
if (UsesLastIndexMarshalled(
CollectionSource
.TypeInfo,
CollectionSource
.CodeContext))
392
IdentifierName(MarshallerHelpers.GetLastIndexMarshalledIdentifier(
CollectionSource
.TypeInfo, context)));
401
MarshallerHelpers.GetMarshalDirection(
CollectionSource
.TypeInfo,
CollectionSource
.CodeContext) == MarshalDirection.ManagedToUnmanaged
402
?
CollectionSource
.GetUnmanagedValuesDestination(context)
403
:
CollectionSource
.GetUnmanagedValuesSource(context)),
413
string numElementsIdentifier = MarshallerHelpers.GetNumElementsIdentifier(
CollectionSource
.TypeInfo, context);
414
string managedSpanIdentifier = MarshallerHelpers.GetManagedSpanIdentifier(
CollectionSource
.TypeInfo, context);
415
string nativeSpanIdentifier = MarshallerHelpers.GetNativeSpanIdentifier(
CollectionSource
.TypeInfo, context);
417
var setNumElements =
CollectionSource
.GetNumElementsAssignmentFromManagedValuesDestination(
CollectionSource
.TypeInfo, context);
432
CollectionSource
.GetUnmanagedValuesSource(context),
445
CollectionSource
.GetManagedValuesDestination(context))))));
450
if (
CollectionSource
.CodeContext.Direction is MarshalDirection.UnmanagedToManaged &&
CollectionSource
.TypeInfo.ByValueContentsMarshalKind is ByValueContentsMarshalKind.Out)
478
string managedSpanIdentifier = MarshallerHelpers.GetManagedSpanIdentifier(
CollectionSource
.TypeInfo, context);
479
string nativeSpanIdentifier = MarshallerHelpers.GetNativeSpanIdentifier(
CollectionSource
.TypeInfo, context);
480
StubCodeContext elementCodeContext = StubCodeContext.CreateElementMarshallingContext(
CollectionSource
.CodeContext);
578
if (UsesLastIndexMarshalled(
CollectionSource
.TypeInfo,
CollectionSource
.CodeContext) && stagesToGeneratePerElement.Contains(StubIdentifierContext.Stage.Marshal))
582
IdentifierName(MarshallerHelpers.GetLastIndexMarshalledIdentifier(
CollectionSource
.TypeInfo, context))));
613
=> UsesLastIndexMarshalled(
CollectionSource
.TypeInfo,
CollectionSource
.CodeContext)
619
Identifier(MarshallerHelpers.GetLastIndexMarshalledIdentifier(
CollectionSource
.TypeInfo, context)),