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)
12internal sealed record ComInterfaceDispatchMarshallingInfo : MarshallingInfo
Marshallers\ManagedHResultExceptionGeneratorResolver.cs (1)
15internal sealed record ManagedHResultExceptionMarshallingInfo(Guid InterfaceId) : MarshallingInfo;
Marshallers\ObjectUnwrapperResolver.cs (1)
13internal sealed record ObjectUnwrapperInfo(TypeSyntax UnwrapperType) : MarshallingInfo;
Microsoft.Interop.JavaScript.JSImportGenerator (1)
JSMarshallingInfo.cs (1)
11internal record JSMarshallingInfo(MarshallingInfo Inner, JSTypeInfo TypeInfo) : MarshallingInfo
Microsoft.Interop.SourceGeneration (5)
MarshallingAttributeInfo.cs (5)
46public sealed record NoMarshallingInfo : MarshallingInfo 69) : MarshallingInfo; 77) : MarshallingInfo; 112CustomTypeMarshallers Marshallers) : MarshallingInfo; 169public 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)
377MarshallingInfo exceptionMarshallingInfo = CreateExceptionMarshallingInfo(virtualMethodIndexAttr, symbol, environment.Compilation, generatorDiagnostics, virtualMethodIndexData); 395private 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)
11internal 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( 78Func<ITypeSymbol, MarshallingInfo> getMarshallingInfoForElement = (ITypeSymbol elementType) => getMarshallingInfoCallback(elementType, useSiteAttributeProvider, indirectionDepth + 1); 133public static MarshallingInfo CreateNativeMarshallingInfoForNonSignatureElement( 170public static MarshallingInfo CreateMarshallingInfoByMarshallerTypeName(
ManualTypeMarshallingHelper.cs (9)
22MarshallingInfo? CollectionElementMarshallingInfo); 156Func<ITypeSymbol, MarshallingInfo> getMarshallingInfo, 166Func<ITypeSymbol, MarshallingInfo> getMarshallingInfo, 189Func<ITypeSymbol, MarshallingInfo> getMarshallingInfoForElement, 449Func<ITypeSymbol, MarshallingInfo> getMarshallingInfo) 492private static CustomTypeMarshallerData? GetStatelessMarshallerDataForType(ITypeSymbol marshallerType, MarshalMode mode, ITypeSymbol managedType, bool isLinearCollectionMarshaller, Compilation compilation, Func<ITypeSymbol, MarshallingInfo>? getMarshallingInfo) 568MarshallingInfo? collectionElementMarshallingInfo = null; 592Func<ITypeSymbol, MarshallingInfo>? getMarshallingInfo) 648MarshallingInfo? collectionElementMarshallingInfo = null;
MarshalAsParser.cs (1)
200MarshallingInfo? 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)
84MarshallingInfo marshallingInfo = paramInfo.MarshallingAttributeInfo;
Marshalling\CharMarshallingGeneratorResolver.cs (1)
36MarshallingInfo marshalInfo = info.MarshallingAttributeInfo;
MarshallingAttributeInfo.cs (2)
48public static readonly MarshallingInfo Instance = new NoMarshallingInfo(); 171internal 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)
144MarshallingInfo marshallingInfo = marshallingInfoParser.ParseMarshallingInfo(param.Type, paramAttributes);
StringMarshallingInfoProvider.cs (1)
30public MarshallingInfo GetMarshallingInfo(ITypeSymbol type, int indirectionDepth, UseSiteAttributeProvider useSiteAttributes, GetMarshallingInfoCallback marshallingInfoCallback)
TypePositionInfo.cs (3)
47public sealed record TypePositionInfo(ManagedTypeInfo ManagedType, MarshallingInfo MarshallingAttributeInfo) 88public static TypePositionInfo CreateForParameter(IParameterSymbol paramSymbol, MarshallingInfo marshallingInfo, Compilation compilation) 148MarshallingInfo MarshallingInfo,