C# Class Rosetta.AST.Helpers.SemanticUtils

Helper for interacting with the SemanticModel.
Afficher le fichier Open project: andry-tino/Rosetta

Méthodes publiques

Méthode Description
RetrieveCompilation ( string name, string path, CSharpSyntaxTree sourceTree, bool loadMsCoreLib = false ) : Microsoft.CodeAnalysis.CSharp.CSharpCompilation

RetrieveSemanticModel ( Compilation compilation, CSharpSyntaxTree sourceTree ) : Microsoft.CodeAnalysis.SemanticModel

RetrieveSemanticModel ( string name, string path, CSharpSyntaxTree sourceTree, bool loadMsCoreLib = false ) : Microsoft.CodeAnalysis.SemanticModel

Private Methods

Méthode Description
GetMsCoreLibMetadataReference ( ) : Microsoft.CodeAnalysis.PortableExecutableReference

Method Details

RetrieveCompilation() public static méthode

public static RetrieveCompilation ( string name, string path, CSharpSyntaxTree sourceTree, bool loadMsCoreLib = false ) : Microsoft.CodeAnalysis.CSharp.CSharpCompilation
name string
path string
sourceTree CSharpSyntaxTree
loadMsCoreLib bool
Résultat Microsoft.CodeAnalysis.CSharp.CSharpCompilation

RetrieveSemanticModel() public static méthode

public static RetrieveSemanticModel ( Compilation compilation, CSharpSyntaxTree sourceTree ) : Microsoft.CodeAnalysis.SemanticModel
compilation Compilation
sourceTree CSharpSyntaxTree
Résultat Microsoft.CodeAnalysis.SemanticModel

RetrieveSemanticModel() public static méthode

public static RetrieveSemanticModel ( string name, string path, CSharpSyntaxTree sourceTree, bool loadMsCoreLib = false ) : Microsoft.CodeAnalysis.SemanticModel
name string
path string
sourceTree CSharpSyntaxTree
loadMsCoreLib bool
Résultat Microsoft.CodeAnalysis.SemanticModel