10 references to AnalyzerDiagnostics
Microsoft.Interop.ComInterfaceGenerator (10)
Analyzers\AddGeneratedComClassAnalyzer.cs (1)
9
using static Microsoft.Interop.Analyzers.
AnalyzerDiagnostics
;
Analyzers\AddGeneratedComClassFixer.cs (1)
20
public override ImmutableArray<string> FixableDiagnosticIds => ImmutableArray.Create(
AnalyzerDiagnostics
.Ids.AddGeneratedComClassAttribute);
Analyzers\ComHostingDoesNotSupportGeneratedComInterfaceAnalyzer.cs (1)
10
using static Microsoft.Interop.Analyzers.
AnalyzerDiagnostics
;
Analyzers\ConvertComImportToGeneratedComInterfaceAnalyzer.cs (3)
13
using static Microsoft.Interop.Analyzers.
AnalyzerDiagnostics
;
138
properties.Add(
AnalyzerDiagnostics
.Metadata.MayRequireAdditionalWork, mayRequireAdditionalWork.ToString());
139
properties.Add(
AnalyzerDiagnostics
.Metadata.AddStringMarshalling, hasStrings.ToString());
Analyzers\ConvertComImportToGeneratedComInterfaceFixer.cs (3)
26
public override ImmutableArray<string> FixableDiagnosticIds => ImmutableArray.Create(
AnalyzerDiagnostics
.Ids.ConvertToGeneratedComInterface);
47
if (diagnostic.Properties.TryGetValue(
AnalyzerDiagnostics
.Metadata.MayRequireAdditionalWork, out string? mayRequireAdditionalWork) && bool.Parse(mayRequireAdditionalWork))
51
if (diagnostic.Properties.TryGetValue(
AnalyzerDiagnostics
.Metadata.AddStringMarshalling, out string? addStringMarshalling) && bool.Parse(addStringMarshalling))
Analyzers\RuntimeComApiUsageWithSourceGeneratedComAnalyzer.cs (1)
14
using static Microsoft.Interop.Analyzers.
AnalyzerDiagnostics
;