Skip to main content

DiagnosticsExtensions.ReportDiagnostic Method

Containing Type: DiagnosticsExtensions

Assembly: Roslynator.Core.dll

Overloads

MethodSummary
ReportDiagnostic(SymbolAnalysisContext, DiagnosticDescriptor, Location, IEnumerable<Location>, ImmutableDictionary<String, String>, Object[])Report a Diagnostic about a ISymbol.
ReportDiagnostic(SymbolAnalysisContext, DiagnosticDescriptor, Location, IEnumerable<Location>, Object[])Report a Diagnostic about a ISymbol.
ReportDiagnostic(SymbolAnalysisContext, DiagnosticDescriptor, Location, ImmutableDictionary<String, String>, Object[])Report a Diagnostic about a ISymbol.
ReportDiagnostic(SymbolAnalysisContext, DiagnosticDescriptor, Location, Object[])Report a Diagnostic about a ISymbol.
ReportDiagnostic(SymbolAnalysisContext, DiagnosticDescriptor, SyntaxNode, Object[])Report a Diagnostic about a ISymbol.
ReportDiagnostic(SymbolAnalysisContext, DiagnosticDescriptor, SyntaxToken, Object[])Report a Diagnostic about a ISymbol.
ReportDiagnostic(SymbolAnalysisContext, DiagnosticDescriptor, SyntaxTrivia, Object[])Report a Diagnostic about a ISymbol.
ReportDiagnostic(SyntaxNodeAnalysisContext, DiagnosticDescriptor, Location, IEnumerable<Location>, ImmutableDictionary<String, String>, Object[])Report a Diagnostic about a SyntaxNode.
ReportDiagnostic(SyntaxNodeAnalysisContext, DiagnosticDescriptor, Location, IEnumerable<Location>, Object[])Report a Diagnostic about a SyntaxNode.
ReportDiagnostic(SyntaxNodeAnalysisContext, DiagnosticDescriptor, Location, ImmutableDictionary<String, String>, Object[])Report a Diagnostic about a SyntaxNode.
ReportDiagnostic(SyntaxNodeAnalysisContext, DiagnosticDescriptor, Location, Object[])Report a Diagnostic about a SyntaxNode.
ReportDiagnostic(SyntaxNodeAnalysisContext, DiagnosticDescriptor, SyntaxNode, Object[])Report a Diagnostic about a SyntaxNode.
ReportDiagnostic(SyntaxNodeAnalysisContext, DiagnosticDescriptor, SyntaxToken, Object[])Report a Diagnostic about a SyntaxNode.
ReportDiagnostic(SyntaxNodeAnalysisContext, DiagnosticDescriptor, SyntaxTrivia, Object[])Report a Diagnostic about a SyntaxNode.
ReportDiagnostic(SyntaxTreeAnalysisContext, DiagnosticDescriptor, Location, IEnumerable<Location>, ImmutableDictionary<String, String>, Object[])Report a Diagnostic about a SyntaxTree.
ReportDiagnostic(SyntaxTreeAnalysisContext, DiagnosticDescriptor, Location, IEnumerable<Location>, Object[])Report a Diagnostic about a SyntaxTree.
ReportDiagnostic(SyntaxTreeAnalysisContext, DiagnosticDescriptor, Location, ImmutableDictionary<String, String>, Object[])Report a Diagnostic about a SyntaxTree.
ReportDiagnostic(SyntaxTreeAnalysisContext, DiagnosticDescriptor, Location, Object[])Report a Diagnostic about a SyntaxTree.
ReportDiagnostic(SyntaxTreeAnalysisContext, DiagnosticDescriptor, SyntaxNode, Object[])Report a Diagnostic about a SyntaxTree.
ReportDiagnostic(SyntaxTreeAnalysisContext, DiagnosticDescriptor, SyntaxToken, Object[])Report a Diagnostic about a SyntaxTree.
ReportDiagnostic(SyntaxTreeAnalysisContext, DiagnosticDescriptor, SyntaxTrivia, Object[])Report a Diagnostic about a SyntaxTree.

ReportDiagnostic(SymbolAnalysisContext, DiagnosticDescriptor, Location, IEnumerable<Location>, ImmutableDictionary<String, String>, Object[])

Report a Diagnostic about a ISymbol.

public static void ReportDiagnostic(this Microsoft.CodeAnalysis.Diagnostics.SymbolAnalysisContext context, Microsoft.CodeAnalysis.DiagnosticDescriptor descriptor, Microsoft.CodeAnalysis.Location? location, System.Collections.Generic.IEnumerable<Microsoft.CodeAnalysis.Location> additionalLocations, System.Collections.Immutable.ImmutableDictionary<string, string?>? properties, params object?[]? messageArgs)

Parameters

context SymbolAnalysisContext

descriptor DiagnosticDescriptor

location Location

additionalLocations IEnumerable<Location>

properties ImmutableDictionary<String, String>

messageArgs Object[]

ReportDiagnostic(SymbolAnalysisContext, DiagnosticDescriptor, Location, IEnumerable<Location>, Object[])

Report a Diagnostic about a ISymbol.

public static void ReportDiagnostic(this Microsoft.CodeAnalysis.Diagnostics.SymbolAnalysisContext context, Microsoft.CodeAnalysis.DiagnosticDescriptor descriptor, Microsoft.CodeAnalysis.Location? location, System.Collections.Generic.IEnumerable<Microsoft.CodeAnalysis.Location> additionalLocations, params object?[]? messageArgs)

Parameters

context SymbolAnalysisContext

descriptor DiagnosticDescriptor

location Location

additionalLocations IEnumerable<Location>

messageArgs Object[]

ReportDiagnostic(SymbolAnalysisContext, DiagnosticDescriptor, Location, ImmutableDictionary<String, String>, Object[])

Report a Diagnostic about a ISymbol.

public static void ReportDiagnostic(this Microsoft.CodeAnalysis.Diagnostics.SymbolAnalysisContext context, Microsoft.CodeAnalysis.DiagnosticDescriptor descriptor, Microsoft.CodeAnalysis.Location? location, System.Collections.Immutable.ImmutableDictionary<string, string?>? properties, params object?[]? messageArgs)

Parameters

context SymbolAnalysisContext

descriptor DiagnosticDescriptor

location Location

properties ImmutableDictionary<String, String>

messageArgs Object[]

ReportDiagnostic(SymbolAnalysisContext, DiagnosticDescriptor, Location, Object[])

Report a Diagnostic about a ISymbol.

public static void ReportDiagnostic(this Microsoft.CodeAnalysis.Diagnostics.SymbolAnalysisContext context, Microsoft.CodeAnalysis.DiagnosticDescriptor descriptor, Microsoft.CodeAnalysis.Location? location, params object?[]? messageArgs)

Parameters

context SymbolAnalysisContext

descriptor DiagnosticDescriptor

location Location

messageArgs Object[]

ReportDiagnostic(SymbolAnalysisContext, DiagnosticDescriptor, SyntaxNode, Object[])

Report a Diagnostic about a ISymbol.

public static void ReportDiagnostic(this Microsoft.CodeAnalysis.Diagnostics.SymbolAnalysisContext context, Microsoft.CodeAnalysis.DiagnosticDescriptor descriptor, Microsoft.CodeAnalysis.SyntaxNode node, params object?[]? messageArgs)

Parameters

context SymbolAnalysisContext

descriptor DiagnosticDescriptor

node SyntaxNode

messageArgs Object[]

ReportDiagnostic(SymbolAnalysisContext, DiagnosticDescriptor, SyntaxToken, Object[])

Report a Diagnostic about a ISymbol.

public static void ReportDiagnostic(this Microsoft.CodeAnalysis.Diagnostics.SymbolAnalysisContext context, Microsoft.CodeAnalysis.DiagnosticDescriptor descriptor, Microsoft.CodeAnalysis.SyntaxToken token, params object?[]? messageArgs)

Parameters

context SymbolAnalysisContext

descriptor DiagnosticDescriptor

token SyntaxToken

messageArgs Object[]

ReportDiagnostic(SymbolAnalysisContext, DiagnosticDescriptor, SyntaxTrivia, Object[])

Report a Diagnostic about a ISymbol.

public static void ReportDiagnostic(this Microsoft.CodeAnalysis.Diagnostics.SymbolAnalysisContext context, Microsoft.CodeAnalysis.DiagnosticDescriptor descriptor, Microsoft.CodeAnalysis.SyntaxTrivia trivia, params object?[]? messageArgs)

Parameters

context SymbolAnalysisContext

descriptor DiagnosticDescriptor

trivia SyntaxTrivia

messageArgs Object[]

ReportDiagnostic(SyntaxNodeAnalysisContext, DiagnosticDescriptor, Location, IEnumerable<Location>, ImmutableDictionary<String, String>, Object[])

Report a Diagnostic about a SyntaxNode.

public static void ReportDiagnostic(this Microsoft.CodeAnalysis.Diagnostics.SyntaxNodeAnalysisContext context, Microsoft.CodeAnalysis.DiagnosticDescriptor descriptor, Microsoft.CodeAnalysis.Location? location, System.Collections.Generic.IEnumerable<Microsoft.CodeAnalysis.Location> additionalLocations, System.Collections.Immutable.ImmutableDictionary<string, string?>? properties, params object?[]? messageArgs)

Parameters

context SyntaxNodeAnalysisContext

descriptor DiagnosticDescriptor

location Location

additionalLocations IEnumerable<Location>

properties ImmutableDictionary<String, String>

messageArgs Object[]

ReportDiagnostic(SyntaxNodeAnalysisContext, DiagnosticDescriptor, Location, IEnumerable<Location>, Object[])

Report a Diagnostic about a SyntaxNode.

public static void ReportDiagnostic(this Microsoft.CodeAnalysis.Diagnostics.SyntaxNodeAnalysisContext context, Microsoft.CodeAnalysis.DiagnosticDescriptor descriptor, Microsoft.CodeAnalysis.Location? location, System.Collections.Generic.IEnumerable<Microsoft.CodeAnalysis.Location> additionalLocations, params object?[]? messageArgs)

Parameters

context SyntaxNodeAnalysisContext

descriptor DiagnosticDescriptor

location Location

additionalLocations IEnumerable<Location>

messageArgs Object[]

ReportDiagnostic(SyntaxNodeAnalysisContext, DiagnosticDescriptor, Location, ImmutableDictionary<String, String>, Object[])

Report a Diagnostic about a SyntaxNode.

public static void ReportDiagnostic(this Microsoft.CodeAnalysis.Diagnostics.SyntaxNodeAnalysisContext context, Microsoft.CodeAnalysis.DiagnosticDescriptor descriptor, Microsoft.CodeAnalysis.Location? location, System.Collections.Immutable.ImmutableDictionary<string, string?>? properties, params object?[]? messageArgs)

Parameters

context SyntaxNodeAnalysisContext

descriptor DiagnosticDescriptor

location Location

properties ImmutableDictionary<String, String>

messageArgs Object[]

ReportDiagnostic(SyntaxNodeAnalysisContext, DiagnosticDescriptor, Location, Object[])

Report a Diagnostic about a SyntaxNode.

public static void ReportDiagnostic(this Microsoft.CodeAnalysis.Diagnostics.SyntaxNodeAnalysisContext context, Microsoft.CodeAnalysis.DiagnosticDescriptor descriptor, Microsoft.CodeAnalysis.Location? location, params object?[]? messageArgs)

Parameters

context SyntaxNodeAnalysisContext

descriptor DiagnosticDescriptor

location Location

messageArgs Object[]

ReportDiagnostic(SyntaxNodeAnalysisContext, DiagnosticDescriptor, SyntaxNode, Object[])

Report a Diagnostic about a SyntaxNode.

public static void ReportDiagnostic(this Microsoft.CodeAnalysis.Diagnostics.SyntaxNodeAnalysisContext context, Microsoft.CodeAnalysis.DiagnosticDescriptor descriptor, Microsoft.CodeAnalysis.SyntaxNode node, params object?[]? messageArgs)

Parameters

context SyntaxNodeAnalysisContext

descriptor DiagnosticDescriptor

node SyntaxNode

messageArgs Object[]

ReportDiagnostic(SyntaxNodeAnalysisContext, DiagnosticDescriptor, SyntaxToken, Object[])

Report a Diagnostic about a SyntaxNode.

public static void ReportDiagnostic(this Microsoft.CodeAnalysis.Diagnostics.SyntaxNodeAnalysisContext context, Microsoft.CodeAnalysis.DiagnosticDescriptor descriptor, Microsoft.CodeAnalysis.SyntaxToken token, params object?[]? messageArgs)

Parameters

context SyntaxNodeAnalysisContext

descriptor DiagnosticDescriptor

token SyntaxToken

messageArgs Object[]

ReportDiagnostic(SyntaxNodeAnalysisContext, DiagnosticDescriptor, SyntaxTrivia, Object[])

Report a Diagnostic about a SyntaxNode.

public static void ReportDiagnostic(this Microsoft.CodeAnalysis.Diagnostics.SyntaxNodeAnalysisContext context, Microsoft.CodeAnalysis.DiagnosticDescriptor descriptor, Microsoft.CodeAnalysis.SyntaxTrivia trivia, params object?[]? messageArgs)

Parameters

context SyntaxNodeAnalysisContext

descriptor DiagnosticDescriptor

trivia SyntaxTrivia

messageArgs Object[]

ReportDiagnostic(SyntaxTreeAnalysisContext, DiagnosticDescriptor, Location, IEnumerable<Location>, ImmutableDictionary<String, String>, Object[])

Report a Diagnostic about a SyntaxTree.

public static void ReportDiagnostic(this Microsoft.CodeAnalysis.Diagnostics.SyntaxTreeAnalysisContext context, Microsoft.CodeAnalysis.DiagnosticDescriptor descriptor, Microsoft.CodeAnalysis.Location? location, System.Collections.Generic.IEnumerable<Microsoft.CodeAnalysis.Location> additionalLocations, System.Collections.Immutable.ImmutableDictionary<string, string?>? properties, params object?[]? messageArgs)

Parameters

context SyntaxTreeAnalysisContext

descriptor DiagnosticDescriptor

location Location

additionalLocations IEnumerable<Location>

properties ImmutableDictionary<String, String>

messageArgs Object[]

ReportDiagnostic(SyntaxTreeAnalysisContext, DiagnosticDescriptor, Location, IEnumerable<Location>, Object[])

Report a Diagnostic about a SyntaxTree.

public static void ReportDiagnostic(this Microsoft.CodeAnalysis.Diagnostics.SyntaxTreeAnalysisContext context, Microsoft.CodeAnalysis.DiagnosticDescriptor descriptor, Microsoft.CodeAnalysis.Location? location, System.Collections.Generic.IEnumerable<Microsoft.CodeAnalysis.Location> additionalLocations, params object?[]? messageArgs)

Parameters

context SyntaxTreeAnalysisContext

descriptor DiagnosticDescriptor

location Location

additionalLocations IEnumerable<Location>

messageArgs Object[]

ReportDiagnostic(SyntaxTreeAnalysisContext, DiagnosticDescriptor, Location, ImmutableDictionary<String, String>, Object[])

Report a Diagnostic about a SyntaxTree.

public static void ReportDiagnostic(this Microsoft.CodeAnalysis.Diagnostics.SyntaxTreeAnalysisContext context, Microsoft.CodeAnalysis.DiagnosticDescriptor descriptor, Microsoft.CodeAnalysis.Location? location, System.Collections.Immutable.ImmutableDictionary<string, string?>? properties, params object?[]? messageArgs)

Parameters

context SyntaxTreeAnalysisContext

descriptor DiagnosticDescriptor

location Location

properties ImmutableDictionary<String, String>

messageArgs Object[]

ReportDiagnostic(SyntaxTreeAnalysisContext, DiagnosticDescriptor, Location, Object[])

Report a Diagnostic about a SyntaxTree.

public static void ReportDiagnostic(this Microsoft.CodeAnalysis.Diagnostics.SyntaxTreeAnalysisContext context, Microsoft.CodeAnalysis.DiagnosticDescriptor descriptor, Microsoft.CodeAnalysis.Location? location, params object?[]? messageArgs)

Parameters

context SyntaxTreeAnalysisContext

descriptor DiagnosticDescriptor

location Location

messageArgs Object[]

ReportDiagnostic(SyntaxTreeAnalysisContext, DiagnosticDescriptor, SyntaxNode, Object[])

Report a Diagnostic about a SyntaxTree.

public static void ReportDiagnostic(this Microsoft.CodeAnalysis.Diagnostics.SyntaxTreeAnalysisContext context, Microsoft.CodeAnalysis.DiagnosticDescriptor descriptor, Microsoft.CodeAnalysis.SyntaxNode node, params object?[]? messageArgs)

Parameters

context SyntaxTreeAnalysisContext

descriptor DiagnosticDescriptor

node SyntaxNode

messageArgs Object[]

ReportDiagnostic(SyntaxTreeAnalysisContext, DiagnosticDescriptor, SyntaxToken, Object[])

Report a Diagnostic about a SyntaxTree.

public static void ReportDiagnostic(this Microsoft.CodeAnalysis.Diagnostics.SyntaxTreeAnalysisContext context, Microsoft.CodeAnalysis.DiagnosticDescriptor descriptor, Microsoft.CodeAnalysis.SyntaxToken token, params object?[]? messageArgs)

Parameters

context SyntaxTreeAnalysisContext

descriptor DiagnosticDescriptor

token SyntaxToken

messageArgs Object[]

ReportDiagnostic(SyntaxTreeAnalysisContext, DiagnosticDescriptor, SyntaxTrivia, Object[])

Report a Diagnostic about a SyntaxTree.

public static void ReportDiagnostic(this Microsoft.CodeAnalysis.Diagnostics.SyntaxTreeAnalysisContext context, Microsoft.CodeAnalysis.DiagnosticDescriptor descriptor, Microsoft.CodeAnalysis.SyntaxTrivia trivia, params object?[]? messageArgs)

Parameters

context SyntaxTreeAnalysisContext

descriptor DiagnosticDescriptor

trivia SyntaxTrivia

messageArgs Object[]