1 interface inheriting from IBoundMarshallingGenerator
Microsoft.Interop.JavaScript.JSImportGenerator (1)
Marshaling\IJSMarshallingGenerator.cs (1)
9internal interface IJSMarshallingGenerator : IBoundMarshallingGenerator
53 references to IBoundMarshallingGenerator
Microsoft.Interop.JavaScript.JSImportGenerator (7)
JSExportCodeGenerator.cs (3)
56IBoundMarshallingGenerator spanArg = _marshallers.SignatureMarshallers.FirstOrDefault(m => m.TypeInfo.MarshallingAttributeInfo is JSMarshallingInfo(_, JSSpanTypeInfo)); 177foreach (IBoundMarshallingGenerator marshaller in _marshallers.NativeParameterMarshallers) 202foreach (IBoundMarshallingGenerator marshaller in _marshallers.NativeParameterMarshallers)
JSImportCodeGenerator.cs (1)
63IBoundMarshallingGenerator spanArg = _marshallers.SignatureMarshallers.FirstOrDefault(m => m.TypeInfo.MarshallingAttributeInfo is JSMarshallingInfo(_, JSSpanTypeInfo));
Marshaling\BaseJSGenerator.cs (2)
15protected IBoundMarshallingGenerator _inner; 18protected BaseJSGenerator(MarshalerType marshalerType, IBoundMarshallingGenerator inner)
Marshaling\PrimitiveJSGenerator.cs (1)
14public PrimitiveJSGenerator(MarshalerType marshalerType, IBoundMarshallingGenerator inner)
Microsoft.Interop.SourceGeneration (46)
BoundGenerators.cs (18)
23IBoundMarshallingGenerator defaultBoundGenerator = fallbackGenerator.Bind(new TypePositionInfo(SpecialTypeInfo.Void, NoMarshallingInfo.Instance), context); 26ImmutableArray<IBoundMarshallingGenerator>.Builder signatureMarshallers = ImmutableArray.CreateBuilder<IBoundMarshallingGenerator>(); 27ImmutableArray<IBoundMarshallingGenerator>.Builder nativeParamMarshallers = ImmutableArray.CreateBuilder<IBoundMarshallingGenerator>(); 28ImmutableArray<IBoundMarshallingGenerator>.Builder managedParamMarshallers = ImmutableArray.CreateBuilder<IBoundMarshallingGenerator>(); 30IBoundMarshallingGenerator managedReturnMarshaller = defaultBoundGenerator; 31IBoundMarshallingGenerator nativeReturnMarshaller = defaultBoundGenerator; 32IBoundMarshallingGenerator managedExceptionMarshaller = defaultBoundGenerator; 46IBoundMarshallingGenerator generator = CreateGenerator(argType, generatorResolver); 154IBoundMarshallingGenerator CreateGenerator(TypePositionInfo p, IMarshallingGeneratorResolver factory) 162public IBoundMarshallingGenerator ManagedReturnMarshaller { get; private init; } 164public IBoundMarshallingGenerator NativeReturnMarshaller { get; private init; } 166public IBoundMarshallingGenerator ManagedExceptionMarshaller { get; private init; } 168public ImmutableArray<IBoundMarshallingGenerator> SignatureMarshallers { get; private init; } 170public ImmutableArray<IBoundMarshallingGenerator> ManagedParameterMarshallers { get; private init; } 172public ImmutableArray<IBoundMarshallingGenerator> NativeParameterMarshallers { get; private init; }
GeneratedStatements.cs (4)
75foreach (IBoundMarshallingGenerator marshaller in marshallers.SignatureMarshallers) 99foreach (IBoundMarshallingGenerator marshaller in marshallers.NativeParameterMarshallers) 133foreach (IBoundMarshallingGenerator marshaller in marshallers.ManagedParameterMarshallers) 160IBoundMarshallingGenerator managedExceptionMarshaller = marshallers.ManagedExceptionMarshaller;
ManagedToNativeStubGenerator.cs (1)
81foreach (IBoundMarshallingGenerator generator in _marshallers.SignatureMarshallers)
Marshalling\AttributedMarshallingModelGeneratorResolver.cs (4)
196IBoundMarshallingGenerator marshallingGenerator = new CustomTypeMarshallingGenerator(marshallingStrategy, ByValueMarshalKindSupportDescriptor.Default, marshallerData.Shape.HasFlag(MarshallerShape.StatelessPinnableReference)); 227IBoundMarshallingGenerator elementMarshaller = resolvedElementMarshaller.Generator; 342IBoundMarshallingGenerator marshallingGenerator = new CustomTypeMarshallingGenerator(marshallingStrategy, byValueMarshalKindSupport, isPinned); 392private static ElementsMarshalling CreateElementsMarshalling(CustomTypeMarshallerData marshallerData, IBoundMarshallingGenerator elementMarshaller, TypeSyntax unmanagedElementType, IElementsMarshallingCollectionSource collectionSource)
Marshalling\CustomTypeMarshallingGenerator.cs (1)
14: IBoundMarshallingGenerator
Marshalling\MarshallingGenerator.cs (1)
156internal sealed class BoundMarshallingGenerator(TypePositionInfo info, StubCodeContext context, IUnboundMarshallingGenerator unbound) : IBoundMarshallingGenerator
Marshalling\MarshallingGeneratorExtensions.cs (8)
20public static TypeSyntax AsReturnType(this IBoundMarshallingGenerator generator) 36public static AttributeListSyntax? GenerateAttributesForReturnType(this IBoundMarshallingGenerator generator) 59public static ParameterSyntax AsParameter(this IBoundMarshallingGenerator generator, StubIdentifierContext context) 139public static ArgumentSyntax AsArgument(this IBoundMarshallingGenerator generator, StubIdentifierContext context) 154public static ArgumentSyntax AsManagedArgument(this IBoundMarshallingGenerator generator, StubIdentifierContext context) 165public static ExpressionSyntax GenerateNativeByRefInitialization(this IBoundMarshallingGenerator generator, StubIdentifierContext context) 172public static bool IsForwarder(this IBoundMarshallingGenerator generator) => generator is BoundMarshallingGenerator { IsForwarder: true }; 174public static bool IsBlittable(this IBoundMarshallingGenerator generator) => generator is BoundMarshallingGenerator { IsBlittable: true };
Marshalling\ResolvedGenerator.cs (3)
10public record struct ResolvedGenerator([property: MemberNotNullWhen(true, nameof(ResolvedGenerator.IsResolved), nameof(ResolvedGenerator.IsResolvedWithoutErrors))] IBoundMarshallingGenerator? Generator, ImmutableArray<GeneratorDiagnostic> Diagnostics) 20public static ResolvedGenerator Resolved(IBoundMarshallingGenerator generator) 30public static ResolvedGenerator ResolvedWithDiagnostics(IBoundMarshallingGenerator generator, ImmutableArray<GeneratorDiagnostic> diagnostics)
Marshalling\StaticPinnableManagedValueMarshaller.cs (2)
13public sealed class StaticPinnableManagedValueMarshaller(IBoundMarshallingGenerator innerMarshallingGenerator, TypeSyntax getPinnableReferenceType) : IBoundMarshallingGenerator
VariableDeclarations.cs (4)
21foreach (IBoundMarshallingGenerator marshaller in marshallers.NativeParameterMarshallers) 55static void AppendVariableDeclarations(ImmutableArray<LocalDeclarationStatementSyntax>.Builder statementsToUpdate, IBoundMarshallingGenerator marshaller, StubIdentifierContext context, bool initializeToDefault) 84foreach (IBoundMarshallingGenerator marshaller in marshallers.NativeParameterMarshallers) 112static void AppendVariableDeclarations(ImmutableArray<LocalDeclarationStatementSyntax>.Builder statementsToUpdate, IBoundMarshallingGenerator marshaller, StubIdentifierContext context, bool initializeToDefault)