16 references to GeneratedComInterfaceAttribute
Microsoft.Interop.ComInterfaceGenerator (15)
Analyzers\AddGeneratedComClassAnalyzer.cs (1)
26
var generatedComInterfaceAttributeType = context.Compilation.GetBestTypeByMetadataName(TypeNames.
GeneratedComInterfaceAttribute
);
Analyzers\ComClassGeneratorDiagnosticsAnalyzer.cs (1)
38
? context.Compilation.GetBestTypeByMetadataName(TypeNames.
GeneratedComInterfaceAttribute
)
Analyzers\ComHostingDoesNotSupportGeneratedComInterfaceAnalyzer.cs (1)
33
INamedTypeSymbol? generatedComInterfaceAttribute = context.Compilation.GetBestTypeByMetadataName(TypeNames.
GeneratedComInterfaceAttribute
);
Analyzers\ComInterfaceGeneratorDiagnosticsAnalyzer.cs (3)
71
INamedTypeSymbol? generatedComInterfaceAttrType = compilationContext.Compilation.GetBestTypeByMetadataName(TypeNames.
GeneratedComInterfaceAttribute
);
267
/// Finds the first direct base interface of <paramref name="typeSymbol"/> that has the <see cref="TypeNames.
GeneratedComInterfaceAttribute
"/>.
283
/// Finds the <see cref="InterfaceDeclarationSyntax"/> for <paramref name="symbol"/> that carries the <see cref="TypeNames.
GeneratedComInterfaceAttribute
"/>.
Analyzers\ConvertComImportToGeneratedComInterfaceAnalyzer.cs (1)
37
INamedTypeSymbol? generatedComInterfaceAttribute = context.Compilation.GetBestTypeByMetadataName(TypeNames.
GeneratedComInterfaceAttribute
);
Analyzers\ConvertComImportToGeneratedComInterfaceFixer.cs (1)
78
var generatedComInterfaceAttribute = gen.Attribute(gen.TypeExpression(comp.GetTypeByMetadataName(TypeNames.
GeneratedComInterfaceAttribute
)).WithAdditionalAnnotations(Simplifier.AddImportsAnnotation));
Analyzers\GeneratedComInterfaceAttributeAnalyzer.cs (1)
40
if (GetAttribute(typeSymbol, TypeNames.
GeneratedComInterfaceAttribute
, out _)
Analyzers\RuntimeComApiUsageWithSourceGeneratedComAnalyzer.cs (1)
31
INamedTypeSymbol? generatedComInterfaceAttribute = context.Compilation.GetBestTypeByMetadataName(TypeNames.
GeneratedComInterfaceAttribute
);
ComClassGenerator.cs (1)
34
INamedTypeSymbol? generatedComInterfaceAttributeType = compilation.GetBestTypeByMetadataName(TypeNames.
GeneratedComInterfaceAttribute
);
ComInterfaceGenerator.cs (1)
42
TypeNames.
GeneratedComInterfaceAttribute
,
ComInterfaceInfo.cs (1)
338
if (attr.AttributeClass?.ToDisplayString() == TypeNames.
GeneratedComInterfaceAttribute
)
GeneratedComInterfaceAttributeData.cs (2)
46
&& attr.AttributeClass?.ToDisplayString() == TypeNames.
GeneratedComInterfaceAttribute
)
63
Debug.Assert(attr.AttributeClass.ToDisplayString() == TypeNames.
GeneratedComInterfaceAttribute
);
Microsoft.Interop.SourceGeneration (1)
ComInterfaceMarshallingInfoProvider.cs (1)
24
public bool CanParseAttributeType(INamedTypeSymbol attributeType) => attributeType.ToDisplayString() == TypeNames.
GeneratedComInterfaceAttribute
;