Remove leftover extensions
このコミットが含まれているのは:
1 親
d62c459633
コミット
2b01a73233
1ファイル変更
-32
@@ -9,38 +9,6 @@ namespace ComputeSharp.SourceGeneration.Extensions;
|
||||
/// </summary>
|
||||
internal static class DiagnosticsExtensions
|
||||
{
|
||||
/// <summary>
|
||||
/// Adds a new diagnostics to the current compilation.
|
||||
/// </summary>
|
||||
/// <param name="context">The <see cref="GeneratorExecutionContext"/> instance currently in use.</param>
|
||||
/// <param name="descriptor">The input <see cref="DiagnosticDescriptor"/> for the diagnostics to create.</param>
|
||||
/// <param name="symbol">The source <see cref="ISymbol"/> to attach the diagnostics to.</param>
|
||||
/// <param name="args">The optional arguments for the formatted message to include.</param>
|
||||
public static void ReportDiagnostic(
|
||||
this GeneratorExecutionContext context,
|
||||
DiagnosticDescriptor descriptor,
|
||||
ISymbol symbol,
|
||||
params object[] args)
|
||||
{
|
||||
context.ReportDiagnostic(Diagnostic.Create(descriptor, symbol.Locations.FirstOrDefault(), args));
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Adds a new diagnostics to the current compilation.
|
||||
/// </summary>
|
||||
/// <param name="context">The <see cref="GeneratorExecutionContext"/> instance currently in use.</param>
|
||||
/// <param name="descriptor">The input <see cref="DiagnosticDescriptor"/> for the diagnostics to create.</param>
|
||||
/// <param name="node">The source <see cref="SyntaxNode"/> to attach the diagnostics to.</param>
|
||||
/// <param name="args">The optional arguments for the formatted message to include.</param>
|
||||
public static void ReportDiagnostic(
|
||||
this GeneratorExecutionContext context,
|
||||
DiagnosticDescriptor descriptor,
|
||||
SyntaxNode node,
|
||||
params object[] args)
|
||||
{
|
||||
context.ReportDiagnostic(Diagnostic.Create(descriptor, node.GetLocation(), args));
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Adds a new diagnostics to the target builder.
|
||||
/// </summary>
|
||||
|
||||
新しいイシューから参照
ユーザーをブロックする