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)
154
string managedSpanIdentifier = MarshallerHelpers.GetManagedSpanIdentifier(CollectionSource.
TypeInfo
, context);
155
string nativeSpanIdentifier = MarshallerHelpers.GetNativeSpanIdentifier(CollectionSource.
TypeInfo
, context);
163
if (ShouldCleanUpAllElements(CollectionSource.
TypeInfo
, CollectionSource.CodeContext))
174
string managedSpanIdentifier = MarshallerHelpers.GetManagedSpanIdentifier(CollectionSource.
TypeInfo
, context);
175
string nativeSpanIdentifier = MarshallerHelpers.GetNativeSpanIdentifier(CollectionSource.
TypeInfo
, context);
189
string numElementsIdentifier = MarshallerHelpers.GetNumElementsIdentifier(CollectionSource.
TypeInfo
, context);
190
string managedSpanIdentifier = MarshallerHelpers.GetManagedSpanIdentifier(CollectionSource.
TypeInfo
, context);
191
string nativeSpanIdentifier = MarshallerHelpers.GetNativeSpanIdentifier(CollectionSource.
TypeInfo
, context);
195
CollectionSource.GenerateNumElementsAssignmentFromManagedValuesSource(writer, CollectionSource.
TypeInfo
, context);
205
string nativeSpanIdentifier = MarshallerHelpers.GetNativeSpanIdentifier(CollectionSource.
TypeInfo
, context);
206
bool usesLastIndexMarshalled = UsesLastIndexMarshalled(CollectionSource.
TypeInfo
, CollectionSource.CodeContext);
208
? MarshallerHelpers.GetLastIndexMarshalledIdentifier(CollectionSource.
TypeInfo
, context)
224
string source = MarshallerHelpers.GetMarshalDirection(CollectionSource.
TypeInfo
, CollectionSource.CodeContext) == MarshalDirection.ManagedToUnmanaged
235
string numElementsIdentifier = MarshallerHelpers.GetNumElementsIdentifier(CollectionSource.
TypeInfo
, context);
236
string managedSpanIdentifier = MarshallerHelpers.GetManagedSpanIdentifier(CollectionSource.
TypeInfo
, context);
237
string nativeSpanIdentifier = MarshallerHelpers.GetNativeSpanIdentifier(CollectionSource.
TypeInfo
, context);
241
if (CollectionSource.CodeContext.Direction is MarshalDirection.UnmanagedToManaged && CollectionSource.
TypeInfo
.ByValueContentsMarshalKind is ByValueContentsMarshalKind.Out)
252
CollectionSource.GenerateNumElementsAssignmentFromManagedValuesDestination(writer, CollectionSource.
TypeInfo
, context);
267
string managedSpanIdentifier = MarshallerHelpers.GetManagedSpanIdentifier(CollectionSource.
TypeInfo
, context);
268
string nativeSpanIdentifier = MarshallerHelpers.GetNativeSpanIdentifier(CollectionSource.
TypeInfo
, context);
334
if (UsesLastIndexMarshalled(CollectionSource.
TypeInfo
, CollectionSource.CodeContext)
337
incrementors += $", ++{MarshallerHelpers.GetLastIndexMarshalledIdentifier(CollectionSource.
TypeInfo
, context)}";
361
if (UsesLastIndexMarshalled(CollectionSource.
TypeInfo
, CollectionSource.CodeContext))
363
writer.WriteLine($"int {MarshallerHelpers.GetLastIndexMarshalledIdentifier(CollectionSource.
TypeInfo
, context)} = 0;");