1 override of RegisterSemanticModelAction
Microsoft.CodeAnalysis (1)
DiagnosticAnalyzer\DiagnosticStartAnalysisScope.cs (1)
54public override void RegisterSemanticModelAction(Action<SemanticModelAnalysisContext> action)
20 references to RegisterSemanticModelAction
Microsoft.AspNetCore.App.Analyzers (1)
RouteEmbeddedLanguage\RoutePatternAnalyzer.cs (1)
160context.RegisterSemanticModelAction(AnalyzeSemanticModel);
Microsoft.AspNetCore.App.Analyzers.Test (1)
Infrastructure\WellKnownTypesTests.cs (1)
108context.RegisterSemanticModelAction(AnalyzeSemanticModel);
Microsoft.CodeAnalysis.CodeStyle (1)
src\Analyzers\Core\Analyzers\RemoveUnnecessaryImports\AbstractRemoveUnnecessaryImportsDiagnosticAnalyzer.cs (1)
78context.RegisterSemanticModelAction(AnalyzeSemanticModel);
Microsoft.CodeAnalysis.CSharp.CodeStyle (2)
src\Analyzers\CSharp\Analyzers\RemoveUnnecessarySuppressions\CSharpRemoveUnnecessaryNullableWarningSuppressionsDiagnosticAnalyzer.cs (1)
25=> context.RegisterSemanticModelAction(AnalyzeSemanticModel);
src\Analyzers\CSharp\Analyzers\RemoveUnreachableCode\CSharpRemoveUnreachableCodeDiagnosticAnalyzer.cs (1)
36=> context.RegisterSemanticModelAction(AnalyzeSemanticModel);
Microsoft.CodeAnalysis.CSharp.Emit3.UnitTests (1)
Diagnostics\DiagnosticAnalyzerTests.cs (1)
4501context.RegisterSemanticModelAction(context => { AssertSame(context.Options); RegisterSemanticModelActionInvoked = true; });
Microsoft.CodeAnalysis.CSharp.Features (2)
src\Analyzers\CSharp\Analyzers\RemoveUnnecessarySuppressions\CSharpRemoveUnnecessaryNullableWarningSuppressionsDiagnosticAnalyzer.cs (1)
25=> context.RegisterSemanticModelAction(AnalyzeSemanticModel);
src\Analyzers\CSharp\Analyzers\RemoveUnreachableCode\CSharpRemoveUnreachableCodeDiagnosticAnalyzer.cs (1)
36=> context.RegisterSemanticModelAction(AnalyzeSemanticModel);
Microsoft.CodeAnalysis.EditorFeatures.UnitTests (3)
CodeFixes\CodeFixServiceTests.cs (1)
1186context.RegisterSemanticModelAction(context =>
Diagnostics\DiagnosticAnalyzerServiceTests.cs (2)
979context.RegisterSemanticModelAction(c => c.ReportDiagnostic(Diagnostic.Create(s_semanticRule, c.SemanticModel.SyntaxTree.GetRoot().GetLocation()))); 995context.RegisterSemanticModelAction(c => c.ReportDiagnostic(Diagnostic.Create(s_semanticRule, c.SemanticModel.SyntaxTree.GetRoot().GetLocation())));
Microsoft.CodeAnalysis.Features (4)
EmbeddedLanguages\Json\LanguageServices\AbstractJsonDetectionAnalyzer.cs (1)
38=> context.RegisterSemanticModelAction(Analyze);
EmbeddedLanguages\Json\LanguageServices\AbstractJsonDiagnosticAnalyzer.cs (1)
32=> context.RegisterSemanticModelAction(Analyze);
EmbeddedLanguages\RegularExpressions\LanguageServices\AbstractRegexDiagnosticAnalyzer.cs (1)
38=> context.RegisterSemanticModelAction(Analyze);
src\Analyzers\Core\Analyzers\RemoveUnnecessaryImports\AbstractRemoveUnnecessaryImportsDiagnosticAnalyzer.cs (1)
78context.RegisterSemanticModelAction(AnalyzeSemanticModel);
Microsoft.CodeAnalysis.Test.Utilities (3)
Diagnostics\CommonDiagnosticAnalyzers.cs (2)
1105context.RegisterSemanticModelAction(context => 3122context.RegisterSemanticModelAction(context =>
Diagnostics\TestDiagnosticAnalyzer.cs (1)
45context.RegisterSemanticModelAction(this.AnalyzeSemanticModel);
Microsoft.CodeAnalysis.UnitTests (1)
Diagnostics\AnalysisContextInfoTests.cs (1)
78c.RegisterSemanticModelAction(b => ThrowIfMatch(nameof(c.RegisterSemanticModelAction), new AnalysisContextInfo(b.SemanticModel)));
Microsoft.ML.InternalCodeAnalyzer (1)
BestFriendAnalyzer.cs (1)
45context.RegisterSemanticModelAction(Analyze);