1 instantiation of SemanticModelAnalysisContext
Microsoft.CodeAnalysis (1)
DiagnosticAnalyzer\AnalyzerExecutor.cs (1)
533var context = new SemanticModelAnalysisContext(semanticModel, AnalyzerOptions, diagReporter.AddDiagnosticAction,
51 references to SemanticModelAnalysisContext
Microsoft.AspNetCore.App.Analyzers (2)
RouteEmbeddedLanguage\RoutePatternAnalyzer.cs (2)
27private void AnalyzeSemanticModel(SemanticModelAnalysisContext context) 45private static void AnalyzeToken(SemanticModelAnalysisContext context, RouteUsageCache routeUsageCache, SyntaxToken token, CancellationToken cancellationToken)
Microsoft.AspNetCore.App.Analyzers.Test (1)
Infrastructure\WellKnownTypesTests.cs (1)
109public void AnalyzeSemanticModel(SemanticModelAnalysisContext context)
Microsoft.CodeAnalysis (9)
DiagnosticAnalyzer\AnalyzerExecutor.cs (1)
533var context = new SemanticModelAnalysisContext(semanticModel, AnalyzerOptions, diagReporter.AddDiagnosticAction,
DiagnosticAnalyzer\CompilerDiagnosticAnalyzer.CompilationAnalyzer.cs (1)
39public static void AnalyzeSemanticModel(SemanticModelAnalysisContext context)
DiagnosticAnalyzer\DiagnosticAnalysisContext.cs (3)
68public abstract void RegisterSemanticModelAction(Action<SemanticModelAnalysisContext> action); 363public abstract void RegisterSemanticModelAction(Action<SemanticModelAnalysisContext> action); 679/// A semantic model action operates on the <see cref="CodeAnalysis.SemanticModel"/> of a code document, and can use a <see cref="SemanticModelAnalysisContext"/> to report <see cref="Diagnostic"/>s about the model.
DiagnosticAnalyzer\DiagnosticAnalyzerAction.cs (2)
130public Action<SemanticModelAnalysisContext> Action { get; } 132public SemanticModelAnalyzerAction(Action<SemanticModelAnalysisContext> action, DiagnosticAnalyzer analyzer)
DiagnosticAnalyzer\DiagnosticStartAnalysisScope.cs (2)
54public override void RegisterSemanticModelAction(Action<SemanticModelAnalysisContext> action) 159public override void RegisterSemanticModelAction(Action<SemanticModelAnalysisContext> action)
Microsoft.CodeAnalysis.CodeStyle (10)
src\Analyzers\Core\Analyzers\AbstractBuiltInCodeStyleDiagnosticAnalyzer_Core.cs (1)
90protected bool ShouldSkipAnalysis(SemanticModelAnalysisContext context, NotificationOption2? notification)
src\Analyzers\Core\Analyzers\RemoveUnnecessaryImports\AbstractRemoveUnnecessaryImportsDiagnosticAnalyzer.cs (1)
84private void AnalyzeSemanticModel(SemanticModelAnalysisContext context)
src\Analyzers\Core\Analyzers\SimplifyTypeNames\SimplifyTypeNamesDiagnosticAnalyzerBase.cs (4)
112protected abstract ImmutableArray<Diagnostic> AnalyzeSemanticModel(SemanticModelAnalysisContext context, SyntaxNode root, TextSpanMutableIntervalTree? codeBlockIntervalTree); 205/// for use in a <see cref="SemanticModelAnalysisContext"/> callback; otherwise, <see langword="false"/> to 215/// <see cref="SemanticModelAnalysisContext"/> callback.</para> 267public void AnalyzeSemanticModel(SemanticModelAnalysisContext context)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Extensions\AnalysisContextExtensions.cs (4)
30/// - <see cref="SemanticModelAnalysisContext.FilterSpan"/> is <see langword="null"/> (we are analyzing the entire tree) 32/// - <paramref name="span"/> intersects with <see cref="SemanticModelAnalysisContext.FilterSpan"/>. 34public static bool ShouldAnalyzeSpan(this SemanticModelAnalysisContext context, TextSpan span) 156public static SyntaxNode GetAnalysisRoot(this SemanticModelAnalysisContext context, bool findInTrivia, bool getInnermostNodeForTie = false)
Microsoft.CodeAnalysis.CSharp.CodeStyle (4)
src\Analyzers\CSharp\Analyzers\RemoveUnnecessaryNullableDirective\CSharpRemoveUnnecessaryNullableDirectiveDiagnosticAnalyzer.cs (2)
89private ImmutableArray<Diagnostic> AnalyzeSemanticModel(SemanticModelAnalysisContext context, int positionOfFirstReducingNullableDirective, TextSpanMutableIntervalTree? codeBlockIntervalTree, TextSpanMutableIntervalTree? possibleNullableImpactIntervalTree) 293public void AnalyzeSemanticModel(SemanticModelAnalysisContext context)
src\Analyzers\CSharp\Analyzers\RemoveUnreachableCode\CSharpRemoveUnreachableCodeDiagnosticAnalyzer.cs (2)
40private void AnalyzeSemanticModel(SemanticModelAnalysisContext context) 81SemanticModelAnalysisContext context, SyntaxNode root, TextSpan sourceSpan)
Microsoft.CodeAnalysis.CSharp.Features (5)
Diagnostics\Analyzers\CSharpSimplifyTypeNamesDiagnosticAnalyzer.cs (1)
67protected override ImmutableArray<Diagnostic> AnalyzeSemanticModel(SemanticModelAnalysisContext context, SyntaxNode root, TextSpanMutableIntervalTree? codeBlockIntervalTree)
src\Analyzers\CSharp\Analyzers\RemoveUnnecessaryNullableDirective\CSharpRemoveUnnecessaryNullableDirectiveDiagnosticAnalyzer.cs (2)
89private ImmutableArray<Diagnostic> AnalyzeSemanticModel(SemanticModelAnalysisContext context, int positionOfFirstReducingNullableDirective, TextSpanMutableIntervalTree? codeBlockIntervalTree, TextSpanMutableIntervalTree? possibleNullableImpactIntervalTree) 293public void AnalyzeSemanticModel(SemanticModelAnalysisContext context)
src\Analyzers\CSharp\Analyzers\RemoveUnreachableCode\CSharpRemoveUnreachableCodeDiagnosticAnalyzer.cs (2)
40private void AnalyzeSemanticModel(SemanticModelAnalysisContext context) 81SemanticModelAnalysisContext context, SyntaxNode root, TextSpan sourceSpan)
Microsoft.CodeAnalysis.Features (12)
EmbeddedLanguages\Json\LanguageServices\AbstractJsonDetectionAnalyzer.cs (2)
46public void Analyze(SemanticModelAnalysisContext context) 59SemanticModelAnalysisContext context,
EmbeddedLanguages\Json\LanguageServices\AbstractJsonDiagnosticAnalyzer.cs (2)
39public void Analyze(SemanticModelAnalysisContext context) 52SemanticModelAnalysisContext context,
EmbeddedLanguages\RegularExpressions\LanguageServices\AbstractRegexDiagnosticAnalyzer.cs (2)
40public void Analyze(SemanticModelAnalysisContext context) 78SemanticModelAnalysisContext context,
src\Analyzers\Core\Analyzers\AbstractBuiltInCodeStyleDiagnosticAnalyzer_Core.cs (1)
90protected bool ShouldSkipAnalysis(SemanticModelAnalysisContext context, NotificationOption2? notification)
src\Analyzers\Core\Analyzers\RemoveUnnecessaryImports\AbstractRemoveUnnecessaryImportsDiagnosticAnalyzer.cs (1)
84private void AnalyzeSemanticModel(SemanticModelAnalysisContext context)
src\Analyzers\Core\Analyzers\SimplifyTypeNames\SimplifyTypeNamesDiagnosticAnalyzerBase.cs (4)
112protected abstract ImmutableArray<Diagnostic> AnalyzeSemanticModel(SemanticModelAnalysisContext context, SyntaxNode root, TextSpanMutableIntervalTree? codeBlockIntervalTree); 205/// for use in a <see cref="SemanticModelAnalysisContext"/> callback; otherwise, <see langword="false"/> to 215/// <see cref="SemanticModelAnalysisContext"/> callback.</para> 267public void AnalyzeSemanticModel(SemanticModelAnalysisContext context)
Microsoft.CodeAnalysis.Test.Utilities (1)
Diagnostics\TestDiagnosticAnalyzer.cs (1)
65private void AnalyzeSemanticModel(SemanticModelAnalysisContext context)
Microsoft.CodeAnalysis.VisualBasic.Features (1)
Diagnostics\Analyzers\VisualBasicSimplifyTypeNamesDiagnosticAnalyzer.vb (1)
54Protected Overrides Function AnalyzeSemanticModel(context As SemanticModelAnalysisContext, root As SyntaxNode, codeBlockIntervalTree As TextSpanMutableIntervalTree) As ImmutableArray(Of Diagnostic)
Microsoft.CodeAnalysis.Workspaces (4)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Extensions\AnalysisContextExtensions.cs (4)
30/// - <see cref="SemanticModelAnalysisContext.FilterSpan"/> is <see langword="null"/> (we are analyzing the entire tree) 32/// - <paramref name="span"/> intersects with <see cref="SemanticModelAnalysisContext.FilterSpan"/>. 34public static bool ShouldAnalyzeSpan(this SemanticModelAnalysisContext context, TextSpan span) 156public static SyntaxNode GetAnalysisRoot(this SemanticModelAnalysisContext context, bool findInTrivia, bool getInnermostNodeForTie = false)
Microsoft.ML.InternalCodeAnalyzer (2)
BestFriendAnalyzer.cs (2)
48private void AnalyzeCore(SemanticModelAnalysisContext context, string attributeName, string assemblyAttributeName) 115private void Analyze(SemanticModelAnalysisContext context)