4 references to ToDiagnostic
Microsoft.Interop.ComInterfaceGenerator (1)
Analyzers\GeneratedComInterfaceAttributeAnalyzer.cs (1)
44
context.ReportDiagnostic(comInterfaceAttribute.CreateDiagnosticInfo(GeneratorDiagnostics.InterfaceTypeNotSupported, unsupportedValue).
ToDiagnostic
());
Microsoft.Interop.LibraryImportGenerator (2)
Analyzers\ConvertToLibraryImportAnalyzer.cs (1)
89
context.ReportDiagnostic(method.CreateDiagnosticInfo(ConvertToLibraryImport, properties.ToImmutable(), method.Name).
ToDiagnostic
());
Analyzers\DiagnosticReporter.cs (1)
19
public static DiagnosticReporter CreateForLocation(Location location, Action<Diagnostic> reportDiagnostic) => new((descriptor, properties, args) => reportDiagnostic(location.CreateDiagnosticInfo(descriptor, properties, args).
ToDiagnostic
()));
Microsoft.Interop.SourceGeneration (1)
IncrementalGeneratorInitializationContextExtensions.cs (1)
57
context.ReportDiagnostic(diagnostic.
ToDiagnostic
());