1 write to SemanticModelProvider
Microsoft.CodeAnalysis (1)
Compilation\Compilation.cs (1)
89this.SemanticModelProvider = semanticModelProvider;
18 references to SemanticModelProvider
Microsoft.CodeAnalysis (6)
Compilation\Compilation.cs (2)
327/// If <see cref="SemanticModelProvider"/> is non-null, it attempts to use <see cref="SemanticModelProvider.GetSemanticModel(SyntaxTree, Compilation, SemanticModelOptions)"/> 336/// it does not attempt to use the <see cref="SemanticModelProvider"/> to get a semantic model, but instead always creates a new semantic model.
Compilation\SemanticModelProvider.cs (1)
11/// This provider can be attached to a compilation, see <see cref="Compilation.SemanticModelProvider"/>.
DiagnosticAnalyzer\AnalyzerDriver.CompilationData.cs (1)
15SemanticModelProvider = (CachingSemanticModelProvider)compilation.SemanticModelProvider!;
DiagnosticAnalyzer\AnalyzerDriver.cs (1)
469Debug.Assert(compilation.SemanticModelProvider != null);
DiagnosticAnalyzer\CompilationWithAnalyzers.cs (1)
1189if (compilation.SemanticModelProvider == null)
Microsoft.CodeAnalysis.CSharp (11)
Compilation\CSharpCompilation.cs (10)
569this.SemanticModelProvider); 588this.SemanticModelProvider); 611this.SemanticModelProvider); 641this.SemanticModelProvider); 681this.SemanticModelProvider); 713this.SemanticModelProvider); 721if (this.SemanticModelProvider == semanticModelProvider) 756this.SemanticModelProvider, 2551if (SemanticModelProvider != null) 2553model = SemanticModelProvider.GetSemanticModel(syntaxTree, this, options);
Compiler\MethodCompiler.cs (1)
1155_compilation.SemanticModelProvider is CachingSemanticModelProvider cachingSemanticModelProvider)
Microsoft.CodeAnalysis.Test.Utilities (1)
Diagnostics\DiagnosticExtensions.cs (1)
316Debug.Assert(newCompilation.SemanticModelProvider != null);