Marshalling\AttributedMarshallingModelGeneratorResolver.cs (8)
39public ResolvedGenerator Create(TypePositionInfo info, StubCodeContext context)
49private GeneratorDiagnostic.NotSupported? ValidateCountInfo(TypePositionInfo info, CountInfo count, StubCodeContext context, out bool countInfoRequiresCast)
115private CustomTypeMarshallerData GetMarshallerDataForTypePositionInfo(CustomTypeMarshallers marshallers, TypePositionInfo info, StubCodeContext context)
128private ResolvedGenerator CreateCustomNativeTypeMarshaller(TypePositionInfo info, StubCodeContext context, NativeMarshallingAttributeInfo marshalInfo)
192StubCodeContext context,
205StubCodeContext.CreateElementMarshallingContext(context));
333private static FreeStrategy GetFreeStrategy(TypePositionInfo info, StubCodeContext context)
376private GeneratorDiagnostic.NotSupported? ValidateCustomNativeTypeMarshallingSupported(TypePositionInfo info, StubCodeContext context, NativeMarshallingAttributeInfo marshalInfo)
Marshalling\MarshallingGenerator.cs (7)
87StubCodeContext CodeContext { get; }
150internal sealed class BoundMarshallingGenerator(TypePositionInfo info, StubCodeContext context, IUnboundMarshallingGenerator unbound) : IBoundMarshallingGenerator
158public StubCodeContext CodeContext => context;
183public static IBoundMarshallingGenerator Bind(this IUnboundMarshallingGenerator unbound, TypePositionInfo info, StubCodeContext context) => new BoundMarshallingGenerator(info, context, unbound);
211ValueBoundaryBehavior GetValueBoundaryBehavior(TypePositionInfo info, StubCodeContext context);
226void Generate(IndentedTextWriter writer, TypePositionInfo info, StubCodeContext codeContext, StubIdentifierContext context);
235bool UsesNativeIdentifier(TypePositionInfo info, StubCodeContext context);
Marshalling\StatelessMarshallingStrategy.cs (9)
9internal sealed class StatelessValueMarshalling(TypePositionInfo info, StubCodeContext codeContext, string marshallerType, ManagedTypeInfo unmanagedType, MarshallerShape shape) : ICustomTypeMarshallingStrategy
14public StubCodeContext CodeContext => codeContext;
91public StubCodeContext CodeContext => innerMarshaller.CodeContext;
134public StubCodeContext CodeContext => innerMarshaller.CodeContext;
172internal sealed class StatelessLinearCollectionSpaceAllocator(TypePositionInfo info, StubCodeContext codeContext, string marshallerType, ManagedTypeInfo unmanagedType, MarshallerShape shape, CountInfo countInfo, bool countInfoRequiresCast) : ICustomTypeMarshallingStrategy
176public StubCodeContext CodeContext => codeContext;
269internal sealed class StatelessLinearCollectionSource(TypePositionInfo info, StubCodeContext codeContext, string marshallerType) : IElementsMarshallingCollectionSource
272public StubCodeContext CodeContext => codeContext;
315public StubCodeContext CodeContext => spaceMarshallingStrategy.CodeContext;