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)
277
if (ShouldCleanUpAllElements(CollectionSource.TypeInfo, CollectionSource.
CodeContext
))
368
if (!UsesLastIndexMarshalled(CollectionSource.TypeInfo, CollectionSource.
CodeContext
))
386
if (UsesLastIndexMarshalled(CollectionSource.TypeInfo, CollectionSource.
CodeContext
))
399
MarshallerHelpers.GetMarshalDirection(CollectionSource.TypeInfo, CollectionSource.
CodeContext
) == MarshalDirection.ManagedToUnmanaged
448
if (CollectionSource.
CodeContext
.Direction is MarshalDirection.UnmanagedToManaged && CollectionSource.TypeInfo.ByValueContentsMarshalKind is ByValueContentsMarshalKind.Out)
476
StubCodeContext elementCodeContext = StubCodeContext.CreateElementMarshallingContext(CollectionSource.
CodeContext
);
574
if (UsesLastIndexMarshalled(CollectionSource.TypeInfo, CollectionSource.
CodeContext
) && stagesToGeneratePerElement.Contains(StubIdentifierContext.Stage.Marshal))
609
=> UsesLastIndexMarshalled(CollectionSource.TypeInfo, CollectionSource.
CodeContext
)