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