Condividi tramite


Compilation.CommonGetSemanticModel(SyntaxTree, Boolean) Metodo

Definizione

Ottiene un SemanticModel oggetto per l'oggetto specificato syntaxTree. Se Microsoft.CodeAnalysis.Compilation.SemanticModelProvider è diverso da Null, tenta di usare Microsoft.CodeAnalysis.SemanticModelProvider.GetSemanticModel(Microsoft.CodeAnalysis.SyntaxTree,Microsoft.CodeAnalysis.Compilation,System.Boolean) per ottenere un modello semantico. In caso contrario, crea un nuovo modello semantico usando Microsoft.CodeAnalysis.Compilation.CreateSemanticModel(Microsoft.CodeAnalysis.SyntaxTree,System.Boolean).

protected:
 abstract Microsoft::CodeAnalysis::SemanticModel ^ CommonGetSemanticModel(Microsoft::CodeAnalysis::SyntaxTree ^ syntaxTree, bool ignoreAccessibility);
protected abstract Microsoft.CodeAnalysis.SemanticModel CommonGetSemanticModel (Microsoft.CodeAnalysis.SyntaxTree syntaxTree, bool ignoreAccessibility);
abstract member CommonGetSemanticModel : Microsoft.CodeAnalysis.SyntaxTree * bool -> Microsoft.CodeAnalysis.SemanticModel
Protected MustOverride Function CommonGetSemanticModel (syntaxTree As SyntaxTree, ignoreAccessibility As Boolean) As SemanticModel

Parametri

syntaxTree
SyntaxTree
ignoreAccessibility
Boolean

Restituisce

Si applica a