10 types derived from MarshallingInfo
Microsoft.Interop.ComInterfaceGenerator (4)
Analyzers\ConvertComImportToGeneratedComInterfaceAnalyzer.cs (1)
204
private sealed record TrackedMarshallingInfo(TrackedMarshallingInfoAnnotation TrackingAnnotation, MarshallingInfo InnerInfo) :
MarshallingInfo
;
Marshallers\ComInterfaceDispatchMarshallingResolver.cs (1)
12
internal sealed record ComInterfaceDispatchMarshallingInfo :
MarshallingInfo
Marshallers\ManagedHResultExceptionGeneratorResolver.cs (1)
14
internal sealed record ManagedHResultExceptionMarshallingInfo :
MarshallingInfo
;
Marshallers\ObjectUnwrapperResolver.cs (1)
13
internal sealed record ObjectUnwrapperInfo(TypeSyntax UnwrapperType) :
MarshallingInfo
;
Microsoft.Interop.JavaScript.JSImportGenerator (1)
JSMarshallingInfo.cs (1)
11
internal record JSMarshallingInfo(MarshallingInfo Inner, JSTypeInfo TypeInfo) :
MarshallingInfo
Microsoft.Interop.SourceGeneration (5)
MarshallingAttributeInfo.cs (5)
46
public sealed record NoMarshallingInfo :
MarshallingInfo
69
) :
MarshallingInfo
;
77
) :
MarshallingInfo
;
112
CustomTypeMarshallers Marshallers) :
MarshallingInfo
;
161
public sealed record ComExceptionMarshalling :
MarshallingInfo
61 references to MarshallingInfo
Microsoft.Interop.ComInterfaceGenerator (7)
Analyzers\ConvertComImportToGeneratedComInterfaceAnalyzer.cs (3)
204
private sealed record TrackedMarshallingInfo(TrackedMarshallingInfoAnnotation TrackingAnnotation,
MarshallingInfo
InnerInfo) : MarshallingInfo;
216
public
MarshallingInfo
GetMarshallingInfo(ITypeSymbol type, int indirectionDepth, UseSiteAttributeProvider useSiteAttributes, GetMarshallingInfoCallback marshallingInfoCallback)
223
public
MarshallingInfo
GetMarshallingInfo(ITypeSymbol type, int indirectionDepth, UseSiteAttributeProvider useSiteAttributes, GetMarshallingInfoCallback marshallingInfoCallback) => new TrackedMarshallingInfo(TrackedMarshallingInfoAnnotation.ExplicitlyUnsupported, NoMarshallingInfo.Instance);
IncrementalMethodStubGenerationContext.cs (2)
19
MarshallingInfo
ExceptionMarshallingInfo,
24
MarshallingInfo
ManagedThisMarshallingInfo) : GeneratedMethodContextBase(DeclaringType, Diagnostics);
VtableIndexStubGenerator.cs (2)
307
MarshallingInfo
exceptionMarshallingInfo = CreateExceptionMarshallingInfo(virtualMethodIndexAttr, symbol, environment.Compilation, generatorDiagnostics, virtualMethodIndexData);
324
private static
MarshallingInfo
CreateExceptionMarshallingInfo(AttributeData virtualMethodIndexAttr, ISymbol symbol, Compilation compilation, GeneratorDiagnosticsBag diagnostics, VirtualMethodIndexCompilationData virtualMethodIndexData)
Microsoft.Interop.JavaScript.JSImportGenerator (3)
FallbackJSMarshallingInfoProvider.cs (1)
17
public
MarshallingInfo
GetMarshallingInfo(ITypeSymbol type, int indirectionDepth, UseSiteAttributeProvider useSiteAttributes, GetMarshallingInfoCallback marshallingInfoCallback)
JSMarshalAsAttributeInfoParser.cs (1)
22
public
MarshallingInfo
ParseAttribute(AttributeData attributeData, ITypeSymbol type, int indirectionDepth, UseSiteAttributeProvider useSiteAttributes, GetMarshallingInfoCallback marshallingInfoCallback)
JSMarshallingInfo.cs (1)
11
internal record JSMarshallingInfo(
MarshallingInfo
Inner, JSTypeInfo TypeInfo) : MarshallingInfo
Microsoft.Interop.LibraryImportGenerator.Downlevel (1)
DownlevelStringMarshallingInfoProvider.cs (1)
28
public
MarshallingInfo
GetMarshallingInfo(ITypeSymbol type, int indirectionDepth, UseSiteAttributeProvider useSiteAttributes, GetMarshallingInfoCallback marshallingInfoCallback)
Microsoft.Interop.SourceGeneration (50)
ArrayMarshallingInfoProvider.cs (4)
28
public
MarshallingInfo
GetMarshallingInfo(ITypeSymbol type, int indirectionDepth, UseSiteAttributeProvider useSiteAttributes, GetMarshallingInfoCallback marshallingInfoCallback)
40
public static
MarshallingInfo
CreateArrayMarshallingInfo(
45
MarshallingInfo
elementMarshallingInfo)
72
Func<ITypeSymbol,
MarshallingInfo
> getMarshallingInfoForElement = (ITypeSymbol elementType) => elementMarshallingInfo;
BlittableTypeMarshallingInfoProvider.cs (1)
25
public
MarshallingInfo
GetMarshallingInfo(ITypeSymbol type, int indirectionDepth, UseSiteAttributeProvider useSiteAttributes, GetMarshallingInfoCallback marshallingInfoCallback)
BooleanMarshallingInfoProvider.cs (1)
18
public
MarshallingInfo
GetMarshallingInfo(ITypeSymbol type, int indirectionDepth, UseSiteAttributeProvider useSiteAttributes, GetMarshallingInfoCallback marshallingInfoCallback)
CharMarshallingInfoProvider.cs (1)
25
public
MarshallingInfo
GetMarshallingInfo(ITypeSymbol type, int indirectionDepth, UseSiteAttributeProvider useSiteAttributes, GetMarshallingInfoCallback marshallingInfoCallback)
ComInterfaceMarshallingInfoProvider.cs (2)
26
public
MarshallingInfo
? ParseAttribute(AttributeData attributeData, ITypeSymbol type, int indirectionDepth, UseSiteAttributeProvider useSiteAttributes, GetMarshallingInfoCallback marshallingInfoCallback)
31
public static
MarshallingInfo
CreateComInterfaceMarshallingInfo(
CustomMarshallingInfoHelper.cs (5)
13
internal static
MarshallingInfo
CreateNativeMarshallingInfo(
78
Func<ITypeSymbol,
MarshallingInfo
> getMarshallingInfoForElement = (ITypeSymbol elementType) => getMarshallingInfoCallback(elementType, useSiteAttributeProvider, indirectionDepth + 1);
113
/// Creates a <see cref="
MarshallingInfo
"/> for the given managed type and marshaller type in the given compilation.
133
public static
MarshallingInfo
CreateNativeMarshallingInfoForNonSignatureElement(
170
public static
MarshallingInfo
CreateMarshallingInfoByMarshallerTypeName(
ManualTypeMarshallingHelper.cs (9)
22
MarshallingInfo
? CollectionElementMarshallingInfo);
117
Func<ITypeSymbol,
MarshallingInfo
> getMarshallingInfo,
127
Func<ITypeSymbol,
MarshallingInfo
> getMarshallingInfo,
150
Func<ITypeSymbol,
MarshallingInfo
> getMarshallingInfoForElement,
410
Func<ITypeSymbol,
MarshallingInfo
> getMarshallingInfo)
453
private static CustomTypeMarshallerData? GetStatelessMarshallerDataForType(ITypeSymbol marshallerType, MarshalMode mode, ITypeSymbol managedType, bool isLinearCollectionMarshaller, Compilation compilation, Func<ITypeSymbol,
MarshallingInfo
>? getMarshallingInfo)
529
MarshallingInfo
? collectionElementMarshallingInfo = null;
553
Func<ITypeSymbol,
MarshallingInfo
>? getMarshallingInfo)
609
MarshallingInfo
? collectionElementMarshallingInfo = null;
MarshalAsParser.cs (1)
152
MarshallingInfo
? IMarshallingInfoAttributeParser.ParseAttribute(AttributeData attributeData, ITypeSymbol type, int indirectionDepth, UseSiteAttributeProvider useSiteAttributes, GetMarshallingInfoCallback marshallingInfoCallback)
MarshalAsWithCustomMarshallersParser.cs (3)
37
MarshallingInfo
? IMarshallingInfoAttributeParser.ParseAttribute(AttributeData attributeData, ITypeSymbol type, int indirectionDepth, UseSiteAttributeProvider useSiteAttributes, GetMarshallingInfoCallback marshallingInfoCallback)
59
MarshallingInfo
elementMarshallingInfo = NoMarshallingInfo.Instance;
96
private
MarshallingInfo
CreateStringMarshallingInfo(
Marshalling\AttributedMarshallingModelGeneratorResolver.cs (1)
84
MarshallingInfo
marshallingInfo = paramInfo.MarshallingAttributeInfo;
Marshalling\CharMarshallingGeneratorResolver.cs (1)
36
MarshallingInfo
marshalInfo = info.MarshallingAttributeInfo;
MarshallingAttributeInfo.cs (4)
17
/// derived from <see cref="
MarshallingInfo
"/>. See remarks on <see cref="
MarshallingInfo
"/>.
48
public static readonly
MarshallingInfo
Instance = new NoMarshallingInfo();
163
internal static
MarshallingInfo
CreateSpecificMarshallingInfo(ManagedTypeInfo unmanagedReturnType)
MarshallingInfoParser.cs (10)
27
public delegate
MarshallingInfo
GetMarshallingInfoCallback(ITypeSymbol type, UseSiteAttributeProvider useSiteAttributes, int indirectionDepth);
72
MarshallingInfo
? ParseAttribute(AttributeData attributeData, ITypeSymbol type, int indirectionDepth, UseSiteAttributeProvider useSiteAttributes, GetMarshallingInfoCallback marshallingInfoCallback);
94
MarshallingInfo
GetMarshallingInfo(ITypeSymbol type, int indirectionDepth, UseSiteAttributeProvider useSiteAttributes, GetMarshallingInfoCallback marshallingInfoCallback);
212
public
MarshallingInfo
ParseMarshallingInfo(
218
MarshallingInfo
info = GetMarshallingInfo(
227
private
MarshallingInfo
GetMarshallingInfo(
234
if (GetMarshallingInfoForAttribute(useSiteAttribute.AttributeData, type, indirectionDepth, useSiteAttributes, GetMarshallingInfo) is
MarshallingInfo
marshallingInfo)
244
if (GetMarshallingInfoForAttribute(typeAttribute, type, indirectionDepth, useSiteAttributes, GetMarshallingInfo) is
MarshallingInfo
marshallingInfo)
255
private
MarshallingInfo
? GetMarshallingInfoForAttribute(AttributeData attribute, ITypeSymbol type, int indirectionDepth, UseSiteAttributeProvider useSiteAttributes, GetMarshallingInfoCallback marshallingInfoCallback)
269
private
MarshallingInfo
? GetMarshallingInfoForType(ITypeSymbol type, int indirectionDepth, UseSiteAttributeProvider useSiteAttributes, GetMarshallingInfoCallback marshallingInfoCallback)
MarshalUsingAttributeParser.cs (1)
28
MarshallingInfo
? IMarshallingInfoAttributeParser.ParseAttribute(AttributeData attributeData, ITypeSymbol type, int indirectionDepth, UseSiteAttributeProvider useSiteAttributes, GetMarshallingInfoCallback marshallingInfoCallback)
NativeMarshallingAttributeParser.cs (1)
22
public
MarshallingInfo
? ParseAttribute(AttributeData attributeData, ITypeSymbol type, int indirectionDepth, UseSiteAttributeProvider useSiteAttributes, GetMarshallingInfoCallback marshallingInfoCallback)
SafeHandleMarshallingInfoProvider.cs (1)
41
public
MarshallingInfo
GetMarshallingInfo(ITypeSymbol type, int indirectionDepth, UseSiteAttributeProvider useSiteAttributes, GetMarshallingInfoCallback marshallingInfoCallback)
SignatureContext.cs (1)
112
MarshallingInfo
marshallingInfo = marshallingInfoParser.ParseMarshallingInfo(param.Type, param.GetAttributes());
StringMarshallingInfoProvider.cs (1)
30
public
MarshallingInfo
GetMarshallingInfo(ITypeSymbol type, int indirectionDepth, UseSiteAttributeProvider useSiteAttributes, GetMarshallingInfoCallback marshallingInfoCallback)
TypePositionInfo.cs (2)
47
public sealed record TypePositionInfo(ManagedTypeInfo ManagedType,
MarshallingInfo
MarshallingAttributeInfo)
88
public static TypePositionInfo CreateForParameter(IParameterSymbol paramSymbol,
MarshallingInfo
marshallingInfo, Compilation compilation)