2 implementations of TypeInfo
Microsoft.Interop.SourceGeneration (2)
Marshalling\StatefulMarshallingStrategy.cs (1)
263
public TypePositionInfo
TypeInfo
=> info;
Marshalling\StatelessMarshallingStrategy.cs (1)
478
public TypePositionInfo
TypeInfo
=> info;
26 references to TypeInfo
Microsoft.Interop.SourceGeneration (26)
Marshalling\ElementsMarshalling.cs (26)
257
string managedSpanIdentifier = MarshallerHelpers.GetManagedSpanIdentifier(CollectionSource.
TypeInfo
, context);
258
string nativeSpanIdentifier = MarshallerHelpers.GetNativeSpanIdentifier(CollectionSource.
TypeInfo
, context);
276
if (ShouldCleanUpAllElements(CollectionSource.
TypeInfo
, CollectionSource.CodeContext))
295
string managedSpanIdentifier = MarshallerHelpers.GetManagedSpanIdentifier(CollectionSource.
TypeInfo
, context);
296
string nativeSpanIdentifier = MarshallerHelpers.GetNativeSpanIdentifier(CollectionSource.
TypeInfo
, 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);
347
string nativeSpanIdentifier = MarshallerHelpers.GetNativeSpanIdentifier(CollectionSource.
TypeInfo
, 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
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);
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);
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)),