2 implementations of CodeContext
Microsoft.Interop.SourceGeneration (2)
Marshalling\StatefulMarshallingStrategy.cs (1)
265
public StubCodeContext
CodeContext
=> codeContext;
Marshalling\StatelessMarshallingStrategy.cs (1)
480
public StubCodeContext
CodeContext
=> codeContext;
8 references to CodeContext
Microsoft.Interop.SourceGeneration (8)
Marshalling\ElementsMarshalling.cs (8)
276
if (ShouldCleanUpAllElements(CollectionSource.TypeInfo, CollectionSource.
CodeContext
))
370
if (!UsesLastIndexMarshalled(CollectionSource.TypeInfo, CollectionSource.
CodeContext
))
388
if (UsesLastIndexMarshalled(CollectionSource.TypeInfo, CollectionSource.
CodeContext
))
401
MarshallerHelpers.GetMarshalDirection(CollectionSource.TypeInfo, CollectionSource.
CodeContext
) == MarshalDirection.ManagedToUnmanaged
450
if (CollectionSource.
CodeContext
.Direction is MarshalDirection.UnmanagedToManaged && CollectionSource.TypeInfo.ByValueContentsMarshalKind is ByValueContentsMarshalKind.Out)
480
StubCodeContext elementCodeContext = StubCodeContext.CreateElementMarshallingContext(CollectionSource.
CodeContext
);
578
if (UsesLastIndexMarshalled(CollectionSource.TypeInfo, CollectionSource.
CodeContext
) && stagesToGeneratePerElement.Contains(StubIdentifierContext.Stage.Marshal))
613
=> UsesLastIndexMarshalled(CollectionSource.TypeInfo, CollectionSource.
CodeContext
)