Class LJSFragmentTranspiler
Transpiles a single LJS fragment
Inheritance
System.Object
LJSFragmentTranspiler
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()
Assembly: Azos.dll
Syntax
public class LJSFragmentTranspiler : Transpiler<LJSParser>, IConfigurable, ITranspiler, ICodeProcessor
Constructors
LJSFragmentTranspiler(LJSUnitTranspilationContext, LJSParser, MessageList, Boolean)
Declaration
public LJSFragmentTranspiler(LJSUnitTranspilationContext context, LJSParser parser, MessageList messages = null, bool throwErrors = false)
Parameters
Properties
Language
Declaration
public override Language Language { get; }
Property Value
Overrides
UnitContext
Declaration
public LJSUnitTranspilationContext UnitContext { get; }
Property Value
Methods
DoEmitAttributeNode(StringBuilder, Int32, String, LJSAttributeNode)
Declaration
protected virtual string DoEmitAttributeNode(StringBuilder output, int indentLevel, string idParent, LJSAttributeNode node)
Parameters
Type |
Name |
Description |
System.Text.StringBuilder |
output |
|
System.Int32 |
indentLevel |
|
System.String |
idParent |
|
LJSAttributeNode |
node |
|
Returns
Type |
Description |
System.String |
|
DoEmitContentNode(StringBuilder, Int32, String, LJSContentNode)
Declaration
protected virtual string DoEmitContentNode(StringBuilder output, int indentLevel, string idParent, LJSContentNode node)
Parameters
Type |
Name |
Description |
System.Text.StringBuilder |
output |
|
System.Int32 |
indentLevel |
|
System.String |
idParent |
|
LJSContentNode |
node |
|
Returns
Type |
Description |
System.String |
|
DoEmitScriptNode(StringBuilder, Int32, String, LJSScriptNode)
Declaration
protected virtual string DoEmitScriptNode(StringBuilder output, int indentLevel, string idParent, LJSScriptNode node)
Parameters
Type |
Name |
Description |
System.Text.StringBuilder |
output |
|
System.Int32 |
indentLevel |
|
System.String |
idParent |
|
LJSScriptNode |
node |
|
Returns
Type |
Description |
System.String |
|
DoEmitSectionNode(StringBuilder, Int32, String, LJSSectionNode)
Declaration
protected virtual string DoEmitSectionNode(StringBuilder output, int indentLevel, string idParent, LJSSectionNode node)
Parameters
Type |
Name |
Description |
System.Text.StringBuilder |
output |
|
System.Int32 |
indentLevel |
|
System.String |
idParent |
|
LJSSectionNode |
node |
|
Returns
Type |
Description |
System.String |
|
DoEvaluateExpression(String)
Declaration
protected virtual string DoEvaluateExpression(string source)
Parameters
Type |
Name |
Description |
System.String |
source |
|
Returns
Type |
Description |
System.String |
|
DoPad(StringBuilder, Int32)
Declaration
protected virtual void DoPad(StringBuilder output, int indentLevel)
Parameters
Type |
Name |
Description |
System.Text.StringBuilder |
output |
|
System.Int32 |
indentLevel |
|
DoTranspile()
Declaration
protected override void DoTranspile()
Overrides
Azos.CodeAnalysis.Transpilation.Transpiler<Azos.CodeAnalysis.Laconfig.LJSParser>.DoTranspile()
DoTranspileNode(StringBuilder, Int32, String, LJSNode)
Declaration
protected virtual void DoTranspileNode(StringBuilder output, int indentLevel, string idParent, LJSNode node)
Parameters
Type |
Name |
Description |
System.Text.StringBuilder |
output |
|
System.Int32 |
indentLevel |
|
System.String |
idParent |
|
LJSNode |
node |
|
DoTranspileTree(LJSTree)
Declaration
protected virtual string DoTranspileTree(LJSTree tree)
Parameters
Returns
Type |
Description |
System.String |
|
MessageCodeToString(Int32)
Declaration
public override string MessageCodeToString(int code)
Parameters
Type |
Name |
Description |
System.Int32 |
code |
|
Returns
Type |
Description |
System.String |
|
Overrides
Implements
Extension Methods