@maniascript/api
Version:
Maniascript API generator
137 lines (136 loc) • 5.22 kB
TypeScript
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 declare class DocParserVisitor<Result> extends AbstractParseTreeVisitor<Result> {
/**
* Visit a parse tree produced by `DocParser.program`.
* @param ctx the parse tree
* @return the visitor result
*/
visitProgram?: (ctx: ProgramContext) => Result;
/**
* Visit a parse tree produced by `DocParser.typeDeclaration`.
* @param ctx the parse tree
* @return the visitor result
*/
visitTypeDeclaration?: (ctx: TypeDeclarationContext) => Result;
/**
* Visit a parse tree produced by `DocParser.classDeclaration`.
* @param ctx the parse tree
* @return the visitor result
*/
visitClassDeclaration?: (ctx: ClassDeclarationContext) => Result;
/**
* Visit a parse tree produced by `DocParser.namespaceDeclaration`.
* @param ctx the parse tree
* @return the visitor result
*/
visitNamespaceDeclaration?: (ctx: NamespaceDeclarationContext) => Result;
/**
* Visit a parse tree produced by `DocParser.memberDeclarationList`.
* @param ctx the parse tree
* @return the visitor result
*/
visitMemberDeclarationList?: (ctx: MemberDeclarationListContext) => Result;
/**
* Visit a parse tree produced by `DocParser.variableDeclaration`.
* @param ctx the parse tree
* @return the visitor result
*/
visitVariableDeclaration?: (ctx: VariableDeclarationContext) => Result;
/**
* Visit a parse tree produced by `DocParser.functionDeclaration`.
* @param ctx the parse tree
* @return the visitor result
*/
visitFunctionDeclaration?: (ctx: FunctionDeclarationContext) => Result;
/**
* Visit a parse tree produced by `DocParser.functionParameterList`.
* @param ctx the parse tree
* @return the visitor result
*/
visitFunctionParameterList?: (ctx: FunctionParameterListContext) => Result;
/**
* Visit a parse tree produced by `DocParser.functionParameter`.
* @param ctx the parse tree
* @return the visitor result
*/
visitFunctionParameter?: (ctx: FunctionParameterContext) => Result;
/**
* Visit a parse tree produced by `DocParser.enumDeclaration`.
* @param ctx the parse tree
* @return the visitor result
*/
visitEnumDeclaration?: (ctx: EnumDeclarationContext) => Result;
/**
* Visit a parse tree produced by `DocParser.enumValueList`.
* @param ctx the parse tree
* @return the visitor result
*/
visitEnumValueList?: (ctx: EnumValueListContext) => Result;
/**
* Visit a parse tree produced by `DocParser.enumValue`.
* @param ctx the parse tree
* @return the visitor result
*/
visitEnumValue?: (ctx: EnumValueContext) => Result;
/**
* Visit a parse tree produced by `DocParser.type`.
* @param ctx the parse tree
* @return the visitor result
*/
visitType?: (ctx: TypeContext) => Result;
/**
* Visit a parse tree produced by `DocParser.typeArray`.
* @param ctx the parse tree
* @return the visitor result
*/
visitTypeArray?: (ctx: TypeArrayContext) => Result;
/**
* Visit a parse tree produced by `DocParser.typeArrayValue`.
* @param ctx the parse tree
* @return the visitor result
*/
visitTypeArrayValue?: (ctx: TypeArrayValueContext) => Result;
/**
* Visit a parse tree produced by `DocParser.typeClass`.
* @param ctx the parse tree
* @return the visitor result
*/
visitTypeClass?: (ctx: TypeClassContext) => Result;
/**
* Visit a parse tree produced by `DocParser.typeEnum`.
* @param ctx the parse tree
* @return the visitor result
*/
visitTypeEnum?: (ctx: TypeEnumContext) => Result;
/**
* Visit a parse tree produced by `DocParser.typeLiteral`.
* @param ctx the parse tree
* @return the visitor result
*/
visitTypeLiteral?: (ctx: TypeLiteralContext) => Result;
}