LGFileParserVisitor interface

This interface defines a complete generic visitor for a parse tree produced by LGFileParser.

Extends

ParseTreeVisitor<Result>

Properties

visitCommentDefinition

Visit a parse tree produced by LGFileParser.commentDefinition.

visitErrorDefinition

Visit a parse tree produced by LGFileParser.errorDefinition.

visitFile

Visit a parse tree produced by LGFileParser.file.

visitImportDefinition

Visit a parse tree produced by LGFileParser.importDefinition.

visitOptionDefinition

Visit a parse tree produced by LGFileParser.optionDefinition.

visitParagraph

Visit a parse tree produced by LGFileParser.paragraph.

visitTemplateBody

Visit a parse tree produced by LGFileParser.templateBody.

visitTemplateBodyLine

Visit a parse tree produced by LGFileParser.templateBodyLine.

visitTemplateDefinition

Visit a parse tree produced by LGFileParser.templateDefinition.

visitTemplateNameLine

Visit a parse tree produced by LGFileParser.templateNameLine.

Inherited Methods

visit(ParseTree)

Visit a parse tree, and return a user-defined result of the operation.

visitChildren(RuleNode)

Visit the children of a node, and return a user-defined result of the operation.

visitErrorNode(ErrorNode)

Visit an error node, and return a user-defined result of the operation.

visitTerminal(TerminalNode)

Visit a terminal node, and return a user-defined result of the operation.

Property Details

visitCommentDefinition

Visit a parse tree produced by LGFileParser.commentDefinition.

visitCommentDefinition?: (ctx: CommentDefinitionContext) => Result

Property Value

(ctx: CommentDefinitionContext) => Result

visitErrorDefinition

Visit a parse tree produced by LGFileParser.errorDefinition.

visitErrorDefinition?: (ctx: ErrorDefinitionContext) => Result

Property Value

(ctx: ErrorDefinitionContext) => Result

visitFile

Visit a parse tree produced by LGFileParser.file.

visitFile?: (ctx: FileContext) => Result

Property Value

(ctx: FileContext) => Result

visitImportDefinition

Visit a parse tree produced by LGFileParser.importDefinition.

visitImportDefinition?: (ctx: ImportDefinitionContext) => Result

Property Value

(ctx: ImportDefinitionContext) => Result

visitOptionDefinition

Visit a parse tree produced by LGFileParser.optionDefinition.

visitOptionDefinition?: (ctx: OptionDefinitionContext) => Result

Property Value

(ctx: OptionDefinitionContext) => Result

visitParagraph

Visit a parse tree produced by LGFileParser.paragraph.

visitParagraph?: (ctx: ParagraphContext) => Result

Property Value

(ctx: ParagraphContext) => Result

visitTemplateBody

Visit a parse tree produced by LGFileParser.templateBody.

visitTemplateBody?: (ctx: TemplateBodyContext) => Result

Property Value

(ctx: TemplateBodyContext) => Result

visitTemplateBodyLine

Visit a parse tree produced by LGFileParser.templateBodyLine.

visitTemplateBodyLine?: (ctx: TemplateBodyLineContext) => Result

Property Value

(ctx: TemplateBodyLineContext) => Result

visitTemplateDefinition

Visit a parse tree produced by LGFileParser.templateDefinition.

visitTemplateDefinition?: (ctx: TemplateDefinitionContext) => Result

Property Value

(ctx: TemplateDefinitionContext) => Result

visitTemplateNameLine

Visit a parse tree produced by LGFileParser.templateNameLine.

visitTemplateNameLine?: (ctx: TemplateNameLineContext) => Result

Property Value

(ctx: TemplateNameLineContext) => 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