Marshalling\AttributedMarshallingModelGeneratorResolver.cs (8)
43public ResolvedGenerator Create(TypePositionInfo info, StubCodeContext context)
65private GeneratorDiagnostic.NotSupported? ValidateCountInfo(TypePositionInfo info, CountInfo count, StubCodeContext context, out bool countInfoRequiresCast)
131private CustomTypeMarshallerData GetMarshallerDataForTypePositionInfo(CustomTypeMarshallers marshallers, TypePositionInfo info, StubCodeContext context)
144private ResolvedGenerator CreateCustomNativeTypeMarshaller(TypePositionInfo info, StubCodeContext context, NativeMarshallingAttributeInfo marshalInfo)
208StubCodeContext context,
221StubCodeContext.CreateElementMarshallingContext(context));
366private static FreeStrategy GetFreeStrategy(TypePositionInfo info, StubCodeContext context)
417private GeneratorDiagnostic.NotSupported? ValidateCustomNativeTypeMarshallingSupported(TypePositionInfo info, StubCodeContext context, NativeMarshallingAttributeInfo marshalInfo)
Marshalling\MarshallingGenerator.cs (7)
93StubCodeContext CodeContext { get; }
156internal sealed class BoundMarshallingGenerator(TypePositionInfo info, StubCodeContext context, IUnboundMarshallingGenerator unbound) : IBoundMarshallingGenerator
164public StubCodeContext CodeContext => context;
189public static IBoundMarshallingGenerator Bind(this IUnboundMarshallingGenerator unbound, TypePositionInfo info, StubCodeContext context) => new BoundMarshallingGenerator(info, context, unbound);
217ValueBoundaryBehavior GetValueBoundaryBehavior(TypePositionInfo info, StubCodeContext context);
232IEnumerable<StatementSyntax> Generate(TypePositionInfo info, StubCodeContext codeContext, StubIdentifierContext context);
241bool UsesNativeIdentifier(TypePositionInfo info, StubCodeContext context);
Marshalling\StatelessMarshallingStrategy.cs (9)
17internal sealed class StatelessValueMarshalling(TypePositionInfo info, StubCodeContext codeContext, TypeSyntax marshallerTypeSyntax, ManagedTypeInfo unmanagedType, MarshallerShape shape) : ICustomTypeMarshallingStrategy
25public StubCodeContext CodeContext => codeContext;
151public StubCodeContext CodeContext => innerMarshaller.CodeContext;
253public StubCodeContext CodeContext => innerMarshaller.CodeContext;
308internal sealed class StatelessLinearCollectionSpaceAllocator(TypePositionInfo info, StubCodeContext codeContext, TypeSyntax marshallerTypeSyntax, ManagedTypeInfo unmanagedType, MarshallerShape shape, CountInfo countInfo, bool countInfoRequiresCast) : ICustomTypeMarshallingStrategy
314public StubCodeContext CodeContext => codeContext;
476internal sealed class StatelessLinearCollectionSource(TypePositionInfo info, StubCodeContext codeContext, TypeSyntax marshallerTypeSyntax) : IElementsMarshallingCollectionSource
480public StubCodeContext CodeContext => codeContext;
561public StubCodeContext CodeContext => spaceMarshallingStrategy.CodeContext;