12 references to SemanticModel
Microsoft.CodeAnalysis.CSharp.CodeStyle (3)
CSharpAnalyzerOptionsProvider.cs (1)
144=> GetCSharpAnalyzerOptions(context.Options, context.SemanticModel.SyntaxTree);
CSharpRemoveUnnecessaryNullableDirectiveDiagnosticAnalyzer.cs (2)
85using var simplifier = new NullableImpactingSpanWalker(context.SemanticModel, positionOfFirstReducingNullableDirective, ignoredSpans: null, context.CancellationToken); 279var syntaxTreeState = GetOrCreateSyntaxTreeState(context.CodeBlock.SyntaxTree, defaultCompleted: false, context.SemanticModel, context.CancellationToken);
Microsoft.CodeAnalysis.CSharp.Features (4)
CSharpAnalyzerOptionsProvider.cs (1)
144=> GetCSharpAnalyzerOptions(context.Options, context.SemanticModel.SyntaxTree);
CSharpRemoveUnnecessaryNullableDirectiveDiagnosticAnalyzer.cs (2)
85using var simplifier = new NullableImpactingSpanWalker(context.SemanticModel, positionOfFirstReducingNullableDirective, ignoredSpans: null, context.CancellationToken); 279var syntaxTreeState = GetOrCreateSyntaxTreeState(context.CodeBlock.SyntaxTree, defaultCompleted: false, context.SemanticModel, context.CancellationToken);
Diagnostics\Analyzers\CSharpSimplifyTypeNamesDiagnosticAnalyzer.cs (1)
52var semanticModel = context.SemanticModel;
Microsoft.CodeAnalysis.CSharp.Semantic.UnitTests (1)
Semantics\TopLevelStatementsTests.cs (1)
6920var model = context.SemanticModel;
Microsoft.CodeAnalysis.UnitTests (1)
Diagnostics\AnalysisContextInfoTests.cs (1)
72c.RegisterCodeBlockAction(b => ThrowIfMatch(nameof(c.RegisterCodeBlockAction), new AnalysisContextInfo(b.SemanticModel.Compilation, b.OwningSymbol, b.CodeBlock)));
Microsoft.CodeAnalysis.VisualBasic.CodeStyle (1)
VisualBasicAnalyzerOptionsProvider.vb (1)
122Return GetVisualBasicAnalyzerOptions(context.Options, context.SemanticModel.SyntaxTree)
Microsoft.CodeAnalysis.VisualBasic.Features (2)
Diagnostics\Analyzers\VisualBasicSimplifyTypeNamesDiagnosticAnalyzer.vb (1)
39Dim semanticModel = context.SemanticModel
VisualBasicAnalyzerOptionsProvider.vb (1)
122Return GetVisualBasicAnalyzerOptions(context.Options, context.SemanticModel.SyntaxTree)