1 write to CollectionSource
Microsoft.Interop.SourceGeneration (1)
Marshalling\ElementsMarshalling.cs (1)
33
CollectionSource
= collectionSource;
60 references to CollectionSource
Microsoft.Interop.SourceGeneration (60)
Marshalling\ElementsMarshalling.cs (60)
46
CollectionSource
.GetUnmanagedValuesDestination(context),
58
CollectionSource
.GetManagedValuesDestination(context),
161
Argument(
CollectionSource
.GetUnmanagedValuesSource(context)))),
164
CollectionSource
.GetUnmanagedValuesSource(context),
169
CollectionSource
.GetManagedValuesDestination(context),
176
ExpressionSyntax destination = CastToManagedIfNecessary(
CollectionSource
.GetUnmanagedValuesDestination(context));
180
CollectionSource
.GetManagedValuesSource(context),
187
ExpressionSyntax source = CastToManagedIfNecessary(
CollectionSource
.GetUnmanagedValuesDestination(context));
197
Argument(
CollectionSource
.GetManagedValuesSource(context)))),
200
CollectionSource
.GetManagedValuesSource(context),
216
ExpressionSyntax source = CastToManagedIfNecessary(
CollectionSource
.GetUnmanagedValuesSource(context));
222
Argument(
CollectionSource
.GetManagedValuesDestination(context)));
258
string managedSpanIdentifier = MarshallerHelpers.GetManagedSpanIdentifier(
CollectionSource
.TypeInfo, context);
259
string nativeSpanIdentifier = MarshallerHelpers.GetNativeSpanIdentifier(
CollectionSource
.TypeInfo, context);
270
CollectionSource
.GetManagedValuesSource(context)),
274
CollectionSource
.GetUnmanagedValuesDestination(context))
277
if (ShouldCleanUpAllElements(
CollectionSource
.TypeInfo,
CollectionSource
.CodeContext))
287
IdentifierName(MarshallerHelpers.GetManagedSpanIdentifier(
CollectionSource
.TypeInfo, context)),
296
string managedSpanIdentifier = MarshallerHelpers.GetManagedSpanIdentifier(
CollectionSource
.TypeInfo, context);
297
string nativeSpanIdentifier = MarshallerHelpers.GetNativeSpanIdentifier(
CollectionSource
.TypeInfo, context);
298
string numElementsIdentifier = MarshallerHelpers.GetNumElementsIdentifier(
CollectionSource
.TypeInfo, context);
307
CollectionSource
.GetUnmanagedValuesSource(context)),
311
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));
366
string nativeSpanIdentifier = MarshallerHelpers.GetNativeSpanIdentifier(
CollectionSource
.TypeInfo, context);
368
if (!UsesLastIndexMarshalled(
CollectionSource
.TypeInfo,
CollectionSource
.CodeContext))
376
indexConstraintName = IdentifierName(MarshallerHelpers.GetLastIndexMarshalledIdentifier(
CollectionSource
.TypeInfo, context));
386
if (UsesLastIndexMarshalled(
CollectionSource
.TypeInfo,
CollectionSource
.CodeContext))
390
IdentifierName(MarshallerHelpers.GetLastIndexMarshalledIdentifier(
CollectionSource
.TypeInfo, context)));
399
MarshallerHelpers.GetMarshalDirection(
CollectionSource
.TypeInfo,
CollectionSource
.CodeContext) == MarshalDirection.ManagedToUnmanaged
400
?
CollectionSource
.GetUnmanagedValuesDestination(context)
401
:
CollectionSource
.GetUnmanagedValuesSource(context)),
411
string numElementsIdentifier = MarshallerHelpers.GetNumElementsIdentifier(
CollectionSource
.TypeInfo, context);
412
string managedSpanIdentifier = MarshallerHelpers.GetManagedSpanIdentifier(
CollectionSource
.TypeInfo, context);
413
string nativeSpanIdentifier = MarshallerHelpers.GetNativeSpanIdentifier(
CollectionSource
.TypeInfo, context);
415
var setNumElements =
CollectionSource
.GetNumElementsAssignmentFromManagedValuesDestination(
CollectionSource
.TypeInfo, context);
430
CollectionSource
.GetUnmanagedValuesSource(context),
443
CollectionSource
.GetManagedValuesDestination(context))))));
448
if (
CollectionSource
.CodeContext.Direction is MarshalDirection.UnmanagedToManaged &&
CollectionSource
.TypeInfo.ByValueContentsMarshalKind is ByValueContentsMarshalKind.Out)
474
string managedSpanIdentifier = MarshallerHelpers.GetManagedSpanIdentifier(
CollectionSource
.TypeInfo, context);
475
string nativeSpanIdentifier = MarshallerHelpers.GetNativeSpanIdentifier(
CollectionSource
.TypeInfo, context);
476
StubCodeContext elementCodeContext = StubCodeContext.CreateElementMarshallingContext(
CollectionSource
.CodeContext);
574
if (UsesLastIndexMarshalled(
CollectionSource
.TypeInfo,
CollectionSource
.CodeContext) && stagesToGeneratePerElement.Contains(StubIdentifierContext.Stage.Marshal))
578
IdentifierName(MarshallerHelpers.GetLastIndexMarshalledIdentifier(
CollectionSource
.TypeInfo, context))));
609
=> UsesLastIndexMarshalled(
CollectionSource
.TypeInfo,
CollectionSource
.CodeContext)
615
Identifier(MarshallerHelpers.GetLastIndexMarshalledIdentifier(
CollectionSource
.TypeInfo, context)),