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