Class Transpiler<TParser>
Transpiles content into another form
Inherited Members
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()
Namespace: Azos.CodeAnalysis.Transpilation
Assembly: Azos.dll
Syntax
public abstract class Transpiler<TParser> : CommonCodeProcessor, IConfigurable, ITranspiler, ICodeProcessor where TParser : IParser
Type Parameters
Name | Description |
---|---|
TParser |
Constructors
Transpiler(IAnalysisContext, TParser, MessageList, Boolean)
Declaration
protected Transpiler(IAnalysisContext context, TParser parser, MessageList messages = null, bool throwErrors = false)
Parameters
Type | Name | Description |
---|---|---|
IAnalysisContext | context | |
TParser | parser | |
MessageList | messages | |
System.Boolean | throwErrors |
Properties
HasTranspiled
Indicates whether Transpile() already happened
Declaration
public bool HasTranspiled { get; }
Property Value
Type | Description |
---|---|
System.Boolean |
Parser
Declaration
public TParser Parser { get; }
Property Value
Type | Description |
---|---|
TParser |
SourceParser
Declaration
public IParser SourceParser { get; }
Property Value
Type | Description |
---|---|
IParser |
Methods
DoTranspile()
Override to perform actual transpilation
Declaration
protected abstract void DoTranspile()
Transpile()
Performs transpilation if it has not been performed yet
Declaration
public void Transpile()