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