224 references to ReportDiagnostic
Microsoft.CodeAnalysis.CodeStyle (22)
AbstractAddRequiredParenthesesDiagnosticAnalyzer.cs (1)
146context.ReportDiagnostic(DiagnosticHelper.Create(
AbstractForEachCastDiagnosticAnalyzer.cs (1)
129context.ReportDiagnostic(DiagnosticHelper.Create(
AbstractMatchFolderAndNamespaceDiagnosticAnalyzer.cs (1)
82context.ReportDiagnostic(Diagnostic.Create(
AbstractRemoveUnnecessaryCastDiagnosticAnalyzer.cs (1)
49context.ReportDiagnostic(diagnostic);
AbstractRemoveUnnecessaryParenthesesDiagnosticAnalyzer.cs (1)
115context.ReportDiagnostic(DiagnosticHelper.CreateWithLocationTags(
AbstractSimplifyConditionalDiagnosticAnalyzer.cs (1)
140=> context.ReportDiagnostic(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(
AbstractUseIsNullForReferenceEqualsDiagnosticAnalyzer.cs (1)
141context.ReportDiagnostic(
AbstractUseNullPropagationDiagnosticAnalyzer.cs (1)
187context.ReportDiagnostic(DiagnosticHelper.Create(
AbstractUseNullPropagationDiagnosticAnalyzer_IfStatement.cs (1)
94context.ReportDiagnostic(DiagnosticHelper.Create(
AbstractUseObjectInitializerDiagnosticAnalyzer.cs (3)
110context.ReportDiagnostic(DiagnosticHelper.Create( 140context.ReportDiagnostic(DiagnosticHelper.CreateWithLocationTags( 150context.ReportDiagnostic(Diagnostic.Create(
AbstractValidateFormatStringDiagnosticAnalyzer.cs (1)
361context.ReportDiagnostic(diagnostic);
NamingStyleDiagnosticAnalyzerBase.cs (1)
96syntaxContext.ReportDiagnostic(diagnostic);
Microsoft.CodeAnalysis.CSharp.CodeStyle (40)
ConvertSwitchStatementToExpressionDiagnosticAnalyzer.cs (1)
69context.ReportDiagnostic(DiagnosticHelper.Create(Descriptor,
ConvertToBlockScopedNamespaceDiagnosticAnalyzer.cs (1)
38context.ReportDiagnostic(diagnostic);
ConvertToFileScopedNamespaceDiagnosticAnalyzer.cs (1)
42context.ReportDiagnostic(diagnostic);
ConvertToProgramMainDiagnosticAnalyzer.cs (1)
52context.ReportDiagnostic(DiagnosticHelper.Create(
ConvertToTopLevelStatementsDiagnosticAnalyzer.cs (1)
73context.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(
CSharpRemoveConfusingSuppressionDiagnosticAnalyzer.cs (1)
43context.ReportDiagnostic(DiagnosticHelper.Create(
CSharpRemoveUnnecessaryAttributeSuppressionsDiagnosticAnalyzer.cs (1)
25compilationAnalyzer.AnalyzeAssemblyOrModuleAttribute(attribute, context.SemanticModel, context.ReportDiagnostic, context.CancellationToken);
CSharpRemoveUnnecessaryDiscardDesignationDiagnosticAnalyzer.cs (1)
94context.ReportDiagnostic(Diagnostic.Create(
CSharpRemoveUnnecessaryLambdaExpressionDiagnosticAnalyzer.cs (1)
208context.ReportDiagnostic(DiagnosticHelper.CreateWithLocationTags(
CSharpSimplifyPropertyPatternDiagnosticAnalyzer.cs (1)
66syntaxContext.ReportDiagnostic(DiagnosticHelper.Create(
CSharpTypeStyleDiagnosticAnalyzerBase.cs (1)
73context.ReportDiagnostic(CreateDiagnostic(descriptor, declarationStatement, declaredType.StripRefIfNeeded().Span, typeStyle.Severity));
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)
48context.ReportDiagnostic(
CSharpUseImplicitObjectCreationDiagnosticAnalyzer.cs (1)
130context.ReportDiagnostic(DiagnosticHelper.Create(
CSharpUseInferredMemberNameDiagnosticAnalyzer.cs (2)
55context.ReportDiagnostic( 80context.ReportDiagnostic(
CSharpUseIsNullCheckForCastAndEqualityOperatorDiagnosticAnalyzer.cs (1)
65context.ReportDiagnostic(
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(
CSharpUsePatternCombinatorsDiagnosticAnalyzer.cs (1)
99context.ReportDiagnostic(DiagnosticHelper.Create(
CSharpUseTupleSwapDiagnosticAnalyzer.cs (1)
122syntaxContext.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 (1)
80context.ReportDiagnostic(diagnostic);
UseExpressionBodyForLambdaDiagnosticAnalyzer.cs (1)
63context.ReportDiagnostic(diagnostic);
UseSimpleUsingStatementDiagnosticAnalyzer.cs (1)
120context.ReportDiagnostic(DiagnosticHelper.Create(
Microsoft.CodeAnalysis.CSharp.CommandLine.UnitTests (3)
CommandLineTests.cs (3)
14615context.ReportDiagnostic(Diagnostic.Create(Hidden01, context.Node.GetLocation())); 14641context.ReportDiagnostic(Diagnostic.Create(Info01, context.Node.GetLocation())); 14696nodeContext.ReportDiagnostic(Diagnostic.Create(Error01, nodeContext.Node.GetLocation()));
Microsoft.CodeAnalysis.CSharp.EditorFeatures.UnitTests (23)
Diagnostics\Configuration\ConfigureSeverity\AllAnalyzersSeverityConfigurationTests.cs (1)
39c => c.ReportDiagnostic(Diagnostic.Create(Rule, c.Node.GetLocation())),
Diagnostics\Configuration\ConfigureSeverity\CategoryBasedSeverityConfigurationTests.cs (1)
39c => c.ReportDiagnostic(Diagnostic.Create(Rule, c.Node.GetLocation())),
Diagnostics\Configuration\ConfigureSeverity\DotNetDiagnosticSeverityBasedSeverityConfigurationTests.cs (1)
39c => c.ReportDiagnostic(Diagnostic.Create(Rule, c.Node.GetLocation())),
Diagnostics\DiagnosticAnalyzerDriver\DiagnosticAnalyzerDriverTests.cs (1)
327context.ReportDiagnostic(Diagnostic.Create(Descriptor, context.Node.GetLocation()));
Diagnostics\FixAllProvider\BatchFixerTests.cs (1)
55context.ReportDiagnostic(diagnostic);
Diagnostics\Suppression\RemoveSuppressionTests.cs (1)
50context.ReportDiagnostic(Diagnostic.Create(Decsciptor, location));
Diagnostics\Suppression\SuppressionTest_FixMultipleTests.cs (2)
52context.ReportDiagnostic(Diagnostic.Create(Decsciptor1, location)); 53context.ReportDiagnostic(Diagnostic.Create(Decsciptor2, location));
Diagnostics\Suppression\SuppressionTests.cs (15)
712context.ReportDiagnostic(Diagnostic.Create(Decsciptor, classDecl.Identifier.GetLocation())); 822context.ReportDiagnostic(Diagnostic.Create(_descriptor, classDecl.Identifier.GetLocation())); 885context.ReportDiagnostic(Diagnostic.Create(_descriptor, classDecl.Identifier.GetLocation())); 935context.ReportDiagnostic(Diagnostic.Create(Decsciptor, classDecl.GetLocation())); 1079context.ReportDiagnostic(Diagnostic.Create(Descriptor, classDecl.Identifier.GetLocation())); 1084context.ReportDiagnostic(Diagnostic.Create(Descriptor, ns.Name.GetLocation())); 1089context.ReportDiagnostic(Diagnostic.Create(Descriptor, method.Identifier.GetLocation())); 1094context.ReportDiagnostic(Diagnostic.Create(Descriptor, property.Identifier.GetLocation())); 1099context.ReportDiagnostic(Diagnostic.Create(Descriptor, field.Declaration.Variables.First().Identifier.GetLocation())); 1104context.ReportDiagnostic(Diagnostic.Create(Descriptor, e.Identifier.GetLocation())); 1111context.ReportDiagnostic(Diagnostic.Create(Descriptor, trivia.GetLocation())); 2073context.ReportDiagnostic(Diagnostic.Create(_descriptor, classDecl.Identifier.GetLocation())); 2078context.ReportDiagnostic(Diagnostic.Create(_descriptor, ns.Name.GetLocation())); 2083context.ReportDiagnostic(Diagnostic.Create(_descriptor, method.Identifier.GetLocation())); 2464=> context.ReportDiagnostic(Diagnostic.Create(Descriptor, Location.None));
Microsoft.CodeAnalysis.CSharp.Emit2.UnitTests (14)
Diagnostics\DiagnosticAnalyzerTests.cs (13)
57context.ReportDiagnostic(CodeAnalysis.Diagnostic.Create(s_CA9999_UseOfVariableThatStartsWithX, id.Location, id.Identifier.ValueText)); 254context.ReportDiagnostic(diag1); 259context.ReportDiagnostic(diag2); 264context.ReportDiagnostic(diag3); 668context.ReportDiagnostic(diagnostic); 798registerSyntaxNodeAction(context => { context.ReportDiagnostic(CodeAnalysis.Diagnostic.Create(Descriptor2, Location.None)); }, 801registerSyntaxNodeAction(context => { context.ReportDiagnostic(CodeAnalysis.Diagnostic.Create(Descriptor3, Location.None)); }, 820context.ReportDiagnostic(CodeAnalysis.Diagnostic.Create(descriptor, Location.None)); 1654nodeContext.ReportDiagnostic(CodeAnalysis.Diagnostic.Create(ExpressionDescriptor, nodeContext.Node.GetLocation())); 2323ReportNodeDiagnostics(syntaxContext.Node, syntaxContext.ReportDiagnostic); 3758context => context.ReportDiagnostic(CodeAnalysis.Diagnostic.Create(Rule, context.Node.GetLocation())), 3764context => context.ReportDiagnostic(CodeAnalysis.Diagnostic.Create(Rule, context.Node.GetLocation())), 3996context.ReportDiagnostic(diagnostic);
Diagnostics\GetDiagnosticsTests.cs (1)
905context => analyzeNode(context.Node, context.ContainingSymbol, context.ReportDiagnostic),
Microsoft.CodeAnalysis.CSharp.Features (41)
ConvertSwitchStatementToExpressionDiagnosticAnalyzer.cs (1)
69context.ReportDiagnostic(DiagnosticHelper.Create(Descriptor,
ConvertToBlockScopedNamespaceDiagnosticAnalyzer.cs (1)
38context.ReportDiagnostic(diagnostic);
ConvertToFileScopedNamespaceDiagnosticAnalyzer.cs (1)
42context.ReportDiagnostic(diagnostic);
ConvertToProgramMainDiagnosticAnalyzer.cs (1)
52context.ReportDiagnostic(DiagnosticHelper.Create(
ConvertToTopLevelStatementsDiagnosticAnalyzer.cs (1)
73context.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(
CSharpRemoveConfusingSuppressionDiagnosticAnalyzer.cs (1)
43context.ReportDiagnostic(DiagnosticHelper.Create(
CSharpRemoveUnnecessaryAttributeSuppressionsDiagnosticAnalyzer.cs (1)
25compilationAnalyzer.AnalyzeAssemblyOrModuleAttribute(attribute, context.SemanticModel, context.ReportDiagnostic, context.CancellationToken);
CSharpRemoveUnnecessaryDiscardDesignationDiagnosticAnalyzer.cs (1)
94context.ReportDiagnostic(Diagnostic.Create(
CSharpRemoveUnnecessaryLambdaExpressionDiagnosticAnalyzer.cs (1)
208context.ReportDiagnostic(DiagnosticHelper.CreateWithLocationTags(
CSharpSimplifyPropertyPatternDiagnosticAnalyzer.cs (1)
66syntaxContext.ReportDiagnostic(DiagnosticHelper.Create(
CSharpTypeStyleDiagnosticAnalyzerBase.cs (1)
73context.ReportDiagnostic(CreateDiagnostic(descriptor, declarationStatement, declaredType.StripRefIfNeeded().Span, typeStyle.Severity));
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)
48context.ReportDiagnostic(
CSharpUseImplicitObjectCreationDiagnosticAnalyzer.cs (1)
130context.ReportDiagnostic(DiagnosticHelper.Create(
CSharpUseInferredMemberNameDiagnosticAnalyzer.cs (2)
55context.ReportDiagnostic( 80context.ReportDiagnostic(
CSharpUseIsNullCheckForCastAndEqualityOperatorDiagnosticAnalyzer.cs (1)
65context.ReportDiagnostic(
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(
CSharpUsePatternCombinatorsDiagnosticAnalyzer.cs (1)
99context.ReportDiagnostic(DiagnosticHelper.Create(
CSharpUseTupleSwapDiagnosticAnalyzer.cs (1)
122syntaxContext.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 (1)
80context.ReportDiagnostic(diagnostic);
UseExpressionBodyForLambdaDiagnosticAnalyzer.cs (1)
63context.ReportDiagnostic(diagnostic);
UsePatternMatching\CSharpIsAndCastCheckWithoutNameDiagnosticAnalyzer.cs (1)
100context.ReportDiagnostic(
UseSimpleUsingStatementDiagnosticAnalyzer.cs (1)
120context.ReportDiagnostic(DiagnosticHelper.Create(
Microsoft.CodeAnalysis.CSharp.Symbol.UnitTests (2)
Symbols\Source\NullablePublicAPITests.cs (2)
1169syntaxContext.ReportDiagnostic(CodeAnalysis.Diagnostic.Create(s_descriptor1, syntaxContext.Node.GetLocation(), syntaxContext.Node, info.Nullability.FlowState, info.Nullability.Annotation, specInfo.Nullability.FlowState)); 1177context.ReportDiagnostic(CodeAnalysis.Diagnostic.Create(s_descriptor2, declarator.GetLocation(), declaredSymbol.Name, declaredSymbol.NullableAnnotation));
Microsoft.CodeAnalysis.EditorFeatures2.UnitTests (4)
Diagnostics\DiagnosticServiceTests.vb (4)
1413context.ReportDiagnostic(Diagnostic.Create(Descriptor1, fieldDecl.GetLocation, fieldDecl.ToString())) 1871context.ReportDiagnostic(CodeAnalysis.Diagnostic.Create(Descriptor2, context.Node.GetLocation())) 1875context.ReportDiagnostic(CodeAnalysis.Diagnostic.Create(Descriptor3, context.Node.GetLocation())) 1894context.ReportDiagnostic(Diagnostic.Create(descriptor, context.Node.GetLocation))
Microsoft.CodeAnalysis.Features (25)
AbstractAddRequiredParenthesesDiagnosticAnalyzer.cs (1)
146context.ReportDiagnostic(DiagnosticHelper.Create(
AbstractForEachCastDiagnosticAnalyzer.cs (1)
129context.ReportDiagnostic(DiagnosticHelper.Create(
AbstractMatchFolderAndNamespaceDiagnosticAnalyzer.cs (1)
82context.ReportDiagnostic(Diagnostic.Create(
AbstractRemoveUnnecessaryCastDiagnosticAnalyzer.cs (1)
49context.ReportDiagnostic(diagnostic);
AbstractRemoveUnnecessaryParenthesesDiagnosticAnalyzer.cs (1)
115context.ReportDiagnostic(DiagnosticHelper.CreateWithLocationTags(
AbstractSimplifyConditionalDiagnosticAnalyzer.cs (1)
140=> context.ReportDiagnostic(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(
AbstractUseIsNullForReferenceEqualsDiagnosticAnalyzer.cs (1)
141context.ReportDiagnostic(
AbstractUseNullPropagationDiagnosticAnalyzer.cs (1)
187context.ReportDiagnostic(DiagnosticHelper.Create(
AbstractUseNullPropagationDiagnosticAnalyzer_IfStatement.cs (1)
94context.ReportDiagnostic(DiagnosticHelper.Create(
AbstractUseObjectInitializerDiagnosticAnalyzer.cs (3)
110context.ReportDiagnostic(DiagnosticHelper.Create( 140context.ReportDiagnostic(DiagnosticHelper.CreateWithLocationTags( 150context.ReportDiagnostic(Diagnostic.Create(
AbstractValidateFormatStringDiagnosticAnalyzer.cs (1)
361context.ReportDiagnostic(diagnostic);
Diagnostics\Analyzers\UnboundIdentifiersDiagnosticAnalyzerBase.cs (1)
86context.ReportDiagnostic(Diagnostic.Create(DiagnosticDescriptor, typeName.GetLocation(), typeName.ToString()));
NamingStyleDiagnosticAnalyzerBase.cs (1)
96syntaxContext.ReportDiagnostic(diagnostic);
PreferFrameworkType\PreferFrameworkTypeDiagnosticAnalyzerBase.cs (1)
103context.ReportDiagnostic(DiagnosticHelper.Create(
SimplifyThisOrMe\AbstractSimplifyThisOrMeDiagnosticAnalyzer.cs (1)
75context.ReportDiagnostic(DiagnosticHelper.Create(
Microsoft.CodeAnalysis.Test.Utilities (10)
Diagnostics\CommonDiagnosticAnalyzers.cs (5)
572syntaxNodeContext.ReportDiagnostic(Diagnostic.Create(DiagnosticDescriptor, syntaxNodeContext.Node.GetLocation())); 602context.ReportDiagnostic(Diagnostic.Create(Rule, context.Node.GetLocation())); 642context.ReportDiagnostic(Diagnostic.Create(Rule, context.Node.GetLocation())); 2556context => context.ReportDiagnostic(Diagnostic.Create(Descriptor, context.Node.GetLocation())), 2611context.RegisterSyntaxNodeAction(context => HandleCallback(context.Node.GetLocation(), context.Compilation, context.ReportDiagnostic, context.CancellationToken), CodeAnalysis.CSharp.SyntaxKind.ClassDeclaration);
Diagnostics\OperationTestAnalyzer.cs (3)
2023syntaxContext.ReportDiagnostic(Diagnostic.Create(AssignmentSyntaxDescriptor, syntaxContext.Node.GetLocation())); 2143syntaxContext.ReportDiagnostic(Diagnostic.Create(GetOperationDescriptor, node.GetLocation())); 2155syntaxContext.ReportDiagnostic(Diagnostic.Create(GetOperationDescriptor, node.GetLocation()));
Diagnostics\SuppressMessageAttributeTests.DiagnosticAnalyzers.cs (2)
160context.ReportDiagnostic(CodeAnalysis.Diagnostic.Create(s_rule, context.Node.GetLocation(), messageArgs: context.Node.ToFullString())); 179context.ReportDiagnostic(CodeAnalysis.Diagnostic.Create(s_rule, context.Node.GetLocation(), messageArgs: context.Node.ToFullString()));
Microsoft.CodeAnalysis.VisualBasic.CodeStyle (6)
VisualBasicRemoveUnnecessaryAttributeSuppressionsDiagnosticAnalyzer.vb (1)
21compilationAnalyzer.AnalyzeAssemblyOrModuleAttribute(attribute, syntaxContext.SemanticModel, AddressOf syntaxContext.ReportDiagnostic, syntaxContext.CancellationToken)
VisualBasicRemoveUnnecessaryByValDiagnosticAnalyzer.vb (1)
29syntaxContext.ReportDiagnostic(Diagnostic.Create(Descriptor, modifier.GetLocation(), additionalLocations:={parameterSyntax.GetLocation()}))
VisualBasicSimplifyObjectCreationDiagnosticAnalyzer.vb (1)
57context.ReportDiagnostic(DiagnosticHelper.Create(Descriptor, variableDeclarator.GetLocation(), styleOption.Notification.Severity,
VisualBasicUseInferredMemberNameDiagnosticAnalyzer.vb (2)
53context.ReportDiagnostic( 76context.ReportDiagnostic(
VisualBasicUseIsNotDiagnosticAnalyzer.vb (1)
71syntaxContext.ReportDiagnostic(DiagnosticHelper.Create(
Microsoft.CodeAnalysis.VisualBasic.CommandLine.UnitTests (3)
CommandLineTests.vb (3)
10628context.ReportDiagnostic(Diagnostic.Create(Hidden01, context.Node.GetLocation())) 10653context.ReportDiagnostic(Diagnostic.Create(Info01, context.Node.GetLocation())) 10704context.ReportDiagnostic(Diagnostic.Create(Error01, context.Node.GetLocation()))
Microsoft.CodeAnalysis.VisualBasic.EditorFeatures.UnitTests (17)
Diagnostics\Configuration\ConfigureSeverity\DotNetDiagnosticSeverityBasedSeverityConfigurationTests.vb (1)
35Sub(c) c.ReportDiagnostic(Diagnostic.Create(Rule, c.Node.GetLocation())),
Diagnostics\Suppression\SuppressionTests.vb (16)
711context.ReportDiagnostic(Diagnostic.Create(_descriptor, classDecl.Identifier.GetLocation())) 784context.ReportDiagnostic(Diagnostic.Create(_descriptor, classDecl.Identifier.GetLocation())) 828context.ReportDiagnostic(Diagnostic.Create(_descriptor, classDecl.Identifier.GetLocation())) 892context.ReportDiagnostic(Diagnostic.Create(_descriptor, classDecl.Identifier.GetLocation())) 1012context.ReportDiagnostic(Diagnostic.Create(_descriptor, classDecl.Identifier.GetLocation())) 1017context.ReportDiagnostic(Diagnostic.Create(_descriptor, ns.Name.GetLocation())) 1022context.ReportDiagnostic(Diagnostic.Create(_descriptor, method.Identifier.GetLocation())) 1027context.ReportDiagnostic(Diagnostic.Create(_descriptor, p.Identifier.GetLocation())) 1032context.ReportDiagnostic(Diagnostic.Create(_descriptor, f.Declarators.First().Names.First.GetLocation())) 1037context.ReportDiagnostic(Diagnostic.Create(_descriptor, e.Identifier.GetLocation())) 1728context.ReportDiagnostic(Diagnostic.Create(_descriptor, classDecl.Identifier.GetLocation())) 1733context.ReportDiagnostic(Diagnostic.Create(_descriptor, ns.Name.GetLocation())) 1738context.ReportDiagnostic(Diagnostic.Create(_descriptor, method.Identifier.GetLocation())) 1743context.ReportDiagnostic(Diagnostic.Create(_descriptor, p.Identifier.GetLocation())) 1748context.ReportDiagnostic(Diagnostic.Create(_descriptor, f.Declarators.First().Names.First.GetLocation())) 1753context.ReportDiagnostic(Diagnostic.Create(_descriptor, e.Identifier.GetLocation()))
Microsoft.CodeAnalysis.VisualBasic.Features (6)
VisualBasicRemoveUnnecessaryAttributeSuppressionsDiagnosticAnalyzer.vb (1)
21compilationAnalyzer.AnalyzeAssemblyOrModuleAttribute(attribute, syntaxContext.SemanticModel, AddressOf syntaxContext.ReportDiagnostic, syntaxContext.CancellationToken)
VisualBasicRemoveUnnecessaryByValDiagnosticAnalyzer.vb (1)
29syntaxContext.ReportDiagnostic(Diagnostic.Create(Descriptor, modifier.GetLocation(), additionalLocations:={parameterSyntax.GetLocation()}))
VisualBasicSimplifyObjectCreationDiagnosticAnalyzer.vb (1)
57context.ReportDiagnostic(DiagnosticHelper.Create(Descriptor, variableDeclarator.GetLocation(), styleOption.Notification.Severity,
VisualBasicUseInferredMemberNameDiagnosticAnalyzer.vb (2)
53context.ReportDiagnostic( 76context.ReportDiagnostic(
VisualBasicUseIsNotDiagnosticAnalyzer.vb (1)
71syntaxContext.ReportDiagnostic(DiagnosticHelper.Create(
Microsoft.CodeAnalysis.VisualBasic.Semantic.UnitTests (6)
Diagnostics\DiagnosticAnalyzerTests.vb (5)
42context.ReportDiagnostic(CodeAnalysis.Diagnostic.Create(s_CA9999_UseOfVariableThatStartsWithX, id.GetLocation, id.Identifier.ValueText)) 279context.ReportDiagnostic(CodeAnalysis.Diagnostic.Create(desc1, context.Node.GetLocation)) 368context.ReportDiagnostic(CodeAnalysis.Diagnostic.Create(desc1, location)) 576context.ReportDiagnostic(CodeAnalysis.Diagnostic.Create(desc1, sourceLoc)) 962nodeContext.ReportDiagnostic(CodeAnalysis.Diagnostic.Create(ExpressionDescriptor, nodeContext.Node.GetLocation()))
Diagnostics\GetDiagnosticsTests.vb (1)
628AnalyzeNode(context.Node, context.ContainingSymbol, AddressOf context.ReportDiagnostic)
Microsoft.CodeAnalysis.VisualBasic.Syntax.UnitTests (1)
Parser\ParseDirectives.vb (1)
3174context.ReportDiagnostic(_reporter(context.Node, _descriptor))
Microsoft.CodeAnalysis.Workspaces.UnitTests (1)
BatchFixAllProviderTests.cs (1)
74context.ReportDiagnostic(Diagnostic.Create(Descriptor, node.Token.GetLocation()));