108 references to DiagnosticHelper
Microsoft.CodeAnalysis.CSharp.Features (56)
ArrowExpressionClausePlacementDiagnosticAnalyzer.cs (1)
73
context.ReportDiagnostic(
DiagnosticHelper
.Create(
ConditionalExpressionPlacementDiagnosticAnalyzer.cs (1)
77
context.ReportDiagnostic(
DiagnosticHelper
.Create(
ConsecutiveBracePlacementDiagnosticAnalyzer.cs (1)
79
context.ReportDiagnostic(
DiagnosticHelper
.Create(
ConstructorInitializerPlacementDiagnosticAnalyzer.cs (1)
87
context.ReportDiagnostic(
DiagnosticHelper
.Create(
ConvertSwitchStatementToExpressionDiagnosticAnalyzer.cs (1)
69
context.ReportDiagnostic(
DiagnosticHelper
.Create(Descriptor,
ConvertToBlockScopedNamespaceDiagnosticAnalyzer.cs (1)
53
return
DiagnosticHelper
.Create(
ConvertToFileScopedNamespaceDiagnosticAnalyzer.cs (1)
57
return
DiagnosticHelper
.Create(
ConvertToProgramMainDiagnosticAnalyzer.cs (1)
52
context.ReportDiagnostic(
DiagnosticHelper
.Create(
ConvertToTopLevelStatementsDiagnosticAnalyzer.cs (1)
73
context.ReportDiagnostic(
DiagnosticHelper
.Create(
CSharpAddAccessibilityModifiersDiagnosticAnalyzer.cs (1)
72
context.ReportDiagnostic(
DiagnosticHelper
.Create(
CSharpAddBracesDiagnosticAnalyzer.cs (1)
109
context.ReportDiagnostic(
DiagnosticHelper
.Create(
CSharpAsAndMemberAccessDiagnosticAnalyzer.cs (1)
82
context.ReportDiagnostic(
DiagnosticHelper
.Create(
CSharpAsAndNullCheckDiagnosticAnalyzer.cs (1)
259
syntaxContext.ReportDiagnostic(
DiagnosticHelper
.Create(
CSharpInlineDeclarationDiagnosticAnalyzer.cs (1)
235
context.ReportDiagnostic(
DiagnosticHelper
.Create(
CSharpIsAndCastCheckDiagnosticAnalyzer.cs (1)
143
syntaxContext.ReportDiagnostic(
DiagnosticHelper
.Create(
CSharpMakeStructMemberReadOnlyAnalyzer.cs (1)
114
context.ReportDiagnostic(
DiagnosticHelper
.Create(
CSharpMakeStructReadOnlyDiagnosticAnalyzer.cs (1)
61
context.ReportDiagnostic(
DiagnosticHelper
.Create(
CSharpRemoveConfusingSuppressionDiagnosticAnalyzer.cs (1)
43
context.ReportDiagnostic(
DiagnosticHelper
.Create(
CSharpRemoveUnnecessaryLambdaExpressionDiagnosticAnalyzer.cs (1)
208
context.ReportDiagnostic(
DiagnosticHelper
.CreateWithLocationTags(
CSharpRemoveUnreachableCodeDiagnosticAnalyzer.cs (2)
115
context.ReportDiagnostic(
DiagnosticHelper
.CreateWithLocationTags(
133
context.ReportDiagnostic(
DiagnosticHelper
.CreateWithLocationTags(
CSharpSimplifyPropertyPatternDiagnosticAnalyzer.cs (1)
66
syntaxContext.ReportDiagnostic(
DiagnosticHelper
.Create(
CSharpTypeStyleDiagnosticAnalyzerBase.cs (1)
77
=>
DiagnosticHelper
.Create(descriptor, declaration.SyntaxTree.GetLocation(diagnosticSpan), severity, additionalLocations: null, properties: null);
CSharpUseCompoundCoalesceAssignmentDiagnosticAnalyzer.cs (2)
95
context.ReportDiagnostic(
DiagnosticHelper
.Create(
176
context.ReportDiagnostic(
DiagnosticHelper
.Create(
CSharpUseDeconstructionDiagnosticAnalyzer.cs (2)
65
context.ReportDiagnostic(
DiagnosticHelper
.Create(
79
context.ReportDiagnostic(
DiagnosticHelper
.Create(
CSharpUseDefaultLiteralDiagnosticAnalyzer.cs (1)
49
DiagnosticHelper
.CreateWithLocationTags(
CSharpUseImplicitObjectCreationDiagnosticAnalyzer.cs (1)
130
context.ReportDiagnostic(
DiagnosticHelper
.Create(
CSharpUseIndexOperatorDiagnosticAnalyzer.cs (1)
206
DiagnosticHelper
.Create(
CSharpUseInferredMemberNameDiagnosticAnalyzer.cs (2)
56
DiagnosticHelper
.CreateWithLocationTags(
81
DiagnosticHelper
.CreateWithLocationTags(
CSharpUseIsNullCheckForCastAndEqualityOperatorDiagnosticAnalyzer.cs (1)
66
DiagnosticHelper
.Create(
CSharpUseLocalFunctionDiagnosticAnalyzer.cs (3)
135
syntaxContext.ReportDiagnostic(
DiagnosticHelper
.Create(
145
syntaxContext.ReportDiagnostic(
DiagnosticHelper
.Create(
155
syntaxContext.ReportDiagnostic(
DiagnosticHelper
.Create(
CSharpUseNameofInNullableAttributeDiagnosticAnalyzer.cs (1)
103
context.ReportDiagnostic(
DiagnosticHelper
.Create(
CSharpUseNotPatternDiagnosticAnalyzer.cs (1)
84
syntaxContext.ReportDiagnostic(
DiagnosticHelper
.Create(
CSharpUseNullCheckOverTypeCheckDiagnosticAnalyzer.cs (2)
80
DiagnosticHelper
.Create(
110
DiagnosticHelper
.Create(
CSharpUsePatternCombinatorsDiagnosticAnalyzer.cs (1)
99
context.ReportDiagnostic(
DiagnosticHelper
.Create(
CSharpUseRangeOperatorDiagnosticAnalyzer.cs (1)
261
return
DiagnosticHelper
.Create(
CSharpUseTupleSwapDiagnosticAnalyzer.cs (1)
122
syntaxContext.ReportDiagnostic(
DiagnosticHelper
.Create(
EmbeddedStatementPlacementDiagnosticAnalyzer.cs (1)
73
context.ReportDiagnostic(
DiagnosticHelper
.Create(
InvokeDelegateWithConditionalAccessAnalyzer.cs (3)
184
syntaxContext.ReportDiagnostic(
DiagnosticHelper
.CreateWithLocationTags(
193
syntaxContext.ReportDiagnostic(
DiagnosticHelper
.Create(
203
syntaxContext.ReportDiagnostic(
DiagnosticHelper
.CreateWithLocationTags(
MakeLocalFunctionStaticDiagnosticAnalyzer.cs (1)
53
context.ReportDiagnostic(
DiagnosticHelper
.Create(
MisplacedUsingDirectivesDiagnosticAnalyzer.cs (1)
99
context.ReportDiagnostic(
DiagnosticHelper
.Create(
UseExpressionBodyDiagnosticAnalyzer.cs (2)
101
return
DiagnosticHelper
.Create(
119
return
DiagnosticHelper
.Create(
UseExpressionBodyForLambdaDiagnosticAnalyzer.cs (2)
77
return
DiagnosticHelper
.Create(
90
return
DiagnosticHelper
.Create(
UsePatternMatching\CSharpIsAndCastCheckWithoutNameDiagnosticAnalyzer.cs (1)
101
DiagnosticHelper
.Create(
UseSimpleUsingStatementDiagnosticAnalyzer.cs (1)
120
context.ReportDiagnostic(
DiagnosticHelper
.Create(
UseUtf8StringLiteralDiagnosticAnalyzer.cs (1)
147
DiagnosticHelper
.Create(Descriptor, location, severity, additionalLocations, properties));
Microsoft.CodeAnalysis.EditorFeatures.UnitTests (2)
Diagnostics\DiagnosticsClassificationTaggerProviderTests.cs (2)
97
c.ReportDiagnostic(
DiagnosticHelper
.Create(
110
c.ReportDiagnostic(
DiagnosticHelper
.CreateWithLocationTags(
Microsoft.CodeAnalysis.Features (45)
AbstractAddRequiredParenthesesDiagnosticAnalyzer.cs (1)
146
context.ReportDiagnostic(
DiagnosticHelper
.Create(
AbstractBuiltInCodeStyleDiagnosticAnalyzer_Core.cs (1)
61
helpLinkUri:
DiagnosticHelper
.GetHelpLinkForDiagnosticId(id),
AbstractCodeQualityDiagnosticAnalyzer.cs (1)
59
helpLinkUri:
DiagnosticHelper
.GetHelpLinkForDiagnosticId(id),
AbstractConsecutiveStatementPlacementDiagnosticAnalyzer.cs (1)
105
context.ReportDiagnostic(
DiagnosticHelper
.Create(
AbstractConvertTypeOfToNameOfDiagnosticAnalyzer.cs (1)
49
DiagnosticHelper
.Create(Descriptor,
AbstractForEachCastDiagnosticAnalyzer.cs (1)
129
context.ReportDiagnostic(
DiagnosticHelper
.Create(
AbstractMakeFieldReadonlyDiagnosticAnalyzer.cs (1)
120
var diagnostic =
DiagnosticHelper
.Create(
AbstractMultipleBlankLinesDiagnosticAnalyzer.cs (1)
76
context.ReportDiagnostic(
DiagnosticHelper
.Create(
AbstractOrderModifiersDiagnosticAnalyzer.cs (1)
81
DiagnosticHelper
.Create(Descriptor, modifiers.First().GetLocation(), severity, additionalLocations: null, properties: null));
AbstractQualifyMemberAccessDiagnosticAnalyzer.cs (1)
135
context.ReportDiagnostic(
DiagnosticHelper
.Create(
AbstractRemoveUnnecessaryParenthesesDiagnosticAnalyzer.cs (1)
115
context.ReportDiagnostic(
DiagnosticHelper
.CreateWithLocationTags(
AbstractRemoveUnusedMembersDiagnosticAnalyzer.cs (2)
472
var diagnostic =
DiagnosticHelper
.CreateWithMessage(
519
return new
DiagnosticHelper
.LocalizableStringWithArguments(
AbstractRemoveUnusedParametersAndValuesDiagnosticAnalyzer.SymbolStartAnalyzer.BlockAnalyzer.cs (2)
182
var diagnostic =
DiagnosticHelper
.Create(s_expressionValueIsUnusedRule,
536
var diagnostic =
DiagnosticHelper
.Create(s_valueAssignedIsUnusedRule,
AbstractRemoveUnusedParametersAndValuesDiagnosticAnalyzer.SymbolStartAnalyzer.cs (2)
154
var diagnostic =
DiagnosticHelper
.CreateWithMessage(s_unusedParameterRule, location,
182
return new
DiagnosticHelper
.LocalizableStringWithArguments(messageFormat, parameterName);
AbstractSimplifyConditionalDiagnosticAnalyzer.cs (1)
140
=> context.ReportDiagnostic(
DiagnosticHelper
.Create(
AbstractSimplifyInterpolationDiagnosticAnalyzer.cs (1)
66
context.ReportDiagnostic(
DiagnosticHelper
.CreateWithLocationTags(
AbstractSimplifyLinqExpressionDiagnosticAnalyzer.cs (1)
150
DiagnosticHelper
.Create(
AbstractUseAutoPropertyAnalyzer.cs (1)
330
var diagnostic1 =
DiagnosticHelper
.Create(
AbstractUseCoalesceExpressionForIfNullCheckDiagnosticAnalyzer.cs (1)
118
context.ReportDiagnostic(
DiagnosticHelper
.Create(
AbstractUseCoalesceExpressionForNullableTernaryConditionalCheckDiagnosticAnalyzer.cs (1)
131
context.ReportDiagnostic(
DiagnosticHelper
.Create(
AbstractUseCoalesceExpressionForTernaryConditionalCheckDiagnosticAnalyzer.cs (1)
128
context.ReportDiagnostic(
DiagnosticHelper
.Create(
AbstractUseCollectionInitializerDiagnosticAnalyzer.cs (2)
123
context.ReportDiagnostic(
DiagnosticHelper
.Create(
156
context.ReportDiagnostic(
DiagnosticHelper
.CreateWithLocationTags(
AbstractUseCompoundAssignmentDiagnosticAnalyzer.cs (3)
147
context.ReportDiagnostic(
DiagnosticHelper
.Create(
158
context.ReportDiagnostic(
DiagnosticHelper
.Create(
169
context.ReportDiagnostic(
DiagnosticHelper
.Create(
AbstractUseConditionalExpressionDiagnosticAnalyzer.cs (1)
55
context.ReportDiagnostic(
DiagnosticHelper
.Create(
AbstractUseIsNullForReferenceEqualsDiagnosticAnalyzer.cs (1)
142
DiagnosticHelper
.Create(
AbstractUseNullPropagationDiagnosticAnalyzer.cs (1)
187
context.ReportDiagnostic(
DiagnosticHelper
.Create(
AbstractUseNullPropagationDiagnosticAnalyzer_IfStatement.cs (1)
94
context.ReportDiagnostic(
DiagnosticHelper
.Create(
AbstractUseObjectInitializerDiagnosticAnalyzer.cs (2)
110
context.ReportDiagnostic(
DiagnosticHelper
.Create(
140
context.ReportDiagnostic(
DiagnosticHelper
.CreateWithLocationTags(
AbstractUseThrowExpressionDiagnosticAnalyzer.cs (1)
135
DiagnosticHelper
.Create(Descriptor, throwStatementSyntax.GetLocation(), option.Notification.Severity, additionalLocations: allLocations, properties: null));
EmbeddedLanguages\Json\LanguageServices\AbstractJsonDetectionAnalyzer.cs (1)
94
context.ReportDiagnostic(
DiagnosticHelper
.Create(
EmbeddedLanguages\Json\LanguageServices\AbstractJsonDiagnosticAnalyzer.cs (1)
80
context.ReportDiagnostic(
DiagnosticHelper
.Create(
EmbeddedLanguages\RegularExpressions\LanguageServices\AbstractRegexDiagnosticAnalyzer.cs (1)
89
context.ReportDiagnostic(
DiagnosticHelper
.Create(
NamingStyleDiagnosticAnalyzerBase.cs (1)
168
return
DiagnosticHelper
.Create(Descriptor, symbol.Locations.First(), applicableRule.EnforcementLevel, additionalLocations: null, builder.ToImmutable(), failureReason);
PreferFrameworkType\PreferFrameworkTypeDiagnosticAnalyzerBase.cs (1)
103
context.ReportDiagnostic(
DiagnosticHelper
.Create(
SimplifyThisOrMe\AbstractSimplifyThisOrMeDiagnosticAnalyzer.cs (1)
75
context.ReportDiagnostic(
DiagnosticHelper
.Create(
SimplifyTypeNamesDiagnosticAnalyzerBase.cs (1)
166
var diagnostic =
DiagnosticHelper
.Create(descriptor, tree.GetLocation(issueSpan), severity, additionalLocations: null, builder.ToImmutable());
UseExplicitTupleNameDiagnosticAnalyzer.cs (1)
64
context.ReportDiagnostic(
DiagnosticHelper
.Create(
UseSystemHashCodeDiagnosticAnalyzer.cs (1)
75
context.ReportDiagnostic(
DiagnosticHelper
.Create(
Microsoft.CodeAnalysis.VisualBasic.Features (5)
VisualBasicAddAccessibilityModifiersDiagnosticAnalyzer.vb (1)
62
context.ReportDiagnostic(
DiagnosticHelper
.Create(
VisualBasicSimplifyObjectCreationDiagnosticAnalyzer.vb (1)
57
context.ReportDiagnostic(
DiagnosticHelper
.Create(Descriptor, variableDeclarator.GetLocation(), styleOption.Notification.Severity,
VisualBasicUseInferredMemberNameDiagnosticAnalyzer.vb (2)
54
DiagnosticHelper
.CreateWithLocationTags(
77
DiagnosticHelper
.CreateWithLocationTags(
VisualBasicUseIsNotDiagnosticAnalyzer.vb (1)
71
syntaxContext.ReportDiagnostic(
DiagnosticHelper
.Create(