83 references to Create
Microsoft.CodeAnalysis.CodeStyle (33)
AbstractAddRequiredParenthesesDiagnosticAnalyzer.cs (1)
146context.ReportDiagnostic(DiagnosticHelper.Create(
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(
AbstractRemoveUnusedParametersAndValuesDiagnosticAnalyzer.SymbolStartAnalyzer.BlockAnalyzer.cs (2)
182var diagnostic = DiagnosticHelper.Create(s_expressionValueIsUnusedRule, 536var diagnostic = DiagnosticHelper.Create(s_valueAssignedIsUnusedRule,
AbstractSimplifyConditionalDiagnosticAnalyzer.cs (1)
140=> context.ReportDiagnostic(DiagnosticHelper.Create(
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 (1)
123context.ReportDiagnostic(DiagnosticHelper.Create(
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 (1)
110context.ReportDiagnostic(DiagnosticHelper.Create(
AbstractUseThrowExpressionDiagnosticAnalyzer.cs (1)
135DiagnosticHelper.Create(Descriptor, throwStatementSyntax.GetLocation(), option.Notification.Severity, additionalLocations: allLocations, properties: null));
DiagnosticHelper.cs (3)
93return Create(descriptor, location, effectiveSeverity, additionalLocations, ImmutableDictionary<string, string?>.Empty, messageArgs); 142return Create(descriptor, location, effectiveSeverity, additionalLocations, properties, messageArgs); 192return Create(descriptor, location, effectiveSeverity, additionalLocations, properties, messageArgs);
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 (47)
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(
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(
CSharpUseImplicitObjectCreationDiagnosticAnalyzer.cs (1)
130context.ReportDiagnostic(DiagnosticHelper.Create(
CSharpUseIndexOperatorDiagnosticAnalyzer.cs (1)
206DiagnosticHelper.Create(
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 (1)
193syntaxContext.ReportDiagnostic(DiagnosticHelper.Create(
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 (3)
VisualBasicAddAccessibilityModifiersDiagnosticAnalyzer.vb (1)
62context.ReportDiagnostic(DiagnosticHelper.Create(
VisualBasicSimplifyObjectCreationDiagnosticAnalyzer.vb (1)
57context.ReportDiagnostic(DiagnosticHelper.Create(Descriptor, variableDeclarator.GetLocation(), styleOption.Notification.Severity,
VisualBasicUseIsNotDiagnosticAnalyzer.vb (1)
71syntaxContext.ReportDiagnostic(DiagnosticHelper.Create(