1 write to CleanupCalleeAllocated
Microsoft.Interop.SourceGeneration (1)
GeneratedStatements.cs (1)
43
CleanupCalleeAllocated
= GenerateStatementsForStubContext(marshallers, context with { CurrentStage = StubIdentifierContext.Stage.CleanupCalleeAllocated }),
6 references to CleanupCalleeAllocated
Microsoft.Interop.SourceGeneration (6)
ManagedToNativeStubGenerator.cs (5)
112
bool shouldInitializeVariables = !statements.GuaranteedUnmarshal.IsEmpty || !statements.CleanupCallerAllocated.IsEmpty || !statements.
CleanupCalleeAllocated
.IsEmpty;
126
if (!(statements.GuaranteedUnmarshal.IsEmpty && statements.
CleanupCalleeAllocated
.IsEmpty))
155
if (!(statements.GuaranteedUnmarshal.IsEmpty && statements.
CleanupCalleeAllocated
.IsEmpty))
166
if (!(statements.GuaranteedUnmarshal.IsEmpty && statements.
CleanupCalleeAllocated
.IsEmpty))
168
finallyStatements.Add(IfStatement(IdentifierName(InvokeSucceededIdentifier), Block(statements.GuaranteedUnmarshal.Concat(statements.
CleanupCalleeAllocated
))));
UnmanagedToManagedStubGenerator.cs (1)
56
Debug.Assert(statements.
CleanupCalleeAllocated
.IsEmpty);