File: Compilation\SemanticModelProvider.cs
Web Access
Project: src\src\Compilers\Core\Portable\Microsoft.CodeAnalysis.csproj (Microsoft.CodeAnalysis)
// Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.
// See the LICENSE file in the project root for more information.
 
#pragma warning disable RSEXPERIMENTAL001 // internal usage of experimental API
 
namespace Microsoft.CodeAnalysis
{
    /// <summary>
    /// Provides semantic models for syntax trees in a compilation.
    /// This provider can be attached to a compilation, see <see cref="Compilation.SemanticModelProvider"/>.
    /// </summary>
    internal abstract class SemanticModelProvider
    {
        /// <summary>
        /// Gets a <see cref="SemanticModel"/> for the given <paramref name="tree"/> that belongs to the given <paramref name="compilation"/>.
        /// </summary>
        public abstract SemanticModel GetSemanticModel(SyntaxTree tree, Compilation compilation, SemanticModelOptions options = default);
    }
}