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