1 instantiation of SyntaxNodeAnalysisContext
Microsoft.CodeAnalysis (1)
DiagnosticAnalyzer\AnalyzerExecutor.cs (1)
650
var syntaxNodeContext = new
SyntaxNodeAnalysisContext
(node, containingSymbol, semanticModel, AnalyzerOptions, addDiagnostic,
352 references to SyntaxNodeAnalysisContext
ILLink.RoslynAnalyzer (2)
RequiresAnalyzerBase.cs (2)
37
private protected virtual ImmutableArray<(Action<
SyntaxNodeAnalysisContext
> Action, SyntaxKind[] SyntaxKind)> ExtraSyntaxNodeActions { get; } = ImmutableArray<(Action<
SyntaxNodeAnalysisContext
> Action, SyntaxKind[] SyntaxKind)>.Empty;
Microsoft.Analyzers.Local (1)
InternalReferencedInPublicDocAnalyzer.cs (1)
114
private void ValidateCref(
SyntaxNodeAnalysisContext
context)
Microsoft.AspNetCore.App.Analyzers (1)
Kestrel\ListenOnIPv6AnyAnalyzer.cs (1)
27
private void KestrelServerOptionsListenInvocation(
SyntaxNodeAnalysisContext
context)
Microsoft.CodeAnalysis (16)
DiagnosticAnalyzer\AnalyzerExecutor.cs (1)
650
var
syntaxNodeContext = new SyntaxNodeAnalysisContext(node, containingSymbol, semanticModel, AnalyzerOptions, addDiagnostic,
DiagnosticAnalyzer\DiagnosticAnalysisContext.cs (9)
140
public void RegisterSyntaxNodeAction<TLanguageKindEnum>(Action<
SyntaxNodeAnalysisContext
> action, params TLanguageKindEnum[] syntaxKinds) where TLanguageKindEnum : struct
153
public abstract void RegisterSyntaxNodeAction<TLanguageKindEnum>(Action<
SyntaxNodeAnalysisContext
> action, ImmutableArray<TLanguageKindEnum> syntaxKinds) where TLanguageKindEnum : struct;
456
public void RegisterSyntaxNodeAction<TLanguageKindEnum>(Action<
SyntaxNodeAnalysisContext
> action, params TLanguageKindEnum[] syntaxKinds) where TLanguageKindEnum : struct
469
public abstract void RegisterSyntaxNodeAction<TLanguageKindEnum>(Action<
SyntaxNodeAnalysisContext
> action, ImmutableArray<TLanguageKindEnum> syntaxKinds) where TLanguageKindEnum : struct;
953
public void RegisterSyntaxNodeAction<TLanguageKindEnum>(Action<
SyntaxNodeAnalysisContext
> action, params TLanguageKindEnum[] syntaxKinds) where TLanguageKindEnum : struct
966
public abstract void RegisterSyntaxNodeAction<TLanguageKindEnum>(Action<
SyntaxNodeAnalysisContext
> action, ImmutableArray<TLanguageKindEnum> syntaxKinds) where TLanguageKindEnum : struct;
1107
public void RegisterSyntaxNodeAction(Action<
SyntaxNodeAnalysisContext
> action, params TLanguageKindEnum[] syntaxKinds)
1119
public abstract void RegisterSyntaxNodeAction(Action<
SyntaxNodeAnalysisContext
> action, ImmutableArray<TLanguageKindEnum> syntaxKinds);
1656
/// A syntax node action can use a <see cref="
SyntaxNodeAnalysisContext
"/> to report <see cref="Diagnostic"/>s for a <see cref="SyntaxNode"/>.
DiagnosticAnalyzer\DiagnosticAnalyzerAction.cs (2)
60
public Action<
SyntaxNodeAnalysisContext
> Action { get; }
63
public SyntaxNodeAnalyzerAction(Action<
SyntaxNodeAnalysisContext
> action, ImmutableArray<TLanguageKindEnum> kinds, DiagnosticAnalyzer analyzer)
DiagnosticAnalyzer\DiagnosticStartAnalysisScope.cs (4)
84
public override void RegisterSyntaxNodeAction<TLanguageKindEnum>(Action<
SyntaxNodeAnalysisContext
> action, ImmutableArray<TLanguageKindEnum> syntaxKinds)
189
public override void RegisterSyntaxNodeAction<TLanguageKindEnum>(Action<
SyntaxNodeAnalysisContext
> action, ImmutableArray<TLanguageKindEnum> syntaxKinds)
259
public override void RegisterSyntaxNodeAction<TLanguageKindEnum>(Action<
SyntaxNodeAnalysisContext
> action, ImmutableArray<TLanguageKindEnum> syntaxKinds)
311
public override void RegisterSyntaxNodeAction(Action<
SyntaxNodeAnalysisContext
> action, ImmutableArray<TLanguageKindEnum> syntaxKinds)
Microsoft.CodeAnalysis.CodeStyle (32)
src\Analyzers\Core\Analyzers\AbstractBuiltInCodeStyleDiagnosticAnalyzer_Core.cs (1)
93
protected bool ShouldSkipAnalysis(
SyntaxNodeAnalysisContext
context, NotificationOption2? notification)
src\Analyzers\Core\Analyzers\AddRequiredParentheses\AbstractAddRequiredParenthesesDiagnosticAnalyzer.cs (2)
87
private void AnalyzeSyntax(
SyntaxNodeAnalysisContext
context)
134
SyntaxNodeAnalysisContext
context, TBinaryLikeExpressionSyntax? binaryLikeOpt, int precedence,
src\Analyzers\Core\Analyzers\ForEachCast\AbstractForEachCastDiagnosticAnalyzer.cs (1)
51
private void AnalyzeSyntax(
SyntaxNodeAnalysisContext
context)
src\Analyzers\Core\Analyzers\MatchFolderAndNamespace\AbstractMatchFolderAndNamespaceDiagnosticAnalyzer.cs (1)
52
private void AnalyzeNamespaceNode(
SyntaxNodeAnalysisContext
context)
src\Analyzers\Core\Analyzers\NamingStyle\NamingStyleDiagnosticAnalyzerBase.cs (1)
80
void SyntaxNodeAction(
SyntaxNodeAnalysisContext
syntaxContext)
src\Analyzers\Core\Analyzers\RemoveUnnecessaryCast\AbstractRemoveUnnecessaryCastDiagnosticAnalyzer.cs (1)
40
private void AnalyzeSyntax(
SyntaxNodeAnalysisContext
context)
src\Analyzers\Core\Analyzers\RemoveUnnecessaryParentheses\AbstractRemoveUnnecessaryParenthesesDiagnosticAnalyzer.cs (1)
47
private void AnalyzeSyntax(
SyntaxNodeAnalysisContext
context)
src\Analyzers\Core\Analyzers\SimplifyBooleanExpression\AbstractSimplifyConditionalDiagnosticAnalyzer.cs (1)
64
private void AnalyzeConditionalExpression(
SyntaxNodeAnalysisContext
context)
src\Analyzers\Core\Analyzers\UseAutoProperty\AbstractUseAutoPropertyAnalyzer.cs (1)
334
SyntaxNodeAnalysisContext
context,
src\Analyzers\Core\Analyzers\UseCoalesceExpression\AbstractUseCoalesceExpressionForIfNullCheckDiagnosticAnalyzer.cs (1)
49
private void AnalyzeSyntax(
SyntaxNodeAnalysisContext
context)
src\Analyzers\Core\Analyzers\UseCoalesceExpression\AbstractUseCoalesceExpressionForNullableTernaryConditionalCheckDiagnosticAnalyzer.cs (1)
52
private void AnalyzeSyntax(
SyntaxNodeAnalysisContext
context)
src\Analyzers\Core\Analyzers\UseCoalesceExpression\AbstractUseCoalesceExpressionForTernaryConditionalCheckDiagnosticAnalyzer.cs (1)
47
private void AnalyzeSyntax(
SyntaxNodeAnalysisContext
context)
src\Analyzers\Core\Analyzers\UseCollectionInitializer\AbstractUseCollectionInitializerDiagnosticAnalyzer.cs (2)
126
SyntaxNodeAnalysisContext
context,
243
SyntaxNodeAnalysisContext
context,
src\Analyzers\Core\Analyzers\UseCompoundAssignment\AbstractUseCompoundAssignmentDiagnosticAnalyzer.cs (1)
74
private void AnalyzeAssignment(
SyntaxNodeAnalysisContext
context)
src\Analyzers\Core\Analyzers\UseInferredMemberName\AbstractUseInferredMemberNameDiagnosticAnalyzer.cs (1)
12
protected abstract void AnalyzeSyntax(
SyntaxNodeAnalysisContext
context);
src\Analyzers\Core\Analyzers\UseIsNullCheck\AbstractUseIsNullForReferenceEqualsDiagnosticAnalyzer.cs (1)
56
private void AnalyzeSyntax(
SyntaxNodeAnalysisContext
context, IMethodSymbol referenceEqualsMethod, bool unconstraintedGenericSupported)
src\Analyzers\Core\Analyzers\UseNullPropagation\AbstractUseNullPropagationDiagnosticAnalyzer.cs (3)
111
SyntaxNodeAnalysisContext
context,
213
SyntaxNodeAnalysisContext
context,
268
SyntaxNodeAnalysisContext
context,
src\Analyzers\Core\Analyzers\UseNullPropagation\AbstractUseNullPropagationDiagnosticAnalyzer_IfStatement.cs (1)
29
SyntaxNodeAnalysisContext
context,
src\Analyzers\Core\Analyzers\UseObjectInitializer\AbstractUseObjectInitializerDiagnosticAnalyzer.cs (2)
93
private void AnalyzeNode(
SyntaxNodeAnalysisContext
context)
137
SyntaxNodeAnalysisContext
context,
src\Analyzers\Core\Analyzers\ValidateFormatString\AbstractValidateFormatStringDiagnosticAnalyzer.cs (2)
89
private void AnalyzeNode(
SyntaxNodeAnalysisContext
context, INamedTypeSymbol formatProviderType)
332
SyntaxNodeAnalysisContext
context,
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Diagnostics\DiagnosticAnalyzerCategory.cs (2)
20
/// it registers a <see cref="AnalysisContext.RegisterSyntaxNodeAction{TLanguageKindEnum}(Action{
SyntaxNodeAnalysisContext
}, TLanguageKindEnum[])"/> and then ends
21
/// up needing to use the <see cref="
SyntaxNodeAnalysisContext
.SemanticModel"/>. If a
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Extensions\AnalysisContextExtensions.cs (4)
120
/// - <see cref="
SyntaxNodeAnalysisContext
.FilterSpan"/> is <see langword="null"/> (we are analyzing the entire tree)
122
/// - <paramref name="span"/> intersects with <see cref="
SyntaxNodeAnalysisContext
.FilterSpan"/>.
124
public static bool ShouldAnalyzeSpan(this
SyntaxNodeAnalysisContext
context, TextSpan span)
204
public static SyntaxNode GetAnalysisRoot(this
SyntaxNodeAnalysisContext
context, bool findInTrivia, bool getInnermostNodeForTie = false)
Microsoft.CodeAnalysis.CSharp.CodeStyle (64)
src\Analyzers\CSharp\Analyzers\AddBraces\CSharpAddBracesDiagnosticAnalyzer.cs (1)
47
public void AnalyzeNode(
SyntaxNodeAnalysisContext
context)
src\Analyzers\CSharp\Analyzers\ConvertNamespace\ConvertToBlockScopedNamespaceDiagnosticAnalyzer.cs (2)
32
private void AnalyzeNamespace(
SyntaxNodeAnalysisContext
context)
41
private Diagnostic? AnalyzeNamespace(
SyntaxNodeAnalysisContext
context, FileScopedNamespaceDeclarationSyntax declaration)
src\Analyzers\CSharp\Analyzers\ConvertNamespace\ConvertToFileScopedNamespaceDiagnosticAnalyzer.cs (2)
32
private void AnalyzeNamespace(
SyntaxNodeAnalysisContext
context)
45
private Diagnostic? AnalyzeNamespace(
SyntaxNodeAnalysisContext
context, CompilationUnitSyntax root, BaseNamespaceDeclarationSyntax declaration)
src\Analyzers\CSharp\Analyzers\ConvertProgram\ConvertToProgramMainDiagnosticAnalyzer.cs (1)
42
private void ProcessCompilationUnit(
SyntaxNodeAnalysisContext
context)
src\Analyzers\CSharp\Analyzers\ConvertProgram\ConvertToTopLevelStatementsDiagnosticAnalyzer.cs (1)
48
private void ProcessCompilationUnit(
SyntaxNodeAnalysisContext
context)
src\Analyzers\CSharp\Analyzers\ConvertSwitchStatementToExpression\ConvertSwitchStatementToExpressionDiagnosticAnalyzer.cs (1)
41
private void AnalyzeSyntax(
SyntaxNodeAnalysisContext
context)
src\Analyzers\CSharp\Analyzers\InlineDeclaration\CSharpInlineDeclarationDiagnosticAnalyzer.cs (1)
64
private void AnalyzeSyntaxNode(
SyntaxNodeAnalysisContext
context, INamedTypeSymbol? expressionType)
src\Analyzers\CSharp\Analyzers\InvokeDelegateWithConditionalAccess\InvokeDelegateWithConditionalAccessAnalyzer.cs (4)
38
private void SyntaxNodeAction(
SyntaxNodeAnalysisContext
syntaxContext)
112
SyntaxNodeAnalysisContext
context,
167
SyntaxNodeAnalysisContext
syntaxContext,
218
SyntaxNodeAnalysisContext
syntaxContext,
src\Analyzers\CSharp\Analyzers\MakeAnonymousFunctionStatic\MakeAnonymousFunctionStaticDiagnosticAnalyzer.cs (1)
39
private void AnalyzeSyntax(
SyntaxNodeAnalysisContext
context)
src\Analyzers\CSharp\Analyzers\MakeLocalFunctionStatic\MakeLocalFunctionStaticDiagnosticAnalyzer.cs (1)
36
private void AnalyzeSyntax(
SyntaxNodeAnalysisContext
context)
src\Analyzers\CSharp\Analyzers\MisplacedUsingDirectives\MisplacedUsingDirectivesDiagnosticAnalyzer.cs (3)
57
private void AnalyzeNamespaceNode(
SyntaxNodeAnalysisContext
context)
70
private void AnalyzeCompilationUnitNode(
SyntaxNodeAnalysisContext
context)
99
SyntaxNodeAnalysisContext
context, DiagnosticDescriptor descriptor,
src\Analyzers\CSharp\Analyzers\NewLines\ConditionalExpressionPlacement\ConditionalExpressionPlacementDiagnosticAnalyzer.cs (1)
35
private void ProcessConditionalExpression(
SyntaxNodeAnalysisContext
context)
src\Analyzers\CSharp\Analyzers\RemoveConfusingSuppression\CSharpRemoveConfusingSuppressionDiagnosticAnalyzer.cs (1)
30
private void AnalyzeSyntax(
SyntaxNodeAnalysisContext
context)
src\Analyzers\CSharp\Analyzers\RemoveUnnecessaryDiscardDesignation\CSharpRemoveUnnecessaryDiscardDesignationDiagnosticAnalyzer.cs (1)
45
private void AnalyzeDiscardDesignation(
SyntaxNodeAnalysisContext
context)
src\Analyzers\CSharp\Analyzers\RemoveUnnecessaryLambdaExpression\CSharpRemoveUnnecessaryLambdaExpressionDiagnosticAnalyzer.cs (1)
56
private void AnalyzeSyntax(
SyntaxNodeAnalysisContext
context, INamedTypeSymbol? expressionType, INamedTypeSymbol? conditionalAttributeType)
src\Analyzers\CSharp\Analyzers\SimplifyLinqExpression\CSharpSimplifyLinqTypeCheckAndCastDiagnosticAnalyzer.cs (1)
178
SyntaxNodeAnalysisContext
context, INamedTypeSymbol enumerableType)
src\Analyzers\CSharp\Analyzers\SimplifyPropertyPattern\CSharpSimplifyPropertyPatternDiagnosticAnalyzer.cs (1)
52
private void AnalyzeSubpattern(
SyntaxNodeAnalysisContext
syntaxContext)
src\Analyzers\CSharp\Analyzers\UseCollectionExpression\CSharpUseCollectionExpressionForArrayDiagnosticAnalyzer.cs (3)
35
private void AnalyzeArrayCreationExpression(
SyntaxNodeAnalysisContext
context, INamedTypeSymbol? expressionType)
138
private void AnalyzeArrayInitializerExpression(
SyntaxNodeAnalysisContext
context, INamedTypeSymbol? expressionType)
205
SyntaxNodeAnalysisContext
context, SyntaxTree syntaxTree, NotificationOption2 notification, ExpressionSyntax expression, bool changesSemantics)
src\Analyzers\CSharp\Analyzers\UseCollectionExpression\CSharpUseCollectionExpressionForBuilderDiagnosticAnalyzer.cs (2)
36
SyntaxNodeAnalysisContext
context,
66
void FadeOutCode(
SyntaxNodeAnalysisContext
context, AnalysisResult analysisResult, ImmutableArray<Location> locations)
src\Analyzers\CSharp\Analyzers\UseCollectionExpression\CSharpUseCollectionExpressionForCreateDiagnosticAnalyzer.cs (1)
26
private void AnalyzeInvocationExpression(
SyntaxNodeAnalysisContext
context, INamedTypeSymbol? expressionType)
src\Analyzers\CSharp\Analyzers\UseCollectionExpression\CSharpUseCollectionExpressionForEmptyDiagnosticAnalyzer.cs (1)
27
private void AnalyzeMemberAccess(
SyntaxNodeAnalysisContext
context, INamedTypeSymbol? expressionType)
src\Analyzers\CSharp\Analyzers\UseCollectionExpression\CSharpUseCollectionExpressionForFluentDiagnosticAnalyzer.cs (1)
69
private void AnalyzeMemberAccess(
SyntaxNodeAnalysisContext
context, INamedTypeSymbol? expressionType)
src\Analyzers\CSharp\Analyzers\UseCollectionExpression\CSharpUseCollectionExpressionForNewDiagnosticAnalyzer.cs (3)
31
private void AnalyzeObjectCreationExpression(
SyntaxNodeAnalysisContext
context, INamedTypeSymbol? expressionType)
34
private void AnalyzeImplicitObjectCreationExpression(
SyntaxNodeAnalysisContext
context, INamedTypeSymbol? expressionType)
38
SyntaxNodeAnalysisContext
context, BaseObjectCreationExpressionSyntax objectCreationExpression, INamedTypeSymbol? expressionType)
src\Analyzers\CSharp\Analyzers\UseCollectionExpression\CSharpUseCollectionExpressionForStackAllocDiagnosticAnalyzer.cs (2)
41
private void AnalyzeImplicitStackAllocExpression(
SyntaxNodeAnalysisContext
context, INamedTypeSymbol? expressionType)
83
private void AnalyzeExplicitStackAllocExpression(
SyntaxNodeAnalysisContext
context, INamedTypeSymbol? expressionType)
src\Analyzers\CSharp\Analyzers\UseCompoundAssignment\CSharpUseCompoundCoalesceAssignmentDiagnosticAnalyzer.cs (2)
54
private void AnalyzeCoalesceExpression(
SyntaxNodeAnalysisContext
context)
120
private void AnalyzeIfStatement(
SyntaxNodeAnalysisContext
context)
src\Analyzers\CSharp\Analyzers\UseDeconstruction\CSharpUseDeconstructionDiagnosticAnalyzer.cs (3)
42
private void AnalyzeNode(
SyntaxNodeAnalysisContext
context)
60
SyntaxNodeAnalysisContext
context, VariableDeclarationSyntax variableDeclaration, NotificationOption2 notificationOption)
75
SyntaxNodeAnalysisContext
context, ForEachStatementSyntax forEachStatement, NotificationOption2 notificationOption)
src\Analyzers\CSharp\Analyzers\UseDefaultLiteral\CSharpUseDefaultLiteralDiagnosticAnalyzer.cs (1)
34
private void AnalyzeSyntax(
SyntaxNodeAnalysisContext
context)
src\Analyzers\CSharp\Analyzers\UseExpressionBody\UseExpressionBodyDiagnosticAnalyzer.cs (2)
48
private void AnalyzeSyntax(
SyntaxNodeAnalysisContext
context)
90
CSharpCodeGenerationOptions options, SyntaxNode declaration,
SyntaxNodeAnalysisContext
context, UseExpressionBodyHelper helper, CancellationToken cancellationToken)
src\Analyzers\CSharp\Analyzers\UseExpressionBodyForLambda\UseExpressionBodyForLambdaDiagnosticAnalyzer.cs (2)
37
private void AnalyzeIfEnabled(
SyntaxNodeAnalysisContext
context)
60
private static void AnalyzeSyntax(
SyntaxNodeAnalysisContext
context, CodeStyleOption2<ExpressionBodyPreference> option)
src\Analyzers\CSharp\Analyzers\UseImplicitObjectCreation\CSharpUseImplicitObjectCreationDiagnosticAnalyzer.cs (1)
37
private void AnalyzeSyntax(
SyntaxNodeAnalysisContext
context)
src\Analyzers\CSharp\Analyzers\UseImplicitOrExplicitType\CSharpTypeStyleDiagnosticAnalyzerBase.cs (1)
32
private void HandleVariableDeclaration(
SyntaxNodeAnalysisContext
context)
src\Analyzers\CSharp\Analyzers\UseInferredMemberName\CSharpUseInferredMemberNameDiagnosticAnalyzer.cs (3)
24
protected override void AnalyzeSyntax(
SyntaxNodeAnalysisContext
context)
37
private void ReportDiagnosticsIfNeeded(NameColonSyntax nameColon,
SyntaxNodeAnalysisContext
context)
66
private void ReportDiagnosticsIfNeeded(NameEqualsSyntax nameEquals,
SyntaxNodeAnalysisContext
context)
src\Analyzers\CSharp\Analyzers\UseIsNullCheck\CSharpUseIsNullCheckForCastAndEqualityOperatorDiagnosticAnalyzer.cs (1)
44
private void AnalyzeSyntax(
SyntaxNodeAnalysisContext
context)
src\Analyzers\CSharp\Analyzers\UseLocalFunction\CSharpUseLocalFunctionDiagnosticAnalyzer.cs (2)
77
private void SyntaxNodeAction(
SyntaxNodeAnalysisContext
syntaxContext, INamedTypeSymbol? expressionType)
175
SyntaxNodeAnalysisContext
context,
src\Analyzers\CSharp\Analyzers\UseNameofInNullableAttribute\CSharpUseNameofInNullableAttributeDiagnosticAnalyzer.cs (1)
52
private void AnalyzeAttribute(
SyntaxNodeAnalysisContext
context)
src\Analyzers\CSharp\Analyzers\UsePatternCombinators\CSharpUsePatternCombinatorsDiagnosticAnalyzer.cs (1)
48
private void AnalyzeNode(
SyntaxNodeAnalysisContext
context)
src\Analyzers\CSharp\Analyzers\UsePatternMatching\CSharpAsAndMemberAccessDiagnosticAnalyzer.cs (1)
53
private void AnalyzeAsExpression(
SyntaxNodeAnalysisContext
context)
src\Analyzers\CSharp\Analyzers\UsePatternMatching\CSharpAsAndNullCheckDiagnosticAnalyzer.cs (1)
54
private void SyntaxNodeAction(
SyntaxNodeAnalysisContext
syntaxContext)
src\Analyzers\CSharp\Analyzers\UsePatternMatching\CSharpIsAndCastCheckDiagnosticAnalyzer.cs (1)
65
private void SyntaxNodeAction(
SyntaxNodeAnalysisContext
syntaxContext)
src\Analyzers\CSharp\Analyzers\UsePatternMatching\CSharpUseNotPatternDiagnosticAnalyzer.cs (1)
51
SyntaxNodeAnalysisContext
context,
src\Analyzers\CSharp\Analyzers\UseSimpleUsingStatement\UseSimpleUsingStatementDiagnosticAnalyzer.cs (1)
77
private void AnalyzeSyntax(
SyntaxNodeAnalysisContext
context)
src\Analyzers\CSharp\Analyzers\UseTupleSwap\CSharpUseTupleSwapDiagnosticAnalyzer.cs (1)
62
private void AnalyzeLocalDeclarationStatement(
SyntaxNodeAnalysisContext
syntaxContext)
src\Analyzers\CSharp\Analyzers\UseUnboundGenericTypeInNameOf\CSharpUseUnboundGenericTypeInNameOfDiagnosticAnalyzer.cs (1)
57
private void AnalyzeInvocationExpression(
SyntaxNodeAnalysisContext
syntaxContext)
Microsoft.CodeAnalysis.CSharp.CommandLine.UnitTests (3)
CommandLineTests.cs (3)
14902
private static void AnalyzeFieldDeclaration(
SyntaxNodeAnalysisContext
context)
15944
private void AnalyzeNode(
SyntaxNodeAnalysisContext
context)
15968
private void AnalyzeNode(
SyntaxNodeAnalysisContext
context)
Microsoft.CodeAnalysis.CSharp.EditorFeatures.UnitTests (2)
Diagnostics\DiagnosticAnalyzerDriver\DiagnosticAnalyzerDriverTests.cs (1)
322
public static void AnalyzeNode(
SyntaxNodeAnalysisContext
context)
Diagnostics\FixAllProvider\BatchFixerTests.cs (1)
47
private static void AnalyzeNode(
SyntaxNodeAnalysisContext
context)
Microsoft.CodeAnalysis.CSharp.Emit3.UnitTests (39)
Diagnostics\DiagnosticAnalyzerTests.cs (8)
53
private static void AnalyzeNode(
SyntaxNodeAnalysisContext
context)
249
private void AnalyzeNode(
SyntaxNodeAnalysisContext
context)
665
private static void AnalyzeFieldDeclaration(
SyntaxNodeAnalysisContext
context)
775
Action<Action<
SyntaxNodeAnalysisContext
>, ImmutableArray<SyntaxKind>> registerMethod =
789
Action<Action<
SyntaxNodeAnalysisContext
>, ImmutableArray<SyntaxKind>> registerMethod =
797
public void Initialize(Action<Action<
SyntaxNodeAnalysisContext
>, ImmutableArray<SyntaxKind>> registerSyntaxNodeAction)
4084
private static void AnalyzeRecordDeclaration(
SyntaxNodeAnalysisContext
context)
4129
private void AnalyzePrimaryConstructorBaseType(
SyntaxNodeAnalysisContext
context)
Semantics\OutVarTests.cs (1)
18809
private void Handle(
SyntaxNodeAnalysisContext
context)
Semantics\PrimaryConstructorTests.cs (20)
3766
protected void Handle1(
SyntaxNodeAnalysisContext
context)
3805
protected void Handle2(
SyntaxNodeAnalysisContext
context)
3831
protected void Handle3(
SyntaxNodeAnalysisContext
context)
3849
protected void Handle4(
SyntaxNodeAnalysisContext
context)
3855
protected void Handle5(
SyntaxNodeAnalysisContext
context)
3880
protected void Handle6(
SyntaxNodeAnalysisContext
context)
3907
protected void Handle7(
SyntaxNodeAnalysisContext
context)
3945
protected void Handle8(
SyntaxNodeAnalysisContext
context)
3989
protected void Handle9(
SyntaxNodeAnalysisContext
context)
4015
protected void Handle10(
SyntaxNodeAnalysisContext
context)
5268
protected void Handle1(
SyntaxNodeAnalysisContext
context)
5294
protected void Handle2(
SyntaxNodeAnalysisContext
context)
5312
protected void Handle3(
SyntaxNodeAnalysisContext
context)
5330
protected void Handle4(
SyntaxNodeAnalysisContext
context)
5336
protected void Fail(
SyntaxNodeAnalysisContext
context)
5341
protected void Handle6(
SyntaxNodeAnalysisContext
context)
5359
protected void Handle7(
SyntaxNodeAnalysisContext
context)
5372
protected void Handle8(
SyntaxNodeAnalysisContext
context)
5399
protected void Handle9(
SyntaxNodeAnalysisContext
context)
5421
protected void Handle10(
SyntaxNodeAnalysisContext
context)
Semantics\RecordTests.cs (10)
26251
protected void Handle1(
SyntaxNodeAnalysisContext
context)
26290
protected void Handle2(
SyntaxNodeAnalysisContext
context)
26316
protected void Handle3(
SyntaxNodeAnalysisContext
context)
26334
protected void Handle4(
SyntaxNodeAnalysisContext
context)
26340
protected void Handle5(
SyntaxNodeAnalysisContext
context)
26365
protected void Handle6(
SyntaxNodeAnalysisContext
context)
26388
protected void Handle7(
SyntaxNodeAnalysisContext
context)
26426
protected void Handle8(
SyntaxNodeAnalysisContext
context)
26470
protected void Handle9(
SyntaxNodeAnalysisContext
context)
26496
protected void Handle10(
SyntaxNodeAnalysisContext
context)
Microsoft.CodeAnalysis.CSharp.Features (65)
src\Analyzers\CSharp\Analyzers\AddBraces\CSharpAddBracesDiagnosticAnalyzer.cs (1)
47
public void AnalyzeNode(
SyntaxNodeAnalysisContext
context)
src\Analyzers\CSharp\Analyzers\ConvertNamespace\ConvertToBlockScopedNamespaceDiagnosticAnalyzer.cs (2)
32
private void AnalyzeNamespace(
SyntaxNodeAnalysisContext
context)
41
private Diagnostic? AnalyzeNamespace(
SyntaxNodeAnalysisContext
context, FileScopedNamespaceDeclarationSyntax declaration)
src\Analyzers\CSharp\Analyzers\ConvertNamespace\ConvertToFileScopedNamespaceDiagnosticAnalyzer.cs (2)
32
private void AnalyzeNamespace(
SyntaxNodeAnalysisContext
context)
45
private Diagnostic? AnalyzeNamespace(
SyntaxNodeAnalysisContext
context, CompilationUnitSyntax root, BaseNamespaceDeclarationSyntax declaration)
src\Analyzers\CSharp\Analyzers\ConvertProgram\ConvertToProgramMainDiagnosticAnalyzer.cs (1)
42
private void ProcessCompilationUnit(
SyntaxNodeAnalysisContext
context)
src\Analyzers\CSharp\Analyzers\ConvertProgram\ConvertToTopLevelStatementsDiagnosticAnalyzer.cs (1)
48
private void ProcessCompilationUnit(
SyntaxNodeAnalysisContext
context)
src\Analyzers\CSharp\Analyzers\ConvertSwitchStatementToExpression\ConvertSwitchStatementToExpressionDiagnosticAnalyzer.cs (1)
41
private void AnalyzeSyntax(
SyntaxNodeAnalysisContext
context)
src\Analyzers\CSharp\Analyzers\InlineDeclaration\CSharpInlineDeclarationDiagnosticAnalyzer.cs (1)
64
private void AnalyzeSyntaxNode(
SyntaxNodeAnalysisContext
context, INamedTypeSymbol? expressionType)
src\Analyzers\CSharp\Analyzers\InvokeDelegateWithConditionalAccess\InvokeDelegateWithConditionalAccessAnalyzer.cs (4)
38
private void SyntaxNodeAction(
SyntaxNodeAnalysisContext
syntaxContext)
112
SyntaxNodeAnalysisContext
context,
167
SyntaxNodeAnalysisContext
syntaxContext,
218
SyntaxNodeAnalysisContext
syntaxContext,
src\Analyzers\CSharp\Analyzers\MakeAnonymousFunctionStatic\MakeAnonymousFunctionStaticDiagnosticAnalyzer.cs (1)
39
private void AnalyzeSyntax(
SyntaxNodeAnalysisContext
context)
src\Analyzers\CSharp\Analyzers\MakeLocalFunctionStatic\MakeLocalFunctionStaticDiagnosticAnalyzer.cs (1)
36
private void AnalyzeSyntax(
SyntaxNodeAnalysisContext
context)
src\Analyzers\CSharp\Analyzers\MisplacedUsingDirectives\MisplacedUsingDirectivesDiagnosticAnalyzer.cs (3)
57
private void AnalyzeNamespaceNode(
SyntaxNodeAnalysisContext
context)
70
private void AnalyzeCompilationUnitNode(
SyntaxNodeAnalysisContext
context)
99
SyntaxNodeAnalysisContext
context, DiagnosticDescriptor descriptor,
src\Analyzers\CSharp\Analyzers\NewLines\ConditionalExpressionPlacement\ConditionalExpressionPlacementDiagnosticAnalyzer.cs (1)
35
private void ProcessConditionalExpression(
SyntaxNodeAnalysisContext
context)
src\Analyzers\CSharp\Analyzers\RemoveConfusingSuppression\CSharpRemoveConfusingSuppressionDiagnosticAnalyzer.cs (1)
30
private void AnalyzeSyntax(
SyntaxNodeAnalysisContext
context)
src\Analyzers\CSharp\Analyzers\RemoveUnnecessaryDiscardDesignation\CSharpRemoveUnnecessaryDiscardDesignationDiagnosticAnalyzer.cs (1)
45
private void AnalyzeDiscardDesignation(
SyntaxNodeAnalysisContext
context)
src\Analyzers\CSharp\Analyzers\RemoveUnnecessaryLambdaExpression\CSharpRemoveUnnecessaryLambdaExpressionDiagnosticAnalyzer.cs (1)
56
private void AnalyzeSyntax(
SyntaxNodeAnalysisContext
context, INamedTypeSymbol? expressionType, INamedTypeSymbol? conditionalAttributeType)
src\Analyzers\CSharp\Analyzers\SimplifyLinqExpression\CSharpSimplifyLinqTypeCheckAndCastDiagnosticAnalyzer.cs (1)
178
SyntaxNodeAnalysisContext
context, INamedTypeSymbol enumerableType)
src\Analyzers\CSharp\Analyzers\SimplifyPropertyPattern\CSharpSimplifyPropertyPatternDiagnosticAnalyzer.cs (1)
52
private void AnalyzeSubpattern(
SyntaxNodeAnalysisContext
syntaxContext)
src\Analyzers\CSharp\Analyzers\UseCollectionExpression\CSharpUseCollectionExpressionForArrayDiagnosticAnalyzer.cs (3)
35
private void AnalyzeArrayCreationExpression(
SyntaxNodeAnalysisContext
context, INamedTypeSymbol? expressionType)
138
private void AnalyzeArrayInitializerExpression(
SyntaxNodeAnalysisContext
context, INamedTypeSymbol? expressionType)
205
SyntaxNodeAnalysisContext
context, SyntaxTree syntaxTree, NotificationOption2 notification, ExpressionSyntax expression, bool changesSemantics)
src\Analyzers\CSharp\Analyzers\UseCollectionExpression\CSharpUseCollectionExpressionForBuilderDiagnosticAnalyzer.cs (2)
36
SyntaxNodeAnalysisContext
context,
66
void FadeOutCode(
SyntaxNodeAnalysisContext
context, AnalysisResult analysisResult, ImmutableArray<Location> locations)
src\Analyzers\CSharp\Analyzers\UseCollectionExpression\CSharpUseCollectionExpressionForCreateDiagnosticAnalyzer.cs (1)
26
private void AnalyzeInvocationExpression(
SyntaxNodeAnalysisContext
context, INamedTypeSymbol? expressionType)
src\Analyzers\CSharp\Analyzers\UseCollectionExpression\CSharpUseCollectionExpressionForEmptyDiagnosticAnalyzer.cs (1)
27
private void AnalyzeMemberAccess(
SyntaxNodeAnalysisContext
context, INamedTypeSymbol? expressionType)
src\Analyzers\CSharp\Analyzers\UseCollectionExpression\CSharpUseCollectionExpressionForFluentDiagnosticAnalyzer.cs (1)
69
private void AnalyzeMemberAccess(
SyntaxNodeAnalysisContext
context, INamedTypeSymbol? expressionType)
src\Analyzers\CSharp\Analyzers\UseCollectionExpression\CSharpUseCollectionExpressionForNewDiagnosticAnalyzer.cs (3)
31
private void AnalyzeObjectCreationExpression(
SyntaxNodeAnalysisContext
context, INamedTypeSymbol? expressionType)
34
private void AnalyzeImplicitObjectCreationExpression(
SyntaxNodeAnalysisContext
context, INamedTypeSymbol? expressionType)
38
SyntaxNodeAnalysisContext
context, BaseObjectCreationExpressionSyntax objectCreationExpression, INamedTypeSymbol? expressionType)
src\Analyzers\CSharp\Analyzers\UseCollectionExpression\CSharpUseCollectionExpressionForStackAllocDiagnosticAnalyzer.cs (2)
41
private void AnalyzeImplicitStackAllocExpression(
SyntaxNodeAnalysisContext
context, INamedTypeSymbol? expressionType)
83
private void AnalyzeExplicitStackAllocExpression(
SyntaxNodeAnalysisContext
context, INamedTypeSymbol? expressionType)
src\Analyzers\CSharp\Analyzers\UseCompoundAssignment\CSharpUseCompoundCoalesceAssignmentDiagnosticAnalyzer.cs (2)
54
private void AnalyzeCoalesceExpression(
SyntaxNodeAnalysisContext
context)
120
private void AnalyzeIfStatement(
SyntaxNodeAnalysisContext
context)
src\Analyzers\CSharp\Analyzers\UseDeconstruction\CSharpUseDeconstructionDiagnosticAnalyzer.cs (3)
42
private void AnalyzeNode(
SyntaxNodeAnalysisContext
context)
60
SyntaxNodeAnalysisContext
context, VariableDeclarationSyntax variableDeclaration, NotificationOption2 notificationOption)
75
SyntaxNodeAnalysisContext
context, ForEachStatementSyntax forEachStatement, NotificationOption2 notificationOption)
src\Analyzers\CSharp\Analyzers\UseDefaultLiteral\CSharpUseDefaultLiteralDiagnosticAnalyzer.cs (1)
34
private void AnalyzeSyntax(
SyntaxNodeAnalysisContext
context)
src\Analyzers\CSharp\Analyzers\UseExpressionBody\UseExpressionBodyDiagnosticAnalyzer.cs (2)
48
private void AnalyzeSyntax(
SyntaxNodeAnalysisContext
context)
90
CSharpCodeGenerationOptions options, SyntaxNode declaration,
SyntaxNodeAnalysisContext
context, UseExpressionBodyHelper helper, CancellationToken cancellationToken)
src\Analyzers\CSharp\Analyzers\UseExpressionBodyForLambda\UseExpressionBodyForLambdaDiagnosticAnalyzer.cs (2)
37
private void AnalyzeIfEnabled(
SyntaxNodeAnalysisContext
context)
60
private static void AnalyzeSyntax(
SyntaxNodeAnalysisContext
context, CodeStyleOption2<ExpressionBodyPreference> option)
src\Analyzers\CSharp\Analyzers\UseImplicitObjectCreation\CSharpUseImplicitObjectCreationDiagnosticAnalyzer.cs (1)
37
private void AnalyzeSyntax(
SyntaxNodeAnalysisContext
context)
src\Analyzers\CSharp\Analyzers\UseImplicitOrExplicitType\CSharpTypeStyleDiagnosticAnalyzerBase.cs (1)
32
private void HandleVariableDeclaration(
SyntaxNodeAnalysisContext
context)
src\Analyzers\CSharp\Analyzers\UseInferredMemberName\CSharpUseInferredMemberNameDiagnosticAnalyzer.cs (3)
24
protected override void AnalyzeSyntax(
SyntaxNodeAnalysisContext
context)
37
private void ReportDiagnosticsIfNeeded(NameColonSyntax nameColon,
SyntaxNodeAnalysisContext
context)
66
private void ReportDiagnosticsIfNeeded(NameEqualsSyntax nameEquals,
SyntaxNodeAnalysisContext
context)
src\Analyzers\CSharp\Analyzers\UseIsNullCheck\CSharpUseIsNullCheckForCastAndEqualityOperatorDiagnosticAnalyzer.cs (1)
44
private void AnalyzeSyntax(
SyntaxNodeAnalysisContext
context)
src\Analyzers\CSharp\Analyzers\UseLocalFunction\CSharpUseLocalFunctionDiagnosticAnalyzer.cs (2)
77
private void SyntaxNodeAction(
SyntaxNodeAnalysisContext
syntaxContext, INamedTypeSymbol? expressionType)
175
SyntaxNodeAnalysisContext
context,
src\Analyzers\CSharp\Analyzers\UseNameofInNullableAttribute\CSharpUseNameofInNullableAttributeDiagnosticAnalyzer.cs (1)
52
private void AnalyzeAttribute(
SyntaxNodeAnalysisContext
context)
src\Analyzers\CSharp\Analyzers\UsePatternCombinators\CSharpUsePatternCombinatorsDiagnosticAnalyzer.cs (1)
48
private void AnalyzeNode(
SyntaxNodeAnalysisContext
context)
src\Analyzers\CSharp\Analyzers\UsePatternMatching\CSharpAsAndMemberAccessDiagnosticAnalyzer.cs (1)
53
private void AnalyzeAsExpression(
SyntaxNodeAnalysisContext
context)
src\Analyzers\CSharp\Analyzers\UsePatternMatching\CSharpAsAndNullCheckDiagnosticAnalyzer.cs (1)
54
private void SyntaxNodeAction(
SyntaxNodeAnalysisContext
syntaxContext)
src\Analyzers\CSharp\Analyzers\UsePatternMatching\CSharpIsAndCastCheckDiagnosticAnalyzer.cs (1)
65
private void SyntaxNodeAction(
SyntaxNodeAnalysisContext
syntaxContext)
src\Analyzers\CSharp\Analyzers\UsePatternMatching\CSharpUseNotPatternDiagnosticAnalyzer.cs (1)
51
SyntaxNodeAnalysisContext
context,
src\Analyzers\CSharp\Analyzers\UseSimpleUsingStatement\UseSimpleUsingStatementDiagnosticAnalyzer.cs (1)
77
private void AnalyzeSyntax(
SyntaxNodeAnalysisContext
context)
src\Analyzers\CSharp\Analyzers\UseTupleSwap\CSharpUseTupleSwapDiagnosticAnalyzer.cs (1)
62
private void AnalyzeLocalDeclarationStatement(
SyntaxNodeAnalysisContext
syntaxContext)
src\Analyzers\CSharp\Analyzers\UseUnboundGenericTypeInNameOf\CSharpUseUnboundGenericTypeInNameOfDiagnosticAnalyzer.cs (1)
57
private void AnalyzeInvocationExpression(
SyntaxNodeAnalysisContext
syntaxContext)
UsePatternMatching\CSharpIsAndCastCheckWithoutNameDiagnosticAnalyzer.cs (1)
62
SyntaxNodeAnalysisContext
context,
Microsoft.CodeAnalysis.CSharp.Features.UnitTests (9)
Diagnostics\Suppression\RemoveSuppressionTests.cs (1)
46
public void AnalyzeNode(
SyntaxNodeAnalysisContext
context)
Diagnostics\Suppression\SuppressionTest_FixMultipleTests.cs (1)
48
public void AnalyzeNode(
SyntaxNodeAnalysisContext
context)
Diagnostics\Suppression\SuppressionTests.cs (7)
706
public void AnalyzeNode(
SyntaxNodeAnalysisContext
context)
816
public void AnalyzeNode(
SyntaxNodeAnalysisContext
context)
879
public void AnalyzeNode(
SyntaxNodeAnalysisContext
context)
929
public void AnalyzeNode(
SyntaxNodeAnalysisContext
context)
1070
public void AnalyzeNode(
SyntaxNodeAnalysisContext
context)
2064
public void AnalyzeNode(
SyntaxNodeAnalysisContext
context)
2460
public void AnalyzeNode(
SyntaxNodeAnalysisContext
context)
Microsoft.CodeAnalysis.CSharp.Semantic.UnitTests (17)
Semantics\ColorColorTests.cs (1)
1781
private void HandleMemberAccessExpression(
SyntaxNodeAnalysisContext
context)
Semantics\RecordStructTests.cs (10)
5967
protected void Handle1(
SyntaxNodeAnalysisContext
context)
5993
protected void Handle2(
SyntaxNodeAnalysisContext
context)
6011
protected void Handle3(
SyntaxNodeAnalysisContext
context)
6029
protected void Handle4(
SyntaxNodeAnalysisContext
context)
6035
protected void Fail(
SyntaxNodeAnalysisContext
context)
6040
protected void Handle6(
SyntaxNodeAnalysisContext
context)
6058
protected void Handle7(
SyntaxNodeAnalysisContext
context)
6071
protected void Handle8(
SyntaxNodeAnalysisContext
context)
6098
protected void Handle9(
SyntaxNodeAnalysisContext
context)
6120
protected void Handle10(
SyntaxNodeAnalysisContext
context)
Semantics\TopLevelStatementsTests.cs (6)
6435
private void Handle1(
SyntaxNodeAnalysisContext
context)
6465
private void Handle2(
SyntaxNodeAnalysisContext
context)
7063
private void Handle1(
SyntaxNodeAnalysisContext
context)
7097
private void Handle2(
SyntaxNodeAnalysisContext
context)
7179
private void Handle1(
SyntaxNodeAnalysisContext
context)
7206
private void Handle2(
SyntaxNodeAnalysisContext
context)
Microsoft.CodeAnalysis.CSharp.Symbol.UnitTests (2)
Symbols\Source\NullablePublicAPITests.cs (2)
1789
private void AnalyzeMemberAccess(
SyntaxNodeAnalysisContext
context)
4845
private void AnalyzeMemberAccess(
SyntaxNodeAnalysisContext
context)
Microsoft.CodeAnalysis.EditorFeatures2.UnitTests (2)
Diagnostics\DiagnosticServiceTests.vb (2)
1379
Public Shared Sub AnalyzeNode(context As
SyntaxNodeAnalysisContext
)
1836
Public Shared Sub Initialize(registerSyntaxNodeAction As Action(Of Action(Of
SyntaxNodeAnalysisContext
), ImmutableArray(Of CodeAnalysis.CSharp.SyntaxKind)))
Microsoft.CodeAnalysis.Features (30)
Diagnostics\Analyzers\UnboundIdentifiersDiagnosticAnalyzerBase.cs (2)
59
private void AnalyzeNode(
SyntaxNodeAnalysisContext
context)
67
private void ReportUnboundIdentifierNames(
SyntaxNodeAnalysisContext
context, SyntaxNode member)
PreferFrameworkType\PreferFrameworkTypeDiagnosticAnalyzerBase.cs (1)
50
protected void AnalyzeNode(
SyntaxNodeAnalysisContext
context)
SimplifyThisOrMe\AbstractSimplifyThisOrMeDiagnosticAnalyzer.cs (1)
51
private void AnalyzeNode(
SyntaxNodeAnalysisContext
context)
src\Analyzers\Core\Analyzers\AbstractBuiltInCodeStyleDiagnosticAnalyzer_Core.cs (1)
93
protected bool ShouldSkipAnalysis(
SyntaxNodeAnalysisContext
context, NotificationOption2? notification)
src\Analyzers\Core\Analyzers\AddRequiredParentheses\AbstractAddRequiredParenthesesDiagnosticAnalyzer.cs (2)
87
private void AnalyzeSyntax(
SyntaxNodeAnalysisContext
context)
134
SyntaxNodeAnalysisContext
context, TBinaryLikeExpressionSyntax? binaryLikeOpt, int precedence,
src\Analyzers\Core\Analyzers\ForEachCast\AbstractForEachCastDiagnosticAnalyzer.cs (1)
51
private void AnalyzeSyntax(
SyntaxNodeAnalysisContext
context)
src\Analyzers\Core\Analyzers\MatchFolderAndNamespace\AbstractMatchFolderAndNamespaceDiagnosticAnalyzer.cs (1)
52
private void AnalyzeNamespaceNode(
SyntaxNodeAnalysisContext
context)
src\Analyzers\Core\Analyzers\NamingStyle\NamingStyleDiagnosticAnalyzerBase.cs (1)
80
void SyntaxNodeAction(
SyntaxNodeAnalysisContext
syntaxContext)
src\Analyzers\Core\Analyzers\RemoveUnnecessaryCast\AbstractRemoveUnnecessaryCastDiagnosticAnalyzer.cs (1)
40
private void AnalyzeSyntax(
SyntaxNodeAnalysisContext
context)
src\Analyzers\Core\Analyzers\RemoveUnnecessaryParentheses\AbstractRemoveUnnecessaryParenthesesDiagnosticAnalyzer.cs (1)
47
private void AnalyzeSyntax(
SyntaxNodeAnalysisContext
context)
src\Analyzers\Core\Analyzers\SimplifyBooleanExpression\AbstractSimplifyConditionalDiagnosticAnalyzer.cs (1)
64
private void AnalyzeConditionalExpression(
SyntaxNodeAnalysisContext
context)
src\Analyzers\Core\Analyzers\UseAutoProperty\AbstractUseAutoPropertyAnalyzer.cs (1)
334
SyntaxNodeAnalysisContext
context,
src\Analyzers\Core\Analyzers\UseCoalesceExpression\AbstractUseCoalesceExpressionForIfNullCheckDiagnosticAnalyzer.cs (1)
49
private void AnalyzeSyntax(
SyntaxNodeAnalysisContext
context)
src\Analyzers\Core\Analyzers\UseCoalesceExpression\AbstractUseCoalesceExpressionForNullableTernaryConditionalCheckDiagnosticAnalyzer.cs (1)
52
private void AnalyzeSyntax(
SyntaxNodeAnalysisContext
context)
src\Analyzers\Core\Analyzers\UseCoalesceExpression\AbstractUseCoalesceExpressionForTernaryConditionalCheckDiagnosticAnalyzer.cs (1)
47
private void AnalyzeSyntax(
SyntaxNodeAnalysisContext
context)
src\Analyzers\Core\Analyzers\UseCollectionInitializer\AbstractUseCollectionInitializerDiagnosticAnalyzer.cs (2)
126
SyntaxNodeAnalysisContext
context,
243
SyntaxNodeAnalysisContext
context,
src\Analyzers\Core\Analyzers\UseCompoundAssignment\AbstractUseCompoundAssignmentDiagnosticAnalyzer.cs (1)
74
private void AnalyzeAssignment(
SyntaxNodeAnalysisContext
context)
src\Analyzers\Core\Analyzers\UseInferredMemberName\AbstractUseInferredMemberNameDiagnosticAnalyzer.cs (1)
12
protected abstract void AnalyzeSyntax(
SyntaxNodeAnalysisContext
context);
src\Analyzers\Core\Analyzers\UseIsNullCheck\AbstractUseIsNullForReferenceEqualsDiagnosticAnalyzer.cs (1)
56
private void AnalyzeSyntax(
SyntaxNodeAnalysisContext
context, IMethodSymbol referenceEqualsMethod, bool unconstraintedGenericSupported)
src\Analyzers\Core\Analyzers\UseNullPropagation\AbstractUseNullPropagationDiagnosticAnalyzer.cs (3)
111
SyntaxNodeAnalysisContext
context,
213
SyntaxNodeAnalysisContext
context,
268
SyntaxNodeAnalysisContext
context,
src\Analyzers\Core\Analyzers\UseNullPropagation\AbstractUseNullPropagationDiagnosticAnalyzer_IfStatement.cs (1)
29
SyntaxNodeAnalysisContext
context,
src\Analyzers\Core\Analyzers\UseObjectInitializer\AbstractUseObjectInitializerDiagnosticAnalyzer.cs (2)
93
private void AnalyzeNode(
SyntaxNodeAnalysisContext
context)
137
SyntaxNodeAnalysisContext
context,
src\Analyzers\Core\Analyzers\ValidateFormatString\AbstractValidateFormatStringDiagnosticAnalyzer.cs (2)
89
private void AnalyzeNode(
SyntaxNodeAnalysisContext
context, INamedTypeSymbol formatProviderType)
332
SyntaxNodeAnalysisContext
context,
Microsoft.CodeAnalysis.Test.Utilities (3)
Diagnostics\CommonDiagnosticAnalyzers.cs (2)
686
private void AnalyzeNode(
SyntaxNodeAnalysisContext
context)
726
private void AnalyzeNode(
SyntaxNodeAnalysisContext
context)
Diagnostics\TestDiagnosticAnalyzer.cs (1)
98
private void AnalyzeNode(
SyntaxNodeAnalysisContext
context)
Microsoft.CodeAnalysis.VisualBasic.CodeStyle (10)
src\Analyzers\VisualBasic\Analyzers\RemoveUnnecessaryByVal\VisualBasicRemoveUnnecessaryByValDiagnosticAnalyzer.vb (1)
25
Sub(syntaxContext As
SyntaxNodeAnalysisContext
)
src\Analyzers\VisualBasic\Analyzers\RemoveUnnecessarySuppressions\VisualBasicRemoveUnnecessaryAttributeSuppressionsDiagnosticAnalyzer.vb (1)
17
Sub(syntaxContext As
SyntaxNodeAnalysisContext
)
src\Analyzers\VisualBasic\Analyzers\RemoveUnusedMembers\VisualBasicRemoveUnusedMembersDiagnosticAnalyzer.vb (2)
39
Sub(syntaxNodeContext As
SyntaxNodeAnalysisContext
)
45
Private Shared Sub AnalyzeHandlesClause(context As
SyntaxNodeAnalysisContext
, onSymbolUsageFound As Action(Of ISymbol, ValueUsageInfo))
src\Analyzers\VisualBasic\Analyzers\SimplifyObjectCreation\VisualBasicSimplifyObjectCreationDiagnosticAnalyzer.vb (1)
31
Private Sub AnalyzeVariableDeclarator(context As
SyntaxNodeAnalysisContext
)
src\Analyzers\VisualBasic\Analyzers\UseInferredMemberName\VisualBasicUseInferredMemberNameDiagnosticAnalyzer.vb (4)
23
context.RegisterSyntaxNodeAction(Sub(c As
SyntaxNodeAnalysisContext
) AnalyzeSyntax(c),
27
Protected Overrides Sub AnalyzeSyntax(context As
SyntaxNodeAnalysisContext
)
38
Private Sub ReportDiagnosticsIfNeeded(nameColonEquals As NameColonEqualsSyntax, context As
SyntaxNodeAnalysisContext
)
65
Private Sub ReportDiagnosticsIfNeeded(fieldInitializer As NamedFieldInitializerSyntax, context As
SyntaxNodeAnalysisContext
)
src\Analyzers\VisualBasic\Analyzers\UseIsNotExpression\VisualBasicUseIsNotDiagnosticAnalyzer.vb (1)
42
Private Sub SyntaxNodeAction(syntaxContext As
SyntaxNodeAnalysisContext
)
Microsoft.CodeAnalysis.VisualBasic.CommandLine.UnitTests (3)
CommandLineTests.vb (3)
10990
Public Sub AnalyzeNode(context As
SyntaxNodeAnalysisContext
)
11015
Public Sub AnalyzeNode(context As
SyntaxNodeAnalysisContext
)
11089
Public Sub AnalyzeNode(context As
SyntaxNodeAnalysisContext
)
Microsoft.CodeAnalysis.VisualBasic.Features (10)
src\Analyzers\VisualBasic\Analyzers\RemoveUnnecessaryByVal\VisualBasicRemoveUnnecessaryByValDiagnosticAnalyzer.vb (1)
25
Sub(syntaxContext As
SyntaxNodeAnalysisContext
)
src\Analyzers\VisualBasic\Analyzers\RemoveUnnecessarySuppressions\VisualBasicRemoveUnnecessaryAttributeSuppressionsDiagnosticAnalyzer.vb (1)
17
Sub(syntaxContext As
SyntaxNodeAnalysisContext
)
src\Analyzers\VisualBasic\Analyzers\RemoveUnusedMembers\VisualBasicRemoveUnusedMembersDiagnosticAnalyzer.vb (2)
39
Sub(syntaxNodeContext As
SyntaxNodeAnalysisContext
)
45
Private Shared Sub AnalyzeHandlesClause(context As
SyntaxNodeAnalysisContext
, onSymbolUsageFound As Action(Of ISymbol, ValueUsageInfo))
src\Analyzers\VisualBasic\Analyzers\SimplifyObjectCreation\VisualBasicSimplifyObjectCreationDiagnosticAnalyzer.vb (1)
31
Private Sub AnalyzeVariableDeclarator(context As
SyntaxNodeAnalysisContext
)
src\Analyzers\VisualBasic\Analyzers\UseInferredMemberName\VisualBasicUseInferredMemberNameDiagnosticAnalyzer.vb (4)
23
context.RegisterSyntaxNodeAction(Sub(c As
SyntaxNodeAnalysisContext
) AnalyzeSyntax(c),
27
Protected Overrides Sub AnalyzeSyntax(context As
SyntaxNodeAnalysisContext
)
38
Private Sub ReportDiagnosticsIfNeeded(nameColonEquals As NameColonEqualsSyntax, context As
SyntaxNodeAnalysisContext
)
65
Private Sub ReportDiagnosticsIfNeeded(fieldInitializer As NamedFieldInitializerSyntax, context As
SyntaxNodeAnalysisContext
)
src\Analyzers\VisualBasic\Analyzers\UseIsNotExpression\VisualBasicUseIsNotDiagnosticAnalyzer.vb (1)
42
Private Sub SyntaxNodeAction(syntaxContext As
SyntaxNodeAnalysisContext
)
Microsoft.CodeAnalysis.VisualBasic.Features.UnitTests (6)
Diagnostics\Suppression\SuppressionTests.vb (6)
709
Private Sub AnalyzeNode(context As
SyntaxNodeAnalysisContext
)
784
Private Sub AnalyzeNode(context As
SyntaxNodeAnalysisContext
)
828
Public Sub AnalyzeNode(context As
SyntaxNodeAnalysisContext
)
894
Public Sub AnalyzeNode(context As
SyntaxNodeAnalysisContext
)
1014
Private Sub AnalyzeNode(context As
SyntaxNodeAnalysisContext
)
1730
Private Sub AnalyzeNode(context As
SyntaxNodeAnalysisContext
)
Microsoft.CodeAnalysis.VisualBasic.Semantic.UnitTests (6)
Diagnostics\DiagnosticAnalyzerTests.vb (4)
39
Public Sub AnalyzeNode(context As
SyntaxNodeAnalysisContext
)
277
Public Sub AnalyzeNode(context As
SyntaxNodeAnalysisContext
)
360
Public Sub AnalyzeNode(context As
SyntaxNodeAnalysisContext
)
574
Public Sub AnalyzeNode(context As
SyntaxNodeAnalysisContext
)
Diagnostics\GetDiagnosticsTests.vb (2)
619
context.RegisterSyntaxNodeAction(Sub(nodeContext As
SyntaxNodeAnalysisContext
)
627
Private Sub AnalyzeNumericalLiteralExpressionNode(context As
SyntaxNodeAnalysisContext
)
Microsoft.CodeAnalysis.VisualBasic.Syntax.UnitTests (1)
Parser\ParseDirectives.vb (1)
3173
Public Sub AnalyzeNode(context As
SyntaxNodeAnalysisContext
)
Microsoft.CodeAnalysis.Workspaces (6)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Diagnostics\DiagnosticAnalyzerCategory.cs (2)
20
/// it registers a <see cref="AnalysisContext.RegisterSyntaxNodeAction{TLanguageKindEnum}(Action{
SyntaxNodeAnalysisContext
}, TLanguageKindEnum[])"/> and then ends
21
/// up needing to use the <see cref="
SyntaxNodeAnalysisContext
.SemanticModel"/>. If a
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Extensions\AnalysisContextExtensions.cs (4)
120
/// - <see cref="
SyntaxNodeAnalysisContext
.FilterSpan"/> is <see langword="null"/> (we are analyzing the entire tree)
122
/// - <paramref name="span"/> intersects with <see cref="
SyntaxNodeAnalysisContext
.FilterSpan"/>.
124
public static bool ShouldAnalyzeSpan(this
SyntaxNodeAnalysisContext
context, TextSpan span)
204
public static SyntaxNode GetAnalysisRoot(this
SyntaxNodeAnalysisContext
context, bool findInTrivia, bool getInnermostNodeForTie = false)
Microsoft.CodeAnalysis.Workspaces.UnitTests (1)
BatchFixAllProviderTests.cs (1)
69
private void HandleNumericLiteralExpression(
SyntaxNodeAnalysisContext
context)
Microsoft.DotNet.CodeAnalysis (2)
Analyzers\AppContextDefaultsAnalyzer.cs (1)
60
private void AnalyzeCodeBlock(
SyntaxNodeAnalysisContext
context)
Analyzers\ResourceUsageAnalyzer.cs (1)
34
private void AnalyzeNode(
SyntaxNodeAnalysisContext
context)
Microsoft.ML.InternalCodeAnalyzer (17)
ContractsCheckAnalyzer.cs (2)
139
private static bool IsGoodMessage(
SyntaxNodeAnalysisContext
context, ExpressionSyntax exp)
182
private static void Analyze(
SyntaxNodeAnalysisContext
context)
NameAnalyzer.cs (10)
91
private static void AnalyzeClass(
SyntaxNodeAnalysisContext
context)
94
private static void AnalyzeEnum(
SyntaxNodeAnalysisContext
context)
97
private static void AnalyzeEnumMember(
SyntaxNodeAnalysisContext
context)
100
private static void AnalyzeEvent(
SyntaxNodeAnalysisContext
context)
103
private static void AnalyzeMethod(
SyntaxNodeAnalysisContext
context)
111
private static void AnalyzeNamespace(
SyntaxNodeAnalysisContext
context)
121
private static void AnalyzeProperty(
SyntaxNodeAnalysisContext
context)
124
private static void AnalyzeStruct(
SyntaxNodeAnalysisContext
context)
134
private static void CheckPascal(SyntaxToken token,
SyntaxNodeAnalysisContext
context)
143
private static void AnalyzeField(
SyntaxNodeAnalysisContext
context)
ParameterVariableNameAnalyzer.cs (3)
41
private static void AnalyzeParameter(
SyntaxNodeAnalysisContext
context)
47
private static void AnalyzeLocal(
SyntaxNodeAnalysisContext
context)
54
private static void AnalyzeCore(
SyntaxNodeAnalysisContext
context, SyntaxToken identifier, string type)
SingleVariableDeclarationAnalyzer.cs (1)
40
private static void Analyze(
SyntaxNodeAnalysisContext
context)
TypeParamNameAnalyzer.cs (1)
39
private static void Analyze(
SyntaxNodeAnalysisContext
context)
System.Windows.Forms.Analyzers.CSharp (1)
System\Windows\Forms\CSharp\Analyzers\AvoidPassingTaskWithoutCancellationToken\AvoidPassingTaskWithoutCancellationTokenAnalyzer.cs (1)
30
private void AnalyzeInvocation(
SyntaxNodeAnalysisContext
context)
System.Windows.Forms.Analyzers.VisualBasic (1)
Analyzers\AvoidPassingTaskWithoutCancellationToken\AvoidPassingTaskWithoutCancellationTokenAnalyzer.vb (1)
32
Private Sub AnalyzeInvocation(context As
SyntaxNodeAnalysisContext
)