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