@maniascript/api
Version:
Maniascript API generator
137 lines (136 loc) • 4.46 kB
JavaScript
import { AbstractParseTreeVisitor } from "antlr4ng";
import { ProgramContext } from "./DocParser.js";
import { TypeDeclarationContext } from "./DocParser.js";
import { ClassDeclarationContext } from "./DocParser.js";
import { NamespaceDeclarationContext } from "./DocParser.js";
import { MemberDeclarationListContext } from "./DocParser.js";
import { VariableDeclarationContext } from "./DocParser.js";
import { FunctionDeclarationContext } from "./DocParser.js";
import { FunctionParameterListContext } from "./DocParser.js";
import { FunctionParameterContext } from "./DocParser.js";
import { EnumDeclarationContext } from "./DocParser.js";
import { EnumValueListContext } from "./DocParser.js";
import { EnumValueContext } from "./DocParser.js";
import { TypeContext } from "./DocParser.js";
import { TypeArrayContext } from "./DocParser.js";
import { TypeArrayValueContext } from "./DocParser.js";
import { TypeClassContext } from "./DocParser.js";
import { TypeEnumContext } from "./DocParser.js";
import { TypeLiteralContext } from "./DocParser.js";
/**
* This interface defines a complete generic visitor for a parse tree produced
* by `DocParser`.
*
* @param <Result> The return type of the visit operation. Use `void` for
* operations with no return type.
*/
export class DocParserVisitor extends AbstractParseTreeVisitor {
/**
* Visit a parse tree produced by `DocParser.program`.
* @param ctx the parse tree
* @return the visitor result
*/
visitProgram;
/**
* Visit a parse tree produced by `DocParser.typeDeclaration`.
* @param ctx the parse tree
* @return the visitor result
*/
visitTypeDeclaration;
/**
* Visit a parse tree produced by `DocParser.classDeclaration`.
* @param ctx the parse tree
* @return the visitor result
*/
visitClassDeclaration;
/**
* Visit a parse tree produced by `DocParser.namespaceDeclaration`.
* @param ctx the parse tree
* @return the visitor result
*/
visitNamespaceDeclaration;
/**
* Visit a parse tree produced by `DocParser.memberDeclarationList`.
* @param ctx the parse tree
* @return the visitor result
*/
visitMemberDeclarationList;
/**
* Visit a parse tree produced by `DocParser.variableDeclaration`.
* @param ctx the parse tree
* @return the visitor result
*/
visitVariableDeclaration;
/**
* Visit a parse tree produced by `DocParser.functionDeclaration`.
* @param ctx the parse tree
* @return the visitor result
*/
visitFunctionDeclaration;
/**
* Visit a parse tree produced by `DocParser.functionParameterList`.
* @param ctx the parse tree
* @return the visitor result
*/
visitFunctionParameterList;
/**
* Visit a parse tree produced by `DocParser.functionParameter`.
* @param ctx the parse tree
* @return the visitor result
*/
visitFunctionParameter;
/**
* Visit a parse tree produced by `DocParser.enumDeclaration`.
* @param ctx the parse tree
* @return the visitor result
*/
visitEnumDeclaration;
/**
* Visit a parse tree produced by `DocParser.enumValueList`.
* @param ctx the parse tree
* @return the visitor result
*/
visitEnumValueList;
/**
* Visit a parse tree produced by `DocParser.enumValue`.
* @param ctx the parse tree
* @return the visitor result
*/
visitEnumValue;
/**
* Visit a parse tree produced by `DocParser.type`.
* @param ctx the parse tree
* @return the visitor result
*/
visitType;
/**
* Visit a parse tree produced by `DocParser.typeArray`.
* @param ctx the parse tree
* @return the visitor result
*/
visitTypeArray;
/**
* Visit a parse tree produced by `DocParser.typeArrayValue`.
* @param ctx the parse tree
* @return the visitor result
*/
visitTypeArrayValue;
/**
* Visit a parse tree produced by `DocParser.typeClass`.
* @param ctx the parse tree
* @return the visitor result
*/
visitTypeClass;
/**
* Visit a parse tree produced by `DocParser.typeEnum`.
* @param ctx the parse tree
* @return the visitor result
*/
visitTypeEnum;
/**
* Visit a parse tree produced by `DocParser.typeLiteral`.
* @param ctx the parse tree
* @return the visitor result
*/
visitTypeLiteral;
}