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