LGTemplateParserVisitor interface
This interface defines a complete generic visitor for a parse tree produced
by LGTemplateParser
.
- Extends
-
ParseTreeVisitor<Result>
Properties
visit |
Visit a parse tree produced by |
visit |
Visit a parse tree produced by |
visit |
Visit a parse tree produced by |
visit |
Visit a parse tree produced by |
visit |
Visit a parse tree produced by |
visit |
Visit a parse tree produced by |
visit |
Visit a parse tree produced by |
visit |
Visit a parse tree produced by |
visit |
Visit a parse tree produced by the |
visit |
Visit a parse tree produced by |
visit |
Visit a parse tree produced by |
visit |
Visit a parse tree produced by |
visit |
Visit a parse tree produced by the |
visit |
Visit a parse tree produced by |
visit |
Visit a parse tree produced by |
visit |
Visit a parse tree produced by the |
visit |
Visit a parse tree produced by |
visit |
Visit a parse tree produced by |
visit |
Visit a parse tree produced by |
visit |
Visit a parse tree produced by |
visit |
Visit a parse tree produced by the |
visit |
Visit a parse tree produced by |
visit |
Visit a parse tree produced by |
visit |
Visit a parse tree produced by |
visit |
Visit a parse tree produced by |
visit |
Visit a parse tree produced by |
Inherited Methods
visit(Parse |
Visit a parse tree, and return a user-defined result of the operation. |
visit |
Visit the children of a node, and return a user-defined result of the operation. |
visit |
Visit an error node, and return a user-defined result of the operation. |
visit |
Visit a terminal node, and return a user-defined result of the operation. |
Property Details
visitBody
Visit a parse tree produced by LGTemplateParser.body
.
visitBody?: (ctx: BodyContext) => Result
Property Value
(ctx: BodyContext) => Result
visitErrorStructuredName
Visit a parse tree produced by LGTemplateParser.errorStructuredName
.
visitErrorStructuredName?: (ctx: ErrorStructuredNameContext) => Result
Property Value
(ctx: ErrorStructuredNameContext) => Result
visitErrorStructureLine
Visit a parse tree produced by LGTemplateParser.errorStructureLine
.
visitErrorStructureLine?: (ctx: ErrorStructureLineContext) => Result
Property Value
(ctx: ErrorStructureLineContext) => Result
visitErrorTemplateString
Visit a parse tree produced by LGTemplateParser.errorTemplateString
.
visitErrorTemplateString?: (ctx: ErrorTemplateStringContext) => Result
Property Value
(ctx: ErrorTemplateStringContext) => Result
visitExpression
Visit a parse tree produced by LGTemplateParser.expression
.
visitExpression?: (ctx: ExpressionContext) => Result
Property Value
(ctx: ExpressionContext) => Result
visitExpressionInStructure
Visit a parse tree produced by LGTemplateParser.expressionInStructure
.
visitExpressionInStructure?: (ctx: ExpressionInStructureContext) => Result
Property Value
(ctx: ExpressionInStructureContext) => Result
visitIfCondition
Visit a parse tree produced by LGTemplateParser.ifCondition
.
visitIfCondition?: (ctx: IfConditionContext) => Result
Property Value
(ctx: IfConditionContext) => Result
visitIfConditionRule
Visit a parse tree produced by LGTemplateParser.ifConditionRule
.
visitIfConditionRule?: (ctx: IfConditionRuleContext) => Result
Property Value
(ctx: IfConditionRuleContext) => Result
visitIfElseBody
Visit a parse tree produced by the ifElseBody
labeled alternative in LGTemplateParser.body
.
visitIfElseBody?: (ctx: IfElseBodyContext) => Result
Property Value
(ctx: IfElseBodyContext) => Result
visitIfElseTemplateBody
Visit a parse tree produced by LGTemplateParser.ifElseTemplateBody
.
visitIfElseTemplateBody?: (ctx: IfElseTemplateBodyContext) => Result
Property Value
(ctx: IfElseTemplateBodyContext) => Result
visitKeyValueStructureLine
Visit a parse tree produced by LGTemplateParser.keyValueStructureLine
.
visitKeyValueStructureLine?: (ctx: KeyValueStructureLineContext) => Result
Property Value
(ctx: KeyValueStructureLineContext) => Result
visitKeyValueStructureValue
Visit a parse tree produced by LGTemplateParser.keyValueStructureValue
.
visitKeyValueStructureValue?: (ctx: KeyValueStructureValueContext) => Result
Property Value
(ctx: KeyValueStructureValueContext) => Result
visitNormalBody
Visit a parse tree produced by the normalBody
labeled alternative in LGTemplateParser.body
.
visitNormalBody?: (ctx: NormalBodyContext) => Result
Property Value
(ctx: NormalBodyContext) => Result
visitNormalTemplateBody
Visit a parse tree produced by LGTemplateParser.normalTemplateBody
.
visitNormalTemplateBody?: (ctx: NormalTemplateBodyContext) => Result
Property Value
(ctx: NormalTemplateBodyContext) => Result
visitNormalTemplateString
Visit a parse tree produced by LGTemplateParser.normalTemplateString
.
visitNormalTemplateString?: (ctx: NormalTemplateStringContext) => Result
Property Value
(ctx: NormalTemplateStringContext) => Result
visitStructuredBody
Visit a parse tree produced by the structuredBody
labeled alternative in LGTemplateParser.body
.
visitStructuredBody?: (ctx: StructuredBodyContext) => Result
Property Value
(ctx: StructuredBodyContext) => Result
visitStructuredBodyContentLine
Visit a parse tree produced by LGTemplateParser.structuredBodyContentLine
.
visitStructuredBodyContentLine?: (ctx: StructuredBodyContentLineContext) => Result
Property Value
(ctx: StructuredBodyContentLineContext) => Result
visitStructuredBodyEndLine
Visit a parse tree produced by LGTemplateParser.structuredBodyEndLine
.
visitStructuredBodyEndLine?: (ctx: StructuredBodyEndLineContext) => Result
Property Value
(ctx: StructuredBodyEndLineContext) => Result
visitStructuredBodyNameLine
Visit a parse tree produced by LGTemplateParser.structuredBodyNameLine
.
visitStructuredBodyNameLine?: (ctx: StructuredBodyNameLineContext) => Result
Property Value
(ctx: StructuredBodyNameLineContext) => Result
visitStructuredTemplateBody
Visit a parse tree produced by LGTemplateParser.structuredTemplateBody
.
visitStructuredTemplateBody?: (ctx: StructuredTemplateBodyContext) => Result
Property Value
(ctx: StructuredTemplateBodyContext) => Result
visitSwitchCaseBody
Visit a parse tree produced by the switchCaseBody
labeled alternative in LGTemplateParser.body
.
visitSwitchCaseBody?: (ctx: SwitchCaseBodyContext) => Result
Property Value
(ctx: SwitchCaseBodyContext) => Result
visitSwitchCaseRule
Visit a parse tree produced by LGTemplateParser.switchCaseRule
.
visitSwitchCaseRule?: (ctx: SwitchCaseRuleContext) => Result
Property Value
(ctx: SwitchCaseRuleContext) => Result
visitSwitchCaseStat
Visit a parse tree produced by LGTemplateParser.switchCaseStat
.
visitSwitchCaseStat?: (ctx: SwitchCaseStatContext) => Result
Property Value
(ctx: SwitchCaseStatContext) => Result
visitSwitchCaseTemplateBody
Visit a parse tree produced by LGTemplateParser.switchCaseTemplateBody
.
visitSwitchCaseTemplateBody?: (ctx: SwitchCaseTemplateBodyContext) => Result
Property Value
(ctx: SwitchCaseTemplateBodyContext) => Result
visitTemplate
Visit a parse tree produced by LGTemplateParser.template
.
visitTemplate?: (ctx: TemplateContext) => Result
Property Value
(ctx: TemplateContext) => Result
visitTemplateString
Visit a parse tree produced by LGTemplateParser.templateString
.
visitTemplateString?: (ctx: TemplateStringContext) => Result
Property Value
(ctx: TemplateStringContext) => Result
Inherited Method Details
visit(ParseTree)
Visit a parse tree, and return a user-defined result of the operation.
function visit(tree: ParseTree): Result
Parameters
- tree
-
ParseTree
The buildParseTree to visit.
Returns
Result
The result of visiting the parse tree.
Inherited From ParseTreeVisitor.visit
visitChildren(RuleNode)
Visit the children of a node, and return a user-defined result of the operation.
function visitChildren(node: RuleNode): Result
Parameters
- node
-
RuleNode
The <xref:RuleNode> whose children should be visited.
Returns
Result
The result of visiting the children of the node.
Inherited From ParseTreeVisitor.visitChildren
visitErrorNode(ErrorNode)
Visit an error node, and return a user-defined result of the operation.
function visitErrorNode(node: ErrorNode): Result
Parameters
- node
-
ErrorNode
The visitErrorNode(ErrorNode) to visit.
Returns
Result
The result of visiting the node.
Inherited From ParseTreeVisitor.visitErrorNode
visitTerminal(TerminalNode)
Visit a terminal node, and return a user-defined result of the operation.
function visitTerminal(node: TerminalNode): Result
Parameters
- node
-
TerminalNode
The createTerminalNode(ParserRuleContext, Token) to visit.
Returns
Result
The result of visiting the node.
Inherited From ParseTreeVisitor.visitTerminal