Open sandboxFocus

Method GetSemanticModel

GetSemanticModel(ICompilation, SyntaxTree)

Gets a cached SemanticModel for a syntax tree in the compilation.

Declaration
public static SemanticModel GetSemanticModel(this ICompilation compilation, SyntaxTree syntaxTree)
Parameters
Type Name Description
ICompilation compilation

The Metalama compilation.

SyntaxTree syntaxTree

The syntax tree.

Returns
Type Description
SemanticModel

The semantic model for the syntax tree.