2 implementations of TypeInfo
Microsoft.Interop.SourceGeneration (2)
Marshalling\StatefulMarshallingStrategy.cs (1)
140
public TypePositionInfo
TypeInfo
=> info;
Marshalling\StatelessMarshallingStrategy.cs (1)
271
public TypePositionInfo
TypeInfo
=> info;
24 references to TypeInfo
Microsoft.Interop.SourceGeneration (24)
Marshalling\ElementsMarshalling.cs (24)
155
string managedSpanIdentifier = MarshallerHelpers.GetManagedSpanIdentifier(CollectionSource.
TypeInfo
, context);
156
string nativeSpanIdentifier = MarshallerHelpers.GetNativeSpanIdentifier(CollectionSource.
TypeInfo
, context);
164
if (ShouldCleanUpAllElements(CollectionSource.
TypeInfo
, CollectionSource.CodeContext))
175
string managedSpanIdentifier = MarshallerHelpers.GetManagedSpanIdentifier(CollectionSource.
TypeInfo
, context);
176
string nativeSpanIdentifier = MarshallerHelpers.GetNativeSpanIdentifier(CollectionSource.
TypeInfo
, context);
190
string numElementsIdentifier = MarshallerHelpers.GetNumElementsIdentifier(CollectionSource.
TypeInfo
, context);
191
string managedSpanIdentifier = MarshallerHelpers.GetManagedSpanIdentifier(CollectionSource.
TypeInfo
, context);
192
string nativeSpanIdentifier = MarshallerHelpers.GetNativeSpanIdentifier(CollectionSource.
TypeInfo
, context);
196
CollectionSource.GenerateNumElementsAssignmentFromManagedValuesSource(writer, CollectionSource.
TypeInfo
, context);
206
string nativeSpanIdentifier = MarshallerHelpers.GetNativeSpanIdentifier(CollectionSource.
TypeInfo
, context);
207
bool usesLastIndexMarshalled = UsesLastIndexMarshalled(CollectionSource.
TypeInfo
, CollectionSource.CodeContext);
209
? MarshallerHelpers.GetLastIndexMarshalledIdentifier(CollectionSource.
TypeInfo
, context)
225
string source = MarshallerHelpers.GetMarshalDirection(CollectionSource.
TypeInfo
, CollectionSource.CodeContext) == MarshalDirection.ManagedToUnmanaged
236
string numElementsIdentifier = MarshallerHelpers.GetNumElementsIdentifier(CollectionSource.
TypeInfo
, context);
237
string managedSpanIdentifier = MarshallerHelpers.GetManagedSpanIdentifier(CollectionSource.
TypeInfo
, context);
238
string nativeSpanIdentifier = MarshallerHelpers.GetNativeSpanIdentifier(CollectionSource.
TypeInfo
, context);
242
if (CollectionSource.CodeContext.Direction is MarshalDirection.UnmanagedToManaged && CollectionSource.
TypeInfo
.ByValueContentsMarshalKind is ByValueContentsMarshalKind.Out)
253
CollectionSource.GenerateNumElementsAssignmentFromManagedValuesDestination(writer, CollectionSource.
TypeInfo
, context);
268
string managedSpanIdentifier = MarshallerHelpers.GetManagedSpanIdentifier(CollectionSource.
TypeInfo
, context);
269
string nativeSpanIdentifier = MarshallerHelpers.GetNativeSpanIdentifier(CollectionSource.
TypeInfo
, context);
335
if (UsesLastIndexMarshalled(CollectionSource.
TypeInfo
, CollectionSource.CodeContext)
338
incrementors += $", ++{MarshallerHelpers.GetLastIndexMarshalledIdentifier(CollectionSource.
TypeInfo
, context)}";
362
if (UsesLastIndexMarshalled(CollectionSource.
TypeInfo
, CollectionSource.CodeContext))
364
writer.WriteLine($"int {MarshallerHelpers.GetLastIndexMarshalledIdentifier(CollectionSource.
TypeInfo
, context)} = 0;");