15 lines
568 B
C#
15 lines
568 B
C#
|
|
using Microsoft.CodeAnalysis;
|
||
|
|
|
||
|
|
namespace Telegrator.Analyzers
|
||
|
|
{
|
||
|
|
public static class DiagnosticsHelper
|
||
|
|
{
|
||
|
|
public const string Aspect = "Aspect";
|
||
|
|
|
||
|
|
public static readonly DiagnosticDescriptor Test = new DiagnosticDescriptor("TR0001", "Test descriptor", string.Empty, Aspect, DiagnosticSeverity.Error, true, "Test diagnostic description.");
|
||
|
|
|
||
|
|
public static Diagnostic Create(this DiagnosticDescriptor descriptor, Location? location, params object[] messageArgs)
|
||
|
|
=> Diagnostic.Create(descriptor, location, messageArgs);
|
||
|
|
}
|
||
|
|
}
|