C# Class Rosetta.ScriptSharp.Definition.AST.ProgramWrapper

Acts like a wrapper for ProgramDefinitionASTWalker in order to provide an easy interface for converting C# code.
Show file Open project: andry-tino/Rosetta Class Usage Examples

Public Methods

Method Description
ProgramWrapper ( string source, string assemblyPath = null ) : System

Initializes a new instance of the ProgramWrapper class.

Private Methods

Method Description
GetCompilation ( string path, CSharpSyntaxTree sourceTree ) : Microsoft.CodeAnalysis.CSharp.CSharpCompilation
Initialize ( ) : void
ValidatePaths ( string paths, string argumentName, string message ) : void

Method Details

ProgramWrapper() public method

Initializes a new instance of the ProgramWrapper class.
public ProgramWrapper ( string source, string assemblyPath = null ) : System
source string The source code
assemblyPath string The path to assembly for semantic model
return System