11 references to CreateDiagnostic
Microsoft.CodeAnalysis.Analyzers (11)
MetaAnalyzers\DiagnosticAnalyzerAttributeAnalyzer.cs (1)
139
Diagnostic diagnostic = attributeSyntax.
CreateDiagnostic
(AddLanguageSupportToAnalyzerRule, namedType.Name, missingLanguage);
MetaAnalyzers\DiagnosticAnalyzerFieldsAnalyzer.cs (1)
166
Diagnostic diagnostic = typeSyntax.
CreateDiagnostic
(DoNotStorePerCompilationDataOntoFieldsRule, type.ToDisplayString());
MetaAnalyzers\DiagnosticDescriptorCreationAnalyzer.cs (1)
1250
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)
244
Diagnostic diagnostic = syntaxNode.
CreateDiagnostic
(InvalidReportDiagnosticRule, descriptorFields[0].Name);
src\RoslynAnalyzers\Microsoft.CodeAnalysis.BannedApiAnalyzers\Core\SymbolIsBannedAnalyzerBase.cs (4)
232
node.
CreateDiagnostic
(
269
syntaxNode.
CreateDiagnostic
(
281
syntaxNode.
CreateDiagnostic
(
351
syntaxNode.
CreateDiagnostic
(