1 type derived from SymbolStartAnalysisContext
Microsoft.CodeAnalysis (1)
DiagnosticAnalyzer\DiagnosticStartAnalysisScope.cs (1)
223internal sealed class AnalyzerSymbolStartAnalysisContext : SymbolStartAnalysisContext
63 references to SymbolStartAnalysisContext
Microsoft.CodeAnalysis (7)
DiagnosticAnalyzer\DiagnosticAnalysisContext.cs (3)
94public virtual void RegisterSymbolStartAction(Action<SymbolStartAnalysisContext> action, SymbolKind symbolKind) 389public virtual void RegisterSymbolStartAction(Action<SymbolStartAnalysisContext> action, SymbolKind symbolKind) 860/// A symbol start/end action can use a <see cref="SymbolStartAnalysisContext"/> to report <see cref="Diagnostic"/>s about code within a <see cref="ISymbol"/> and its members.
DiagnosticAnalyzer\DiagnosticAnalyzerAction.cs (2)
36public Action<SymbolStartAnalysisContext> Action { get; } 39public SymbolStartAnalyzerAction(Action<SymbolStartAnalysisContext> action, SymbolKind kind, DiagnosticAnalyzer analyzer)
DiagnosticAnalyzer\DiagnosticStartAnalysisScope.cs (2)
66public override void RegisterSymbolStartAction(Action<SymbolStartAnalysisContext> action, SymbolKind symbolKind) 171public override void RegisterSymbolStartAction(Action<SymbolStartAnalysisContext> action, SymbolKind symbolKind)
Microsoft.CodeAnalysis.CodeStyle (16)
src\Analyzers\Core\Analyzers\MakeFieldReadonly\AbstractMakeFieldReadonlyDiagnosticAnalyzer.cs (1)
136bool ShouldAnalyze(SymbolStartAnalysisContext context, INamedTypeSymbol namedType)
src\Analyzers\Core\Analyzers\RemoveUnusedMembers\AbstractRemoveUnusedMembersDiagnosticAnalyzer.cs (2)
89protected virtual void HandleNamedTypeSymbolStart(SymbolStartAnalysisContext context, Action<ISymbol, ValueUsageInfo> onSymbolUsageFound) 256bool ShouldAnalyze(SymbolStartAnalysisContext context, INamedTypeSymbol namedType)
src\Analyzers\Core\Analyzers\RemoveUnusedParametersAndValues\AbstractRemoveUnusedParametersAndValuesDiagnosticAnalyzer.SymbolStartAnalyzer.cs (3)
29SymbolStartAnalysisContext symbolStartAnalysisContext) 38private readonly SymbolStartAnalysisContext _symbolStartAnalysisContext = symbolStartAnalysisContext; 91private void OnSymbolStart(SymbolStartAnalysisContext context)
src\Analyzers\Core\Analyzers\UseAutoProperty\AbstractUseAutoPropertyAnalyzer.cs (1)
182bool ShouldAnalyze(SymbolStartAnalysisContext context, INamedTypeSymbol namedType)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Extensions\AnalysisContextExtensions.cs (9)
40/// - <see cref="SymbolStartAnalysisContext.FilterSpan"/> is <see langword="null"/> (we are analyzing the entire tree) 42/// - <paramref name="span"/> intersects with <see cref="SymbolStartAnalysisContext.FilterSpan"/>. 44public static bool ShouldAnalyzeSpan(this SymbolStartAnalysisContext context, TextSpan span, SyntaxTree tree) 50/// - <see cref="SymbolStartAnalysisContext.FilterSpan"/> is <see langword="null"/> (we are analyzing the entire tree) 52/// - <paramref name="location"/> intersects with <see cref="SymbolStartAnalysisContext.FilterSpan"/>. 54public static bool ShouldAnalyzeLocation(this SymbolStartAnalysisContext context, Location location) 161/// NOTE: This method expects <see cref="SymbolStartAnalysisContext.FilterTree"/> 162/// and <see cref="SymbolStartAnalysisContext.FilterSpan"/> to be non-null. 164public static SyntaxNode GetAnalysisRoot(this SymbolStartAnalysisContext context, bool findInTrivia, bool getInnermostNodeForTie = false)
Microsoft.CodeAnalysis.CSharp.CodeStyle (5)
src\Analyzers\CSharp\Analyzers\MakeStructFieldsWritable\CSharpMakeStructFieldsWritableDiagnosticAnalyzer.cs (1)
84private void RegisterActions(SymbolStartAnalysisContext context)
src\Analyzers\CSharp\Analyzers\MakeStructMemberReadOnly\CSharpMakeStructMemberReadOnlyAnalyzer.cs (1)
55bool ShouldAnalyze(SymbolStartAnalysisContext context, [NotNullWhen(true)] out CodeStyleOption2<bool>? option)
src\Analyzers\CSharp\Analyzers\MakeStructReadOnly\CSharpMakeStructReadOnlyDiagnosticAnalyzer.cs (1)
72SymbolStartAnalysisContext context,
src\Analyzers\CSharp\Analyzers\UsePrimaryConstructor\CSharpUsePrimaryConstructorDiagnosticAnalyzer.cs (1)
203SymbolStartAnalysisContext context,
src\Analyzers\CSharp\Analyzers\UseSystemThreadingLock\CSharpUseSystemThreadingLockDiagnosticAnalyzer.cs (1)
75private void AnalyzeNamedType(SymbolStartAnalysisContext context)
Microsoft.CodeAnalysis.CSharp.Emit3.UnitTests (3)
Semantics\PrimaryConstructorTests.cs (2)
4171private void Handle1(SymbolStartAnalysisContext context) 5575private void Handle1(SymbolStartAnalysisContext context)
Semantics\RecordTests.cs (1)
26663private void Handle1(SymbolStartAnalysisContext context)
Microsoft.CodeAnalysis.CSharp.Features (5)
src\Analyzers\CSharp\Analyzers\MakeStructFieldsWritable\CSharpMakeStructFieldsWritableDiagnosticAnalyzer.cs (1)
84private void RegisterActions(SymbolStartAnalysisContext context)
src\Analyzers\CSharp\Analyzers\MakeStructMemberReadOnly\CSharpMakeStructMemberReadOnlyAnalyzer.cs (1)
55bool ShouldAnalyze(SymbolStartAnalysisContext context, [NotNullWhen(true)] out CodeStyleOption2<bool>? option)
src\Analyzers\CSharp\Analyzers\MakeStructReadOnly\CSharpMakeStructReadOnlyDiagnosticAnalyzer.cs (1)
72SymbolStartAnalysisContext context,
src\Analyzers\CSharp\Analyzers\UsePrimaryConstructor\CSharpUsePrimaryConstructorDiagnosticAnalyzer.cs (1)
203SymbolStartAnalysisContext context,
src\Analyzers\CSharp\Analyzers\UseSystemThreadingLock\CSharpUseSystemThreadingLockDiagnosticAnalyzer.cs (1)
75private void AnalyzeNamedType(SymbolStartAnalysisContext context)
Microsoft.CodeAnalysis.CSharp.Semantic.UnitTests (3)
Semantics\RecordStructTests.cs (1)
6285private void Handle1(SymbolStartAnalysisContext context)
Semantics\TopLevelStatementsTests.cs (2)
6609private void Handle1(SymbolStartAnalysisContext context) 6629private void Handle2(SymbolStartAnalysisContext context)
Microsoft.CodeAnalysis.Features (7)
src\Analyzers\Core\Analyzers\MakeFieldReadonly\AbstractMakeFieldReadonlyDiagnosticAnalyzer.cs (1)
136bool ShouldAnalyze(SymbolStartAnalysisContext context, INamedTypeSymbol namedType)
src\Analyzers\Core\Analyzers\RemoveUnusedMembers\AbstractRemoveUnusedMembersDiagnosticAnalyzer.cs (2)
89protected virtual void HandleNamedTypeSymbolStart(SymbolStartAnalysisContext context, Action<ISymbol, ValueUsageInfo> onSymbolUsageFound) 256bool ShouldAnalyze(SymbolStartAnalysisContext context, INamedTypeSymbol namedType)
src\Analyzers\Core\Analyzers\RemoveUnusedParametersAndValues\AbstractRemoveUnusedParametersAndValuesDiagnosticAnalyzer.SymbolStartAnalyzer.cs (3)
29SymbolStartAnalysisContext symbolStartAnalysisContext) 38private readonly SymbolStartAnalysisContext _symbolStartAnalysisContext = symbolStartAnalysisContext; 91private void OnSymbolStart(SymbolStartAnalysisContext context)
src\Analyzers\Core\Analyzers\UseAutoProperty\AbstractUseAutoPropertyAnalyzer.cs (1)
182bool ShouldAnalyze(SymbolStartAnalysisContext context, INamedTypeSymbol namedType)
Microsoft.CodeAnalysis.Test.Utilities (6)
Diagnostics\CommonDiagnosticAnalyzers.cs (6)
2009void onSymbolStart(SymbolStartAnalysisContext symbolStartContext) 2043void performSymbolStartActionVerification(SymbolStartAnalysisContext symbolStartContext) 2053void performSymbolEndActionVerification(SymbolAnalysisContext symbolEndContext, SymbolStartAnalysisContext symbolStartContext) 2067void performOperationActionVerification(OperationAnalysisContext operationContext, SymbolStartAnalysisContext symbolStartContext) 2087void verifySymbolStartOrdering(SymbolStartAnalysisContext symbolStartContext) 2139void verifySymbolStartAndOperationOrdering(SymbolStartAnalysisContext symbolStartContext)
Microsoft.CodeAnalysis.VisualBasic.CodeStyle (1)
src\Analyzers\VisualBasic\Analyzers\RemoveUnusedMembers\VisualBasicRemoveUnusedMembersDiagnosticAnalyzer.vb (1)
22Protected Overrides Sub HandleNamedTypeSymbolStart(context As SymbolStartAnalysisContext, onSymbolUsageFound As Action(Of ISymbol, ValueUsageInfo))
Microsoft.CodeAnalysis.VisualBasic.Features (1)
src\Analyzers\VisualBasic\Analyzers\RemoveUnusedMembers\VisualBasicRemoveUnusedMembersDiagnosticAnalyzer.vb (1)
22Protected Overrides Sub HandleNamedTypeSymbolStart(context As SymbolStartAnalysisContext, onSymbolUsageFound As Action(Of ISymbol, ValueUsageInfo))
Microsoft.CodeAnalysis.Workspaces (9)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Extensions\AnalysisContextExtensions.cs (9)
40/// - <see cref="SymbolStartAnalysisContext.FilterSpan"/> is <see langword="null"/> (we are analyzing the entire tree) 42/// - <paramref name="span"/> intersects with <see cref="SymbolStartAnalysisContext.FilterSpan"/>. 44public static bool ShouldAnalyzeSpan(this SymbolStartAnalysisContext context, TextSpan span, SyntaxTree tree) 50/// - <see cref="SymbolStartAnalysisContext.FilterSpan"/> is <see langword="null"/> (we are analyzing the entire tree) 52/// - <paramref name="location"/> intersects with <see cref="SymbolStartAnalysisContext.FilterSpan"/>. 54public static bool ShouldAnalyzeLocation(this SymbolStartAnalysisContext context, Location location) 161/// NOTE: This method expects <see cref="SymbolStartAnalysisContext.FilterTree"/> 162/// and <see cref="SymbolStartAnalysisContext.FilterSpan"/> to be non-null. 164public static SyntaxNode GetAnalysisRoot(this SymbolStartAnalysisContext context, bool findInTrivia, bool getInnermostNodeForTie = false)