RazorEngine


CompilerServiceBase

Defined in RazorEngine.dll.
Provides a base implementation of a compiler service.

Constructors

ConstructorDescription
new(codeLanguage, markupParserFactory)
Signature: (codeLanguage:RazorCodeLanguage * markupParserFactory:ParserBaseCreator) -> unit
Initialises a new instance of CompilerServiceBase

Instance members

Instance memberDescription
BuildTypeName(templateType, modelType)
Signature: (templateType:Type * modelType:Type) -> string
Modifiers: abstract
Builds a type name for the specified template type.
CodeInspectors()
Signature: unit -> IEnumerable<ICodeInspector>
Modifiers: abstract
Gets or sets the set of code inspectors.
CodeLanguage()
Signature: unit -> RazorCodeLanguage
Gets the code language.
CompileType(context)
Signature: context:TypeContext -> Type * CompilationData
Modifiers: abstract
Compiles the type defined in the specified type context.
Debug()
Signature: unit -> bool
Modifiers: abstract
Gets or sets whether the compiler service is operating in debug mode.
GetCodeCompileUnit(...)
Signature: (className:string * template:ITemplateSource * namespaceImports:ISet<string> * templateType:Type * modelType:Type) -> string
GetCodeCompileUnit(context)
Signature: context:TypeContext -> string
Gets the code compile unit used to compile a type.
IncludeAssemblies()
Signature: unit -> IEnumerable<string>
Modifiers: abstract
Returns a set of assemblies that must be referenced by the compiled template.
IncludeReferences()
Signature: unit -> IEnumerable<CompilerReference>
Modifiers: abstract
Returns a set of references that must be referenced by the compiled template.
InspectSource(results, context)
Signature: (results:GeneratorResults * context:TypeContext) -> string
Modifiers: abstract
Inspects the source and returns the source code.
MarkupParserFactory()
Signature: unit -> ParserBaseCreator
Gets the markup parser.
ReferenceResolver()
Signature: unit -> IReferenceResolver
Modifiers: abstract
Gets or sets the assembly resolver.
SourceFileExtension()
Signature: unit -> string
Modifiers: abstract
Extension of a source file without dot ("cs" for C# files or "vb" for VB.NET files).
Fork me on GitHub