10 types derived from MarshallingInfo
Microsoft.Interop.ComInterfaceGenerator (4)
Analyzers\ConvertComImportToGeneratedComInterfaceAnalyzer.cs (1)
208private sealed record TrackedMarshallingInfo(TrackedMarshallingInfoAnnotation TrackingAnnotation, MarshallingInfo InnerInfo) : MarshallingInfo;
Marshallers\ComInterfaceDispatchMarshallingResolver.cs (1)
6internal sealed record ComInterfaceDispatchMarshallingInfo : MarshallingInfo
Marshallers\ManagedHResultExceptionGeneratorResolver.cs (1)
9internal sealed record ManagedHResultExceptionMarshallingInfo(Guid InterfaceId) : MarshallingInfo;
Marshallers\ObjectUnwrapperResolver.cs (1)
8internal sealed record ObjectUnwrapperInfo(string UnwrapperType) : MarshallingInfo;
Microsoft.Interop.JavaScript.JSImportGenerator (1)
JSMarshallingInfo.cs (1)
10internal record JSMarshallingInfo(MarshallingInfo Inner, JSTypeInfo TypeInfo) : MarshallingInfo
Microsoft.Interop.SourceGeneration (5)
MarshallingAttributeInfo.cs (5)
45public sealed record NoMarshallingInfo : MarshallingInfo 68) : MarshallingInfo; 76) : MarshallingInfo; 111CustomTypeMarshallers Marshallers) : MarshallingInfo; 167public sealed record ComExceptionMarshalling : MarshallingInfo
64 references to MarshallingInfo
Microsoft.Interop.ComInterfaceGenerator (10)
Analyzers\ConvertComImportToGeneratedComInterfaceAnalyzer.cs (3)
208private sealed record TrackedMarshallingInfo(TrackedMarshallingInfoAnnotation TrackingAnnotation, MarshallingInfo InnerInfo) : MarshallingInfo; 220public MarshallingInfo GetMarshallingInfo(ITypeSymbol type, int indirectionDepth, UseSiteAttributeProvider useSiteAttributes, GetMarshallingInfoCallback marshallingInfoCallback) 227public MarshallingInfo GetMarshallingInfo(ITypeSymbol type, int indirectionDepth, UseSiteAttributeProvider useSiteAttributes, GetMarshallingInfoCallback marshallingInfoCallback) => new TrackedMarshallingInfo(TrackedMarshallingInfoAnnotation.ExplicitlyUnsupported, NoMarshallingInfo.Instance);
ComInterfaceGenerator.cs (1)
292MarshallingInfo exceptionMarshallingInfo;
IncrementalMethodStubGenerationContext.cs (4)
52MarshallingInfo ExceptionMarshallingInfo, 57MarshallingInfo ManagedThisMarshallingInfo, 92MarshallingInfo ExceptionMarshallingInfo, 97MarshallingInfo ManagedThisMarshallingInfo,
VtableIndexStubGenerator.cs (2)
394MarshallingInfo exceptionMarshallingInfo = CreateExceptionMarshallingInfo(virtualMethodIndexAttr, symbol, environment.Compilation, generatorDiagnostics, virtualMethodIndexData); 412private static MarshallingInfo CreateExceptionMarshallingInfo(AttributeData virtualMethodIndexAttr, ISymbol symbol, Compilation compilation, GeneratorDiagnosticsBag diagnostics, VirtualMethodIndexCompilationData virtualMethodIndexData)
Microsoft.Interop.JavaScript.JSImportGenerator (3)
FallbackJSMarshallingInfoProvider.cs (1)
17public MarshallingInfo GetMarshallingInfo(ITypeSymbol type, int indirectionDepth, UseSiteAttributeProvider useSiteAttributes, GetMarshallingInfoCallback marshallingInfoCallback)
JSMarshalAsAttributeInfoParser.cs (1)
22public MarshallingInfo ParseAttribute(AttributeData attributeData, ITypeSymbol type, int indirectionDepth, UseSiteAttributeProvider useSiteAttributes, GetMarshallingInfoCallback marshallingInfoCallback)
JSMarshallingInfo.cs (1)
10internal record JSMarshallingInfo(MarshallingInfo Inner, JSTypeInfo TypeInfo) : MarshallingInfo
Microsoft.Interop.LibraryImportGenerator (1)
ErrorHandlingInfoParser.cs (1)
69MarshallingInfo marshallingInfo = CustomMarshallingInfoHelper.CreateNativeMarshallingInfoForNonSignatureElement(
Microsoft.Interop.LibraryImportGenerator.Downlevel (1)
DownlevelStringMarshallingInfoProvider.cs (1)
28public MarshallingInfo GetMarshallingInfo(ITypeSymbol type, int indirectionDepth, UseSiteAttributeProvider useSiteAttributes, GetMarshallingInfoCallback marshallingInfoCallback)
Microsoft.Interop.SourceGeneration (49)
ArrayMarshallingInfoProvider.cs (4)
28public MarshallingInfo GetMarshallingInfo(ITypeSymbol type, int indirectionDepth, UseSiteAttributeProvider useSiteAttributes, GetMarshallingInfoCallback marshallingInfoCallback) 40public static MarshallingInfo CreateArrayMarshallingInfo( 45MarshallingInfo elementMarshallingInfo) 72Func<ITypeSymbol, MarshallingInfo> getMarshallingInfoForElement = (ITypeSymbol elementType) => elementMarshallingInfo;
BlittableTypeMarshallingInfoProvider.cs (1)
25public MarshallingInfo GetMarshallingInfo(ITypeSymbol type, int indirectionDepth, UseSiteAttributeProvider useSiteAttributes, GetMarshallingInfoCallback marshallingInfoCallback)
BooleanMarshallingInfoProvider.cs (1)
18public MarshallingInfo GetMarshallingInfo(ITypeSymbol type, int indirectionDepth, UseSiteAttributeProvider useSiteAttributes, GetMarshallingInfoCallback marshallingInfoCallback)
CharMarshallingInfoProvider.cs (1)
25public MarshallingInfo GetMarshallingInfo(ITypeSymbol type, int indirectionDepth, UseSiteAttributeProvider useSiteAttributes, GetMarshallingInfoCallback marshallingInfoCallback)
ComInterfaceMarshallingInfoProvider.cs (2)
27public MarshallingInfo? ParseAttribute(AttributeData attributeData, ITypeSymbol type, int indirectionDepth, UseSiteAttributeProvider useSiteAttributes, GetMarshallingInfoCallback marshallingInfoCallback) 32public static MarshallingInfo CreateComInterfaceMarshallingInfo(
CustomMarshallingInfoHelper.cs (4)
13internal static MarshallingInfo CreateNativeMarshallingInfo( 80Func<ITypeSymbol, MarshallingInfo> getMarshallingInfoForElement = (ITypeSymbol elementType) => getMarshallingInfoCallback(elementType, useSiteAttributeProvider, indirectionDepth + 1); 134public static MarshallingInfo CreateNativeMarshallingInfoForNonSignatureElement( 171public static MarshallingInfo CreateMarshallingInfoByMarshallerTypeName(
ManualTypeMarshallingHelper.cs (9)
23MarshallingInfo? CollectionElementMarshallingInfo) 181Func<ITypeSymbol, MarshallingInfo> getMarshallingInfo, 191Func<ITypeSymbol, MarshallingInfo> getMarshallingInfo, 214Func<ITypeSymbol, MarshallingInfo> getMarshallingInfoForElement, 484Func<ITypeSymbol, MarshallingInfo> getMarshallingInfo, 528private static CustomTypeMarshallerData? GetStatelessMarshallerDataForType(ITypeSymbol marshallerType, MarshalMode mode, ITypeSymbol managedType, bool isLinearCollectionMarshaller, Compilation compilation, Func<ITypeSymbol, MarshallingInfo>? getMarshallingInfo, ITypeParameterSymbol? unmanagedElementTypeParameter) 606MarshallingInfo? collectionElementMarshallingInfo = null; 635Func<ITypeSymbol, MarshallingInfo>? getMarshallingInfo, 694MarshallingInfo? collectionElementMarshallingInfo = null;
MarshalAsParser.cs (1)
168MarshallingInfo? IMarshallingInfoAttributeParser.ParseAttribute(AttributeData attributeData, ITypeSymbol type, int indirectionDepth, UseSiteAttributeProvider useSiteAttributes, GetMarshallingInfoCallback marshallingInfoCallback)
MarshalAsWithCustomMarshallersParser.cs (3)
37MarshallingInfo? IMarshallingInfoAttributeParser.ParseAttribute(AttributeData attributeData, ITypeSymbol type, int indirectionDepth, UseSiteAttributeProvider useSiteAttributes, GetMarshallingInfoCallback marshallingInfoCallback) 59MarshallingInfo elementMarshallingInfo = NoMarshallingInfo.Instance; 96private MarshallingInfo CreateStringMarshallingInfo(
Marshalling\AttributedMarshallingModelGeneratorResolver.cs (1)
68MarshallingInfo marshallingInfo = paramInfo.MarshallingAttributeInfo;
Marshalling\CharMarshallingGeneratorResolver.cs (1)
36MarshallingInfo marshalInfo = info.MarshallingAttributeInfo;
MarshallingAttributeInfo.cs (2)
47public static readonly MarshallingInfo Instance = new NoMarshallingInfo(); 169internal static MarshallingInfo CreateSpecificMarshallingInfo(ManagedTypeInfo unmanagedReturnType)
MarshallingInfoParser.cs (11)
28public delegate MarshallingInfo GetMarshallingInfoCallback(ITypeSymbol type, UseSiteAttributeProvider useSiteAttributes, int indirectionDepth); 73MarshallingInfo? ParseAttribute(AttributeData attributeData, ITypeSymbol type, int indirectionDepth, UseSiteAttributeProvider useSiteAttributes, GetMarshallingInfoCallback marshallingInfoCallback); 95MarshallingInfo GetMarshallingInfo(ITypeSymbol type, int indirectionDepth, UseSiteAttributeProvider useSiteAttributes, GetMarshallingInfoCallback marshallingInfoCallback); 213public MarshallingInfo ParseMarshallingInfo( 219MarshallingInfo info = GetMarshallingInfo( 228private MarshallingInfo GetMarshallingInfo( 235if (GetMarshallingInfoForAttribute(useSiteAttribute.AttributeData, type, indirectionDepth, useSiteAttributes, GetMarshallingInfo) is MarshallingInfo marshallingInfo) 243if (GetMarshallingInfoForAttributes(type.GetAttributes().AsSpan(), type, indirectionDepth, useSiteAttributes, GetMarshallingInfo) is MarshallingInfo info) 251private MarshallingInfo? GetMarshallingInfoForAttribute(AttributeData attribute, ITypeSymbol type, int indirectionDepth, UseSiteAttributeProvider useSiteAttributes, GetMarshallingInfoCallback marshallingInfoCallback) 256private MarshallingInfo? GetMarshallingInfoForAttributes(ReadOnlySpan<AttributeData> attrs, ITypeSymbol type, int indirectionDepth, UseSiteAttributeProvider useSiteAttributes, GetMarshallingInfoCallback marshallingInfoCallback) 271private MarshallingInfo? GetMarshallingInfoForType(ITypeSymbol type, int indirectionDepth, UseSiteAttributeProvider useSiteAttributes, GetMarshallingInfoCallback marshallingInfoCallback)
MarshalUsingAttributeParser.cs (1)
28MarshallingInfo? IMarshallingInfoAttributeParser.ParseAttribute(AttributeData attributeData, ITypeSymbol type, int indirectionDepth, UseSiteAttributeProvider useSiteAttributes, GetMarshallingInfoCallback marshallingInfoCallback)
NativeMarshallingAttributeParser.cs (1)
22public MarshallingInfo? ParseAttribute(AttributeData attributeData, ITypeSymbol type, int indirectionDepth, UseSiteAttributeProvider useSiteAttributes, GetMarshallingInfoCallback marshallingInfoCallback)
SafeHandleMarshallingInfoProvider.cs (1)
41public MarshallingInfo GetMarshallingInfo(ITypeSymbol type, int indirectionDepth, UseSiteAttributeProvider useSiteAttributes, GetMarshallingInfoCallback marshallingInfoCallback)
SignatureContext.cs (1)
125MarshallingInfo marshallingInfo = marshallingInfoParser.ParseMarshallingInfo(param.Type, paramAttributes);
StringMarshallingInfoProvider.cs (1)
30public MarshallingInfo GetMarshallingInfo(ITypeSymbol type, int indirectionDepth, UseSiteAttributeProvider useSiteAttributes, GetMarshallingInfoCallback marshallingInfoCallback)
TypePositionInfo.cs (3)
46public sealed record TypePositionInfo(ManagedTypeInfo ManagedType, MarshallingInfo MarshallingAttributeInfo) 87public static TypePositionInfo CreateForParameter(IParameterSymbol paramSymbol, MarshallingInfo marshallingInfo, Compilation compilation) 147MarshallingInfo MarshallingInfo,