12 references to CreateDiagnostic
Microsoft.CodeAnalysis.Analyzers (11)
MetaAnalyzers\DiagnosticAnalyzerAttributeAnalyzer.cs (1)
140
Diagnostic diagnostic = attributeSyntax.
CreateDiagnostic
(AddLanguageSupportToAnalyzerRule, namedType.Name, missingLanguage);
MetaAnalyzers\DiagnosticAnalyzerFieldsAnalyzer.cs (1)
167
Diagnostic diagnostic = typeSyntax.
CreateDiagnostic
(DoNotStorePerCompilationDataOntoFieldsRule, type.ToDisplayString());
MetaAnalyzers\DiagnosticDescriptorCreationAnalyzer.cs (1)
1252
operationAnalysisContext.ReportDiagnostic(argument.Value.Syntax.
CreateDiagnostic
(DoNotUseReservedDiagnosticIdRule, ruleId));
MetaAnalyzers\DoNotUseCompilationGetSemanticModelAnalyzer.cs (1)
68
operationContext.ReportDiagnostic(invocation.Syntax.
CreateDiagnostic
(Rule));
MetaAnalyzers\RegisterActionAnalyzer.cs (2)
356
Diagnostic diagnostic = invocationExpression.
CreateDiagnostic
(rule);
369
Diagnostic diagnostic = argument.
CreateDiagnostic
(UnsupportedSymbolKindArgumentRule, symbol.Name);
MetaAnalyzers\ReportDiagnosticAnalyzer.cs (1)
245
Diagnostic diagnostic = syntaxNode.
CreateDiagnostic
(InvalidReportDiagnosticRule, descriptorFields[0].Name);
src\RoslynAnalyzers\Microsoft.CodeAnalysis.BannedApiAnalyzers\Core\SymbolIsBannedAnalyzerBase.cs (4)
233
node.
CreateDiagnostic
(
270
syntaxNode.
CreateDiagnostic
(
282
syntaxNode.
CreateDiagnostic
(
352
syntaxNode.
CreateDiagnostic
(
Microsoft.CodeAnalysis.CSharp.Analyzers (1)
CSharpUpgradeMSBuildWorkspaceAnalyzer.cs (1)
28
context.ReportDiagnostic(identifierName.
CreateDiagnostic
(UpgradeMSBuildWorkspaceDiagnosticRule));