RazorEngine


RoslynCompilerServiceBase

Defined in RazorEngine.Roslyn.dll.

Base compiler service class for roslyn compilers

Constructors

ConstructorDescription
new(codeLanguage, markupParserFactory)
Signature: (codeLanguage:RazorCodeLanguage * markupParserFactory:Func<ParserBase>) -> unit

Creates a new instance of the RoslynCompilerServiceBase class.

Instance members

Instance memberDescription
CompileType(context)
Signature: context:TypeContext -> Type * CompilationData
Modifiers: abstract

Configures and runs the compiler.

Returns:

CreateOptions(context)
Signature: context:TypeContext -> CompilationOptions
Modifiers: abstract

Create a empty CompilationOptions with the given namespace usings.

Returns:

GetEmptyCompilation(assemblyName)
Signature: assemblyName:string -> Compilation
Modifiers: abstract

Get a new empty compilation instance from the concrete implementation.

Returns:

GetSyntaxTree(...)
Signature: (sourceCode:string * sourceCodeFile:string) -> SyntaxTree
Modifiers: abstract

Gets a SyntaxTree from the given source code.

Returns:

Fork me on GitHub