C# Class Rosetta.AST.Helpers.SemanticUtils

Helper for interacting with the SemanticModel.
Mostra file Open project: andry-tino/Rosetta

Public Methods

Method 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

Method Description
GetMsCoreLibMetadataReference ( ) : Microsoft.CodeAnalysis.PortableExecutableReference

Method Details

RetrieveCompilation() public static method

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

RetrieveSemanticModel() public static method

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

RetrieveSemanticModel() public static method

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