15 references to CleanupCallerAllocated
Microsoft.Interop.SourceGeneration (15)
GeneratedStatements.cs (2)
48
CleanupCallerAllocated = GenerateStatementsForStubContext(marshallers, context with { CurrentStage = StubIdentifierContext.Stage.
CleanupCallerAllocated
}),
258
StubIdentifierContext.Stage.
CleanupCallerAllocated
=> "Perform cleanup of caller allocated resources.",
Marshalling\CustomTypeMarshallingGenerator.cs (1)
80
case StubIdentifierContext.Stage.
CleanupCallerAllocated
:
Marshalling\ElementsMarshalling.cs (1)
456
stagesToGenerate = [StubIdentifierContext.Stage.Marshal, StubIdentifierContext.Stage.PinnedMarshal, StubIdentifierContext.Stage.
CleanupCallerAllocated
, StubIdentifierContext.Stage.CleanupCalleeAllocated];
Marshalling\MarshallerHelpers.cs (3)
339
return StubIdentifierContext.Stage.
CleanupCallerAllocated
;
344
MarshalDirection.ManagedToUnmanaged => StubIdentifierContext.Stage.
CleanupCallerAllocated
,
345
MarshalDirection.Bidirectional => StubIdentifierContext.Stage.
CleanupCallerAllocated
,
Marshalling\StatefulMarshallingStrategy.cs (2)
27
if (MarshallerHelpers.GetCleanupStage(info, stubContext) is not StubIdentifierContext.Stage.
CleanupCallerAllocated
)
481
if (MarshallerHelpers.GetCleanupStage(TypeInfo, CodeContext) is not StubIdentifierContext.Stage.
CleanupCallerAllocated
)
Marshalling\StatelessMarshallingStrategy.cs (4)
259
if (MarshallerHelpers.GetCleanupStage(TypeInfo, CodeContext) is not StubIdentifierContext.Stage.
CleanupCallerAllocated
)
319
if (MarshallerHelpers.GetCleanupStage(TypeInfo, CodeContext) is not StubIdentifierContext.Stage.
CleanupCallerAllocated
)
607
if (MarshallerHelpers.GetCleanupStage(TypeInfo, CodeContext) is StubIdentifierContext.Stage.
CleanupCallerAllocated
)
640
if (MarshallerHelpers.GetCleanupStage(TypeInfo, CodeContext) is StubIdentifierContext.Stage.
CleanupCallerAllocated
)
Marshalling\UnmanagedToManagedOwnershipTrackingStrategy.cs (2)
94
if (MarshallerHelpers.GetCleanupStage(TypeInfo, CodeContext) is not StubIdentifierContext.Stage.
CleanupCallerAllocated
)
156
if (context.CurrentStage == StubIdentifierContext.Stage.
CleanupCallerAllocated
)