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