15 references to CleanupCallerAllocated
Microsoft.Interop.SourceGeneration (15)
GeneratedStatements.cs (2)
44CleanupCallerAllocated = GenerateStage(StubIdentifierContext.Stage.CleanupCallerAllocated), 165StubIdentifierContext.Stage.CleanupCallerAllocated => "Perform cleanup of caller allocated resources.",
Marshalling\CustomTypeMarshallingGenerator.cs (1)
77case StubIdentifierContext.Stage.CleanupCallerAllocated:
Marshalling\ElementsMarshalling.cs (1)
247stagesToGenerate = [StubIdentifierContext.Stage.Marshal, StubIdentifierContext.Stage.PinnedMarshal, StubIdentifierContext.Stage.CleanupCallerAllocated, StubIdentifierContext.Stage.CleanupCalleeAllocated];
Marshalling\MarshallerHelpers.cs (3)
318return StubIdentifierContext.Stage.CleanupCallerAllocated; 323MarshalDirection.ManagedToUnmanaged => StubIdentifierContext.Stage.CleanupCallerAllocated, 324MarshalDirection.Bidirectional => StubIdentifierContext.Stage.CleanupCallerAllocated,
Marshalling\StatefulMarshallingStrategy.cs (2)
17if (MarshallerHelpers.GetCleanupStage(info, stubContext) is StubIdentifierContext.Stage.CleanupCallerAllocated 289if (MarshallerHelpers.GetCleanupStage(TypeInfo, CodeContext) is StubIdentifierContext.Stage.CleanupCallerAllocated)
Marshalling\StatelessMarshallingStrategy.cs (4)
139if (MarshallerHelpers.GetCleanupStage(TypeInfo, CodeContext) is not StubIdentifierContext.Stage.CleanupCallerAllocated) 181if (MarshallerHelpers.GetCleanupStage(TypeInfo, CodeContext) is StubIdentifierContext.Stage.CleanupCallerAllocated 346if (MarshallerHelpers.GetCleanupStage(TypeInfo, CodeContext) is StubIdentifierContext.Stage.CleanupCallerAllocated) 371if (MarshallerHelpers.GetCleanupStage(TypeInfo, CodeContext) is StubIdentifierContext.Stage.CleanupCallerAllocated)
Marshalling\UnmanagedToManagedOwnershipTrackingStrategy.cs (2)
55if (MarshallerHelpers.GetCleanupStage(TypeInfo, CodeContext) is not StubIdentifierContext.Stage.CleanupCallerAllocated) 112inner.Generate(writer, context.CurrentStage == StubIdentifierContext.Stage.CleanupCallerAllocated