4 instantiations of UseSiteAttributeProvider
Microsoft.Interop.SourceGeneration (4)
MarshallingInfoParser.cs (1)
217
UseSiteAttributeProvider useSiteAttributeProvider = new
UseSiteAttributeProvider
(_useSiteMarshallingAttributeParsers, useSiteAttributes, _elementInfoProvider, _diagnostics, GetMarshallingInfo);
MethodSignatureElementInfoProvider.cs (3)
35
marshallingInfoCallback(_method.ReturnType, new
UseSiteAttributeProvider
(_useSiteAttributeParsers, _method.GetReturnTypeAttributes(), rootProvider, _generatorDiagnostics, marshallingInfoCallback), 0)) with
49
marshallingInfoCallback(param.Type, new
UseSiteAttributeProvider
(_useSiteAttributeParsers, param.GetAttributes(), rootProvider, _generatorDiagnostics, marshallingInfoCallback), 0), _compilation) with
71
marshallingInfoCallback(param.Type, new
UseSiteAttributeProvider
(_useSiteAttributeParsers, param.GetAttributes(), rootProvider, _generatorDiagnostics, marshallingInfoCallback), 0), _compilation) with
26 references to UseSiteAttributeProvider
Microsoft.Interop.ComInterfaceGenerator (2)
Analyzers\ConvertComImportToGeneratedComInterfaceAnalyzer.cs (2)
220
public MarshallingInfo GetMarshallingInfo(ITypeSymbol type, int indirectionDepth,
UseSiteAttributeProvider
useSiteAttributes, GetMarshallingInfoCallback marshallingInfoCallback)
227
public MarshallingInfo GetMarshallingInfo(ITypeSymbol type, int indirectionDepth,
UseSiteAttributeProvider
useSiteAttributes, GetMarshallingInfoCallback marshallingInfoCallback) => new TrackedMarshallingInfo(TrackedMarshallingInfoAnnotation.ExplicitlyUnsupported, NoMarshallingInfo.Instance);
Microsoft.Interop.JavaScript.JSImportGenerator (2)
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)
Microsoft.Interop.LibraryImportGenerator.Downlevel (1)
DownlevelStringMarshallingInfoProvider.cs (1)
28
public MarshallingInfo GetMarshallingInfo(ITypeSymbol type, int indirectionDepth,
UseSiteAttributeProvider
useSiteAttributes, GetMarshallingInfoCallback marshallingInfoCallback)
Microsoft.Interop.SourceGeneration (21)
ArrayMarshallingInfoProvider.cs (1)
28
public MarshallingInfo GetMarshallingInfo(ITypeSymbol type, int indirectionDepth,
UseSiteAttributeProvider
useSiteAttributes, GetMarshallingInfoCallback marshallingInfoCallback)
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 (1)
26
public MarshallingInfo? ParseAttribute(AttributeData attributeData, ITypeSymbol type, int indirectionDepth,
UseSiteAttributeProvider
useSiteAttributes, GetMarshallingInfoCallback marshallingInfoCallback)
CustomMarshallingInfoHelper.cs (1)
17
UseSiteAttributeProvider
useSiteAttributeProvider,
MarshalAsParser.cs (1)
200
MarshallingInfo? IMarshallingInfoAttributeParser.ParseAttribute(AttributeData attributeData, ITypeSymbol type, int indirectionDepth,
UseSiteAttributeProvider
useSiteAttributes, GetMarshallingInfoCallback marshallingInfoCallback)
MarshalAsWithCustomMarshallersParser.cs (1)
37
MarshallingInfo? IMarshallingInfoAttributeParser.ParseAttribute(AttributeData attributeData, ITypeSymbol type, int indirectionDepth,
UseSiteAttributeProvider
useSiteAttributes, GetMarshallingInfoCallback marshallingInfoCallback)
MarshallingInfoParser.cs (8)
28
public delegate MarshallingInfo GetMarshallingInfoCallback(ITypeSymbol type,
UseSiteAttributeProvider
useSiteAttributes, int indirectionDepth);
73
MarshallingInfo? ParseAttribute(AttributeData attributeData, ITypeSymbol type, int indirectionDepth,
UseSiteAttributeProvider
useSiteAttributes, GetMarshallingInfoCallback marshallingInfoCallback);
95
MarshallingInfo GetMarshallingInfo(ITypeSymbol type, int indirectionDepth,
UseSiteAttributeProvider
useSiteAttributes, GetMarshallingInfoCallback marshallingInfoCallback);
217
UseSiteAttributeProvider
useSiteAttributeProvider = new UseSiteAttributeProvider(_useSiteMarshallingAttributeParsers, useSiteAttributes, _elementInfoProvider, _diagnostics, GetMarshallingInfo);
230
UseSiteAttributeProvider
useSiteAttributes,
251
private MarshallingInfo? GetMarshallingInfoForAttribute(AttributeData attribute, ITypeSymbol type, int indirectionDepth,
UseSiteAttributeProvider
useSiteAttributes, GetMarshallingInfoCallback marshallingInfoCallback)
256
private MarshallingInfo? GetMarshallingInfoForAttributes(ReadOnlySpan<AttributeData> attrs, ITypeSymbol type, int indirectionDepth,
UseSiteAttributeProvider
useSiteAttributes, GetMarshallingInfoCallback marshallingInfoCallback)
271
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)
StringMarshallingInfoProvider.cs (1)
30
public MarshallingInfo GetMarshallingInfo(ITypeSymbol type, int indirectionDepth,
UseSiteAttributeProvider
useSiteAttributes, GetMarshallingInfoCallback marshallingInfoCallback)
UseSiteAttributeProvider.cs (1)
22
/// Construct a new <see cref="
UseSiteAttributeProvider
"/> for a given usage site.