@apexdevtools/apex-parser 5.0.0-beta.5 → 5.1.0-beta.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +13 -1
- package/README.md +55 -4
- package/dist/browser/apex-parser.mjs +64579 -0
- package/dist/browser/apex-parser.mjs.map +1 -0
- package/dist/browser/apex-parser.umd.js +64784 -0
- package/dist/browser/apex-parser.umd.js.map +1 -0
- package/dist/cjs/ApexErrorListener.cjs +31 -0
- package/dist/cjs/ApexErrorListener.cjs.map +1 -0
- package/dist/cjs/ApexParserFactory.cjs +83 -0
- package/dist/cjs/ApexParserFactory.cjs.map +1 -0
- package/dist/cjs/CaseInsensitiveInputStream.cjs +30 -0
- package/dist/cjs/CaseInsensitiveInputStream.cjs.map +1 -0
- package/dist/cjs/Check.cjs +172 -0
- package/dist/cjs/Check.cjs.map +1 -0
- package/dist/cjs/antlr/ApexLexer.cjs +23244 -0
- package/dist/cjs/antlr/ApexLexer.cjs.map +1 -0
- package/dist/cjs/antlr/ApexParser.cjs +38369 -0
- package/dist/cjs/antlr/ApexParser.cjs.map +1 -0
- package/dist/cjs/antlr/ApexParserListener.cjs +1915 -0
- package/dist/cjs/antlr/ApexParserListener.cjs.map +1 -0
- package/dist/cjs/antlr/ApexParserVisitor.cjs +1147 -0
- package/dist/cjs/antlr/ApexParserVisitor.cjs.map +1 -0
- package/dist/cjs/index.cjs +214 -0
- package/dist/cjs/index.cjs.map +1 -0
- package/dist/esm/ApexErrorListener.js +27 -0
- package/dist/esm/ApexErrorListener.js.map +1 -0
- package/dist/esm/ApexParserFactory.js +78 -0
- package/dist/esm/ApexParserFactory.js.map +1 -0
- package/dist/esm/CaseInsensitiveInputStream.js +28 -0
- package/dist/esm/CaseInsensitiveInputStream.js.map +1 -0
- package/dist/esm/Check.js +169 -0
- package/dist/esm/Check.js.map +1 -0
- package/dist/esm/antlr/ApexLexer.js +23240 -0
- package/dist/esm/antlr/ApexLexer.js.map +1 -0
- package/dist/esm/antlr/ApexParser.js +38179 -0
- package/dist/esm/antlr/ApexParser.js.map +1 -0
- package/dist/esm/antlr/ApexParserListener.js +1911 -0
- package/dist/esm/antlr/ApexParserListener.js.map +1 -0
- package/dist/esm/antlr/ApexParserVisitor.js +1143 -0
- package/dist/esm/antlr/ApexParserVisitor.js.map +1 -0
- package/dist/esm/index.js +9 -0
- package/dist/esm/index.js.map +1 -0
- package/dist/types/ApexErrorListener.d.cts +26 -0
- package/dist/{src → types}/ApexErrorListener.d.ts +4 -3
- package/dist/types/ApexParserFactory.d.cts +81 -0
- package/dist/{src → types}/ApexParserFactory.d.ts +12 -0
- package/dist/types/CaseInsensitiveInputStream.d.ts +14 -0
- package/dist/types/Check.d.ts +36 -0
- package/dist/types/antlr/ApexLexer.d.cts +275 -0
- package/dist/{src → types}/antlr/ApexLexer.d.ts +54 -53
- package/dist/types/antlr/ApexParser.d.cts +3126 -0
- package/dist/{src → types}/antlr/ApexParser.d.ts +113 -85
- package/dist/{src/antlr/ApexParserListener.js → types/antlr/ApexParserListener.d.cts} +568 -366
- package/dist/{src → types}/antlr/ApexParserListener.d.ts +22 -0
- package/dist/{src/antlr/ApexParserVisitor.js → types/antlr/ApexParserVisitor.d.cts} +379 -185
- package/dist/{src → types}/antlr/ApexParserVisitor.d.ts +14 -0
- package/dist/types/index.browser.d.cts +8 -0
- package/dist/types/index.browser.d.ts +8 -0
- package/dist/types/index.d.ts +9 -0
- package/package.json +89 -21
- package/dist/src/ApexErrorListener.js +0 -61
- package/dist/src/ApexErrorListener.js.map +0 -1
- package/dist/src/ApexParserFactory.js +0 -116
- package/dist/src/ApexParserFactory.js.map +0 -1
- package/dist/src/CaseInsensitiveInputStream.js +0 -64
- package/dist/src/CaseInsensitiveInputStream.js.map +0 -1
- package/dist/src/Check.js +0 -205
- package/dist/src/Check.js.map +0 -1
- package/dist/src/antlr/ApexLexer.js +0 -1573
- package/dist/src/antlr/ApexLexer.js.map +0 -1
- package/dist/src/antlr/ApexParser.js +0 -20786
- package/dist/src/antlr/ApexParser.js.map +0 -1
- package/dist/src/antlr/ApexParserListener.js.map +0 -1
- package/dist/src/antlr/ApexParserVisitor.js.map +0 -1
- package/dist/src/index.js +0 -37
- package/dist/src/index.js.map +0 -1
- /package/dist/{src/CaseInsensitiveInputStream.d.ts → types/CaseInsensitiveInputStream.d.cts} +0 -0
- /package/dist/{src/Check.d.ts → types/Check.d.cts} +0 -0
- /package/dist/{src/index.d.ts → types/index.d.cts} +0 -0
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ApexParserVisitor.js","sources":["../../../src/antlr/ApexParserVisitor.ts"],"sourcesContent":["// Generated from ApexParser.g4 by ANTLR 4.13.2\n\nimport {ParseTreeVisitor} from 'antlr4';\n\n\nimport { TriggerUnitContext } from \"./ApexParser.js\";\nimport { TriggerCaseContext } from \"./ApexParser.js\";\nimport { TriggerBlockContext } from \"./ApexParser.js\";\nimport { TriggerBlockMemberContext } from \"./ApexParser.js\";\nimport { AnonymousUnitContext } from \"./ApexParser.js\";\nimport { AnonymousBlockContext } from \"./ApexParser.js\";\nimport { AnonymousBlockMemberContext } from \"./ApexParser.js\";\nimport { CompilationUnitContext } from \"./ApexParser.js\";\nimport { TypeDeclarationContext } from \"./ApexParser.js\";\nimport { ClassDeclarationContext } from \"./ApexParser.js\";\nimport { EnumDeclarationContext } from \"./ApexParser.js\";\nimport { EnumConstantsContext } from \"./ApexParser.js\";\nimport { InterfaceDeclarationContext } from \"./ApexParser.js\";\nimport { TypeListContext } from \"./ApexParser.js\";\nimport { ClassBodyContext } from \"./ApexParser.js\";\nimport { InterfaceBodyContext } from \"./ApexParser.js\";\nimport { ClassBodyDeclarationContext } from \"./ApexParser.js\";\nimport { ModifierContext } from \"./ApexParser.js\";\nimport { MemberDeclarationContext } from \"./ApexParser.js\";\nimport { TriggerMemberDeclarationContext } from \"./ApexParser.js\";\nimport { AnonymousMemberDeclarationContext } from \"./ApexParser.js\";\nimport { MethodDeclarationContext } from \"./ApexParser.js\";\nimport { ConstructorDeclarationContext } from \"./ApexParser.js\";\nimport { FieldDeclarationContext } from \"./ApexParser.js\";\nimport { PropertyDeclarationContext } from \"./ApexParser.js\";\nimport { InterfaceMethodDeclarationContext } from \"./ApexParser.js\";\nimport { VariableDeclaratorsContext } from \"./ApexParser.js\";\nimport { VariableDeclaratorContext } from \"./ApexParser.js\";\nimport { ArrayInitializerContext } from \"./ApexParser.js\";\nimport { TypeRefContext } from \"./ApexParser.js\";\nimport { ArraySubscriptsContext } from \"./ApexParser.js\";\nimport { TypeNameContext } from \"./ApexParser.js\";\nimport { TypeArgumentsContext } from \"./ApexParser.js\";\nimport { FormalParametersContext } from \"./ApexParser.js\";\nimport { FormalParameterListContext } from \"./ApexParser.js\";\nimport { FormalParameterContext } from \"./ApexParser.js\";\nimport { QualifiedNameContext } from \"./ApexParser.js\";\nimport { LiteralContext } from \"./ApexParser.js\";\nimport { AnnotationContext } from \"./ApexParser.js\";\nimport { ElementValuePairsContext } from \"./ApexParser.js\";\nimport { ElementValuePairContext } from \"./ApexParser.js\";\nimport { ElementValueContext } from \"./ApexParser.js\";\nimport { ElementValueArrayInitializerContext } from \"./ApexParser.js\";\nimport { BlockContext } from \"./ApexParser.js\";\nimport { LocalVariableDeclarationStatementContext } from \"./ApexParser.js\";\nimport { LocalVariableDeclarationContext } from \"./ApexParser.js\";\nimport { StatementContext } from \"./ApexParser.js\";\nimport { IfStatementContext } from \"./ApexParser.js\";\nimport { SwitchStatementContext } from \"./ApexParser.js\";\nimport { WhenControlContext } from \"./ApexParser.js\";\nimport { WhenValueContext } from \"./ApexParser.js\";\nimport { WhenLiteralContext } from \"./ApexParser.js\";\nimport { ForStatementContext } from \"./ApexParser.js\";\nimport { WhileStatementContext } from \"./ApexParser.js\";\nimport { DoWhileStatementContext } from \"./ApexParser.js\";\nimport { TryStatementContext } from \"./ApexParser.js\";\nimport { ReturnStatementContext } from \"./ApexParser.js\";\nimport { ThrowStatementContext } from \"./ApexParser.js\";\nimport { BreakStatementContext } from \"./ApexParser.js\";\nimport { ContinueStatementContext } from \"./ApexParser.js\";\nimport { AccessLevelContext } from \"./ApexParser.js\";\nimport { InsertStatementContext } from \"./ApexParser.js\";\nimport { UpdateStatementContext } from \"./ApexParser.js\";\nimport { DeleteStatementContext } from \"./ApexParser.js\";\nimport { UndeleteStatementContext } from \"./ApexParser.js\";\nimport { UpsertStatementContext } from \"./ApexParser.js\";\nimport { MergeStatementContext } from \"./ApexParser.js\";\nimport { RunAsStatementContext } from \"./ApexParser.js\";\nimport { ExpressionStatementContext } from \"./ApexParser.js\";\nimport { PropertyBlockContext } from \"./ApexParser.js\";\nimport { GetterContext } from \"./ApexParser.js\";\nimport { SetterContext } from \"./ApexParser.js\";\nimport { CatchClauseContext } from \"./ApexParser.js\";\nimport { FinallyBlockContext } from \"./ApexParser.js\";\nimport { ForControlContext } from \"./ApexParser.js\";\nimport { ForInitContext } from \"./ApexParser.js\";\nimport { EnhancedForControlContext } from \"./ApexParser.js\";\nimport { ForUpdateContext } from \"./ApexParser.js\";\nimport { ParExpressionContext } from \"./ApexParser.js\";\nimport { ExpressionListContext } from \"./ApexParser.js\";\nimport { PrimaryExpressionContext } from \"./ApexParser.js\";\nimport { Arth1ExpressionContext } from \"./ApexParser.js\";\nimport { CoalExpressionContext } from \"./ApexParser.js\";\nimport { DotExpressionContext } from \"./ApexParser.js\";\nimport { BitOrExpressionContext } from \"./ApexParser.js\";\nimport { ArrayExpressionContext } from \"./ApexParser.js\";\nimport { NewExpressionContext } from \"./ApexParser.js\";\nimport { AssignExpressionContext } from \"./ApexParser.js\";\nimport { MethodCallExpressionContext } from \"./ApexParser.js\";\nimport { BitNotExpressionContext } from \"./ApexParser.js\";\nimport { Arth2ExpressionContext } from \"./ApexParser.js\";\nimport { LogAndExpressionContext } from \"./ApexParser.js\";\nimport { CastExpressionContext } from \"./ApexParser.js\";\nimport { BitAndExpressionContext } from \"./ApexParser.js\";\nimport { CmpExpressionContext } from \"./ApexParser.js\";\nimport { BitExpressionContext } from \"./ApexParser.js\";\nimport { LogOrExpressionContext } from \"./ApexParser.js\";\nimport { CondExpressionContext } from \"./ApexParser.js\";\nimport { EqualityExpressionContext } from \"./ApexParser.js\";\nimport { PostOpExpressionContext } from \"./ApexParser.js\";\nimport { NegExpressionContext } from \"./ApexParser.js\";\nimport { PreOpExpressionContext } from \"./ApexParser.js\";\nimport { SubExpressionContext } from \"./ApexParser.js\";\nimport { InstanceOfExpressionContext } from \"./ApexParser.js\";\nimport { ThisPrimaryContext } from \"./ApexParser.js\";\nimport { SuperPrimaryContext } from \"./ApexParser.js\";\nimport { LiteralPrimaryContext } from \"./ApexParser.js\";\nimport { TypeRefPrimaryContext } from \"./ApexParser.js\";\nimport { VoidPrimaryContext } from \"./ApexParser.js\";\nimport { IdPrimaryContext } from \"./ApexParser.js\";\nimport { SoqlPrimaryContext } from \"./ApexParser.js\";\nimport { SoslPrimaryContext } from \"./ApexParser.js\";\nimport { MethodCallContext } from \"./ApexParser.js\";\nimport { DotMethodCallContext } from \"./ApexParser.js\";\nimport { CreatorContext } from \"./ApexParser.js\";\nimport { CreatedNameContext } from \"./ApexParser.js\";\nimport { IdCreatedNamePairContext } from \"./ApexParser.js\";\nimport { NoRestContext } from \"./ApexParser.js\";\nimport { ClassCreatorRestContext } from \"./ApexParser.js\";\nimport { ArrayCreatorRestContext } from \"./ApexParser.js\";\nimport { MapCreatorRestContext } from \"./ApexParser.js\";\nimport { MapCreatorRestPairContext } from \"./ApexParser.js\";\nimport { SetCreatorRestContext } from \"./ApexParser.js\";\nimport { ArgumentsContext } from \"./ApexParser.js\";\nimport { SoqlLiteralContext } from \"./ApexParser.js\";\nimport { QueryContext } from \"./ApexParser.js\";\nimport { SubQueryContext } from \"./ApexParser.js\";\nimport { SelectListContext } from \"./ApexParser.js\";\nimport { SelectEntryContext } from \"./ApexParser.js\";\nimport { FieldNameContext } from \"./ApexParser.js\";\nimport { FromNameListContext } from \"./ApexParser.js\";\nimport { SubFieldListContext } from \"./ApexParser.js\";\nimport { SubFieldEntryContext } from \"./ApexParser.js\";\nimport { SoqlFieldsParameterContext } from \"./ApexParser.js\";\nimport { SoqlFunctionContext } from \"./ApexParser.js\";\nimport { DateFieldNameContext } from \"./ApexParser.js\";\nimport { LocationValueContext } from \"./ApexParser.js\";\nimport { CoordinateValueContext } from \"./ApexParser.js\";\nimport { TypeOfContext } from \"./ApexParser.js\";\nimport { WhenClauseContext } from \"./ApexParser.js\";\nimport { ElseClauseContext } from \"./ApexParser.js\";\nimport { FieldNameListContext } from \"./ApexParser.js\";\nimport { UsingScopeContext } from \"./ApexParser.js\";\nimport { WhereClauseContext } from \"./ApexParser.js\";\nimport { LogicalExpressionContext } from \"./ApexParser.js\";\nimport { ConditionalExpressionContext } from \"./ApexParser.js\";\nimport { FieldExpressionContext } from \"./ApexParser.js\";\nimport { ComparisonOperatorContext } from \"./ApexParser.js\";\nimport { ValueContext } from \"./ApexParser.js\";\nimport { ValueListContext } from \"./ApexParser.js\";\nimport { SignedNumberContext } from \"./ApexParser.js\";\nimport { WithClauseContext } from \"./ApexParser.js\";\nimport { FilteringExpressionContext } from \"./ApexParser.js\";\nimport { DataCategorySelectionContext } from \"./ApexParser.js\";\nimport { DataCategoryNameContext } from \"./ApexParser.js\";\nimport { FilteringSelectorContext } from \"./ApexParser.js\";\nimport { GroupByClauseContext } from \"./ApexParser.js\";\nimport { FieldGroupByListContext } from \"./ApexParser.js\";\nimport { FieldGroupByContext } from \"./ApexParser.js\";\nimport { OrderByClauseContext } from \"./ApexParser.js\";\nimport { FieldOrderListContext } from \"./ApexParser.js\";\nimport { FieldOrderContext } from \"./ApexParser.js\";\nimport { LimitClauseContext } from \"./ApexParser.js\";\nimport { OffsetClauseContext } from \"./ApexParser.js\";\nimport { AllRowsClauseContext } from \"./ApexParser.js\";\nimport { ForClausesContext } from \"./ApexParser.js\";\nimport { BoundExpressionContext } from \"./ApexParser.js\";\nimport { DateFormulaContext } from \"./ApexParser.js\";\nimport { SignedIntegerContext } from \"./ApexParser.js\";\nimport { SoqlIdContext } from \"./ApexParser.js\";\nimport { SoslLiteralContext } from \"./ApexParser.js\";\nimport { SoslLiteralAltContext } from \"./ApexParser.js\";\nimport { SoslClausesContext } from \"./ApexParser.js\";\nimport { SoslWithClauseContext } from \"./ApexParser.js\";\nimport { SearchGroupContext } from \"./ApexParser.js\";\nimport { FieldSpecListContext } from \"./ApexParser.js\";\nimport { FieldSpecContext } from \"./ApexParser.js\";\nimport { FieldListContext } from \"./ApexParser.js\";\nimport { UpdateListContext } from \"./ApexParser.js\";\nimport { UpdateTypeContext } from \"./ApexParser.js\";\nimport { NetworkListContext } from \"./ApexParser.js\";\nimport { SoslIdContext } from \"./ApexParser.js\";\nimport { IdContext } from \"./ApexParser.js\";\nimport { AnyIdContext } from \"./ApexParser.js\";\n\n\n/**\n * This interface defines a complete generic visitor for a parse tree produced\n * by `ApexParser`.\n *\n * @param <Result> The return type of the visit operation. Use `void` for\n * operations with no return type.\n */\nexport default class ApexParserVisitor<Result> extends ParseTreeVisitor<Result> {\n\t/**\n\t * Visit a parse tree produced by `ApexParser.triggerUnit`.\n\t * @param ctx the parse tree\n\t * @return the visitor result\n\t */\n\tvisitTriggerUnit?: (ctx: TriggerUnitContext) => Result;\n\t/**\n\t * Visit a parse tree produced by `ApexParser.triggerCase`.\n\t * @param ctx the parse tree\n\t * @return the visitor result\n\t */\n\tvisitTriggerCase?: (ctx: TriggerCaseContext) => Result;\n\t/**\n\t * Visit a parse tree produced by `ApexParser.triggerBlock`.\n\t * @param ctx the parse tree\n\t * @return the visitor result\n\t */\n\tvisitTriggerBlock?: (ctx: TriggerBlockContext) => Result;\n\t/**\n\t * Visit a parse tree produced by `ApexParser.triggerBlockMember`.\n\t * @param ctx the parse tree\n\t * @return the visitor result\n\t */\n\tvisitTriggerBlockMember?: (ctx: TriggerBlockMemberContext) => Result;\n\t/**\n\t * Visit a parse tree produced by `ApexParser.anonymousUnit`.\n\t * @param ctx the parse tree\n\t * @return the visitor result\n\t */\n\tvisitAnonymousUnit?: (ctx: AnonymousUnitContext) => Result;\n\t/**\n\t * Visit a parse tree produced by `ApexParser.anonymousBlock`.\n\t * @param ctx the parse tree\n\t * @return the visitor result\n\t */\n\tvisitAnonymousBlock?: (ctx: AnonymousBlockContext) => Result;\n\t/**\n\t * Visit a parse tree produced by `ApexParser.anonymousBlockMember`.\n\t * @param ctx the parse tree\n\t * @return the visitor result\n\t */\n\tvisitAnonymousBlockMember?: (ctx: AnonymousBlockMemberContext) => Result;\n\t/**\n\t * Visit a parse tree produced by `ApexParser.compilationUnit`.\n\t * @param ctx the parse tree\n\t * @return the visitor result\n\t */\n\tvisitCompilationUnit?: (ctx: CompilationUnitContext) => Result;\n\t/**\n\t * Visit a parse tree produced by `ApexParser.typeDeclaration`.\n\t * @param ctx the parse tree\n\t * @return the visitor result\n\t */\n\tvisitTypeDeclaration?: (ctx: TypeDeclarationContext) => Result;\n\t/**\n\t * Visit a parse tree produced by `ApexParser.classDeclaration`.\n\t * @param ctx the parse tree\n\t * @return the visitor result\n\t */\n\tvisitClassDeclaration?: (ctx: ClassDeclarationContext) => Result;\n\t/**\n\t * Visit a parse tree produced by `ApexParser.enumDeclaration`.\n\t * @param ctx the parse tree\n\t * @return the visitor result\n\t */\n\tvisitEnumDeclaration?: (ctx: EnumDeclarationContext) => Result;\n\t/**\n\t * Visit a parse tree produced by `ApexParser.enumConstants`.\n\t * @param ctx the parse tree\n\t * @return the visitor result\n\t */\n\tvisitEnumConstants?: (ctx: EnumConstantsContext) => Result;\n\t/**\n\t * Visit a parse tree produced by `ApexParser.interfaceDeclaration`.\n\t * @param ctx the parse tree\n\t * @return the visitor result\n\t */\n\tvisitInterfaceDeclaration?: (ctx: InterfaceDeclarationContext) => Result;\n\t/**\n\t * Visit a parse tree produced by `ApexParser.typeList`.\n\t * @param ctx the parse tree\n\t * @return the visitor result\n\t */\n\tvisitTypeList?: (ctx: TypeListContext) => Result;\n\t/**\n\t * Visit a parse tree produced by `ApexParser.classBody`.\n\t * @param ctx the parse tree\n\t * @return the visitor result\n\t */\n\tvisitClassBody?: (ctx: ClassBodyContext) => Result;\n\t/**\n\t * Visit a parse tree produced by `ApexParser.interfaceBody`.\n\t * @param ctx the parse tree\n\t * @return the visitor result\n\t */\n\tvisitInterfaceBody?: (ctx: InterfaceBodyContext) => Result;\n\t/**\n\t * Visit a parse tree produced by `ApexParser.classBodyDeclaration`.\n\t * @param ctx the parse tree\n\t * @return the visitor result\n\t */\n\tvisitClassBodyDeclaration?: (ctx: ClassBodyDeclarationContext) => Result;\n\t/**\n\t * Visit a parse tree produced by `ApexParser.modifier`.\n\t * @param ctx the parse tree\n\t * @return the visitor result\n\t */\n\tvisitModifier?: (ctx: ModifierContext) => Result;\n\t/**\n\t * Visit a parse tree produced by `ApexParser.memberDeclaration`.\n\t * @param ctx the parse tree\n\t * @return the visitor result\n\t */\n\tvisitMemberDeclaration?: (ctx: MemberDeclarationContext) => Result;\n\t/**\n\t * Visit a parse tree produced by `ApexParser.triggerMemberDeclaration`.\n\t * @param ctx the parse tree\n\t * @return the visitor result\n\t */\n\tvisitTriggerMemberDeclaration?: (ctx: TriggerMemberDeclarationContext) => Result;\n\t/**\n\t * Visit a parse tree produced by `ApexParser.anonymousMemberDeclaration`.\n\t * @param ctx the parse tree\n\t * @return the visitor result\n\t */\n\tvisitAnonymousMemberDeclaration?: (ctx: AnonymousMemberDeclarationContext) => Result;\n\t/**\n\t * Visit a parse tree produced by `ApexParser.methodDeclaration`.\n\t * @param ctx the parse tree\n\t * @return the visitor result\n\t */\n\tvisitMethodDeclaration?: (ctx: MethodDeclarationContext) => Result;\n\t/**\n\t * Visit a parse tree produced by `ApexParser.constructorDeclaration`.\n\t * @param ctx the parse tree\n\t * @return the visitor result\n\t */\n\tvisitConstructorDeclaration?: (ctx: ConstructorDeclarationContext) => Result;\n\t/**\n\t * Visit a parse tree produced by `ApexParser.fieldDeclaration`.\n\t * @param ctx the parse tree\n\t * @return the visitor result\n\t */\n\tvisitFieldDeclaration?: (ctx: FieldDeclarationContext) => Result;\n\t/**\n\t * Visit a parse tree produced by `ApexParser.propertyDeclaration`.\n\t * @param ctx the parse tree\n\t * @return the visitor result\n\t */\n\tvisitPropertyDeclaration?: (ctx: PropertyDeclarationContext) => Result;\n\t/**\n\t * Visit a parse tree produced by `ApexParser.interfaceMethodDeclaration`.\n\t * @param ctx the parse tree\n\t * @return the visitor result\n\t */\n\tvisitInterfaceMethodDeclaration?: (ctx: InterfaceMethodDeclarationContext) => Result;\n\t/**\n\t * Visit a parse tree produced by `ApexParser.variableDeclarators`.\n\t * @param ctx the parse tree\n\t * @return the visitor result\n\t */\n\tvisitVariableDeclarators?: (ctx: VariableDeclaratorsContext) => Result;\n\t/**\n\t * Visit a parse tree produced by `ApexParser.variableDeclarator`.\n\t * @param ctx the parse tree\n\t * @return the visitor result\n\t */\n\tvisitVariableDeclarator?: (ctx: VariableDeclaratorContext) => Result;\n\t/**\n\t * Visit a parse tree produced by `ApexParser.arrayInitializer`.\n\t * @param ctx the parse tree\n\t * @return the visitor result\n\t */\n\tvisitArrayInitializer?: (ctx: ArrayInitializerContext) => Result;\n\t/**\n\t * Visit a parse tree produced by `ApexParser.typeRef`.\n\t * @param ctx the parse tree\n\t * @return the visitor result\n\t */\n\tvisitTypeRef?: (ctx: TypeRefContext) => Result;\n\t/**\n\t * Visit a parse tree produced by `ApexParser.arraySubscripts`.\n\t * @param ctx the parse tree\n\t * @return the visitor result\n\t */\n\tvisitArraySubscripts?: (ctx: ArraySubscriptsContext) => Result;\n\t/**\n\t * Visit a parse tree produced by `ApexParser.typeName`.\n\t * @param ctx the parse tree\n\t * @return the visitor result\n\t */\n\tvisitTypeName?: (ctx: TypeNameContext) => Result;\n\t/**\n\t * Visit a parse tree produced by `ApexParser.typeArguments`.\n\t * @param ctx the parse tree\n\t * @return the visitor result\n\t */\n\tvisitTypeArguments?: (ctx: TypeArgumentsContext) => Result;\n\t/**\n\t * Visit a parse tree produced by `ApexParser.formalParameters`.\n\t * @param ctx the parse tree\n\t * @return the visitor result\n\t */\n\tvisitFormalParameters?: (ctx: FormalParametersContext) => Result;\n\t/**\n\t * Visit a parse tree produced by `ApexParser.formalParameterList`.\n\t * @param ctx the parse tree\n\t * @return the visitor result\n\t */\n\tvisitFormalParameterList?: (ctx: FormalParameterListContext) => Result;\n\t/**\n\t * Visit a parse tree produced by `ApexParser.formalParameter`.\n\t * @param ctx the parse tree\n\t * @return the visitor result\n\t */\n\tvisitFormalParameter?: (ctx: FormalParameterContext) => Result;\n\t/**\n\t * Visit a parse tree produced by `ApexParser.qualifiedName`.\n\t * @param ctx the parse tree\n\t * @return the visitor result\n\t */\n\tvisitQualifiedName?: (ctx: QualifiedNameContext) => Result;\n\t/**\n\t * Visit a parse tree produced by `ApexParser.literal`.\n\t * @param ctx the parse tree\n\t * @return the visitor result\n\t */\n\tvisitLiteral?: (ctx: LiteralContext) => Result;\n\t/**\n\t * Visit a parse tree produced by `ApexParser.annotation`.\n\t * @param ctx the parse tree\n\t * @return the visitor result\n\t */\n\tvisitAnnotation?: (ctx: AnnotationContext) => Result;\n\t/**\n\t * Visit a parse tree produced by `ApexParser.elementValuePairs`.\n\t * @param ctx the parse tree\n\t * @return the visitor result\n\t */\n\tvisitElementValuePairs?: (ctx: ElementValuePairsContext) => Result;\n\t/**\n\t * Visit a parse tree produced by `ApexParser.elementValuePair`.\n\t * @param ctx the parse tree\n\t * @return the visitor result\n\t */\n\tvisitElementValuePair?: (ctx: ElementValuePairContext) => Result;\n\t/**\n\t * Visit a parse tree produced by `ApexParser.elementValue`.\n\t * @param ctx the parse tree\n\t * @return the visitor result\n\t */\n\tvisitElementValue?: (ctx: ElementValueContext) => Result;\n\t/**\n\t * Visit a parse tree produced by `ApexParser.elementValueArrayInitializer`.\n\t * @param ctx the parse tree\n\t * @return the visitor result\n\t */\n\tvisitElementValueArrayInitializer?: (ctx: ElementValueArrayInitializerContext) => Result;\n\t/**\n\t * Visit a parse tree produced by `ApexParser.block`.\n\t * @param ctx the parse tree\n\t * @return the visitor result\n\t */\n\tvisitBlock?: (ctx: BlockContext) => Result;\n\t/**\n\t * Visit a parse tree produced by `ApexParser.localVariableDeclarationStatement`.\n\t * @param ctx the parse tree\n\t * @return the visitor result\n\t */\n\tvisitLocalVariableDeclarationStatement?: (ctx: LocalVariableDeclarationStatementContext) => Result;\n\t/**\n\t * Visit a parse tree produced by `ApexParser.localVariableDeclaration`.\n\t * @param ctx the parse tree\n\t * @return the visitor result\n\t */\n\tvisitLocalVariableDeclaration?: (ctx: LocalVariableDeclarationContext) => Result;\n\t/**\n\t * Visit a parse tree produced by `ApexParser.statement`.\n\t * @param ctx the parse tree\n\t * @return the visitor result\n\t */\n\tvisitStatement?: (ctx: StatementContext) => Result;\n\t/**\n\t * Visit a parse tree produced by `ApexParser.ifStatement`.\n\t * @param ctx the parse tree\n\t * @return the visitor result\n\t */\n\tvisitIfStatement?: (ctx: IfStatementContext) => Result;\n\t/**\n\t * Visit a parse tree produced by `ApexParser.switchStatement`.\n\t * @param ctx the parse tree\n\t * @return the visitor result\n\t */\n\tvisitSwitchStatement?: (ctx: SwitchStatementContext) => Result;\n\t/**\n\t * Visit a parse tree produced by `ApexParser.whenControl`.\n\t * @param ctx the parse tree\n\t * @return the visitor result\n\t */\n\tvisitWhenControl?: (ctx: WhenControlContext) => Result;\n\t/**\n\t * Visit a parse tree produced by `ApexParser.whenValue`.\n\t * @param ctx the parse tree\n\t * @return the visitor result\n\t */\n\tvisitWhenValue?: (ctx: WhenValueContext) => Result;\n\t/**\n\t * Visit a parse tree produced by `ApexParser.whenLiteral`.\n\t * @param ctx the parse tree\n\t * @return the visitor result\n\t */\n\tvisitWhenLiteral?: (ctx: WhenLiteralContext) => Result;\n\t/**\n\t * Visit a parse tree produced by `ApexParser.forStatement`.\n\t * @param ctx the parse tree\n\t * @return the visitor result\n\t */\n\tvisitForStatement?: (ctx: ForStatementContext) => Result;\n\t/**\n\t * Visit a parse tree produced by `ApexParser.whileStatement`.\n\t * @param ctx the parse tree\n\t * @return the visitor result\n\t */\n\tvisitWhileStatement?: (ctx: WhileStatementContext) => Result;\n\t/**\n\t * Visit a parse tree produced by `ApexParser.doWhileStatement`.\n\t * @param ctx the parse tree\n\t * @return the visitor result\n\t */\n\tvisitDoWhileStatement?: (ctx: DoWhileStatementContext) => Result;\n\t/**\n\t * Visit a parse tree produced by `ApexParser.tryStatement`.\n\t * @param ctx the parse tree\n\t * @return the visitor result\n\t */\n\tvisitTryStatement?: (ctx: TryStatementContext) => Result;\n\t/**\n\t * Visit a parse tree produced by `ApexParser.returnStatement`.\n\t * @param ctx the parse tree\n\t * @return the visitor result\n\t */\n\tvisitReturnStatement?: (ctx: ReturnStatementContext) => Result;\n\t/**\n\t * Visit a parse tree produced by `ApexParser.throwStatement`.\n\t * @param ctx the parse tree\n\t * @return the visitor result\n\t */\n\tvisitThrowStatement?: (ctx: ThrowStatementContext) => Result;\n\t/**\n\t * Visit a parse tree produced by `ApexParser.breakStatement`.\n\t * @param ctx the parse tree\n\t * @return the visitor result\n\t */\n\tvisitBreakStatement?: (ctx: BreakStatementContext) => Result;\n\t/**\n\t * Visit a parse tree produced by `ApexParser.continueStatement`.\n\t * @param ctx the parse tree\n\t * @return the visitor result\n\t */\n\tvisitContinueStatement?: (ctx: ContinueStatementContext) => Result;\n\t/**\n\t * Visit a parse tree produced by `ApexParser.accessLevel`.\n\t * @param ctx the parse tree\n\t * @return the visitor result\n\t */\n\tvisitAccessLevel?: (ctx: AccessLevelContext) => Result;\n\t/**\n\t * Visit a parse tree produced by `ApexParser.insertStatement`.\n\t * @param ctx the parse tree\n\t * @return the visitor result\n\t */\n\tvisitInsertStatement?: (ctx: InsertStatementContext) => Result;\n\t/**\n\t * Visit a parse tree produced by `ApexParser.updateStatement`.\n\t * @param ctx the parse tree\n\t * @return the visitor result\n\t */\n\tvisitUpdateStatement?: (ctx: UpdateStatementContext) => Result;\n\t/**\n\t * Visit a parse tree produced by `ApexParser.deleteStatement`.\n\t * @param ctx the parse tree\n\t * @return the visitor result\n\t */\n\tvisitDeleteStatement?: (ctx: DeleteStatementContext) => Result;\n\t/**\n\t * Visit a parse tree produced by `ApexParser.undeleteStatement`.\n\t * @param ctx the parse tree\n\t * @return the visitor result\n\t */\n\tvisitUndeleteStatement?: (ctx: UndeleteStatementContext) => Result;\n\t/**\n\t * Visit a parse tree produced by `ApexParser.upsertStatement`.\n\t * @param ctx the parse tree\n\t * @return the visitor result\n\t */\n\tvisitUpsertStatement?: (ctx: UpsertStatementContext) => Result;\n\t/**\n\t * Visit a parse tree produced by `ApexParser.mergeStatement`.\n\t * @param ctx the parse tree\n\t * @return the visitor result\n\t */\n\tvisitMergeStatement?: (ctx: MergeStatementContext) => Result;\n\t/**\n\t * Visit a parse tree produced by `ApexParser.runAsStatement`.\n\t * @param ctx the parse tree\n\t * @return the visitor result\n\t */\n\tvisitRunAsStatement?: (ctx: RunAsStatementContext) => Result;\n\t/**\n\t * Visit a parse tree produced by `ApexParser.expressionStatement`.\n\t * @param ctx the parse tree\n\t * @return the visitor result\n\t */\n\tvisitExpressionStatement?: (ctx: ExpressionStatementContext) => Result;\n\t/**\n\t * Visit a parse tree produced by `ApexParser.propertyBlock`.\n\t * @param ctx the parse tree\n\t * @return the visitor result\n\t */\n\tvisitPropertyBlock?: (ctx: PropertyBlockContext) => Result;\n\t/**\n\t * Visit a parse tree produced by `ApexParser.getter`.\n\t * @param ctx the parse tree\n\t * @return the visitor result\n\t */\n\tvisitGetter?: (ctx: GetterContext) => Result;\n\t/**\n\t * Visit a parse tree produced by `ApexParser.setter`.\n\t * @param ctx the parse tree\n\t * @return the visitor result\n\t */\n\tvisitSetter?: (ctx: SetterContext) => Result;\n\t/**\n\t * Visit a parse tree produced by `ApexParser.catchClause`.\n\t * @param ctx the parse tree\n\t * @return the visitor result\n\t */\n\tvisitCatchClause?: (ctx: CatchClauseContext) => Result;\n\t/**\n\t * Visit a parse tree produced by `ApexParser.finallyBlock`.\n\t * @param ctx the parse tree\n\t * @return the visitor result\n\t */\n\tvisitFinallyBlock?: (ctx: FinallyBlockContext) => Result;\n\t/**\n\t * Visit a parse tree produced by `ApexParser.forControl`.\n\t * @param ctx the parse tree\n\t * @return the visitor result\n\t */\n\tvisitForControl?: (ctx: ForControlContext) => Result;\n\t/**\n\t * Visit a parse tree produced by `ApexParser.forInit`.\n\t * @param ctx the parse tree\n\t * @return the visitor result\n\t */\n\tvisitForInit?: (ctx: ForInitContext) => Result;\n\t/**\n\t * Visit a parse tree produced by `ApexParser.enhancedForControl`.\n\t * @param ctx the parse tree\n\t * @return the visitor result\n\t */\n\tvisitEnhancedForControl?: (ctx: EnhancedForControlContext) => Result;\n\t/**\n\t * Visit a parse tree produced by `ApexParser.forUpdate`.\n\t * @param ctx the parse tree\n\t * @return the visitor result\n\t */\n\tvisitForUpdate?: (ctx: ForUpdateContext) => Result;\n\t/**\n\t * Visit a parse tree produced by `ApexParser.parExpression`.\n\t * @param ctx the parse tree\n\t * @return the visitor result\n\t */\n\tvisitParExpression?: (ctx: ParExpressionContext) => Result;\n\t/**\n\t * Visit a parse tree produced by `ApexParser.expressionList`.\n\t * @param ctx the parse tree\n\t * @return the visitor result\n\t */\n\tvisitExpressionList?: (ctx: ExpressionListContext) => Result;\n\t/**\n\t * Visit a parse tree produced by the `primaryExpression`\n\t * labeled alternative in `ApexParser.expression`.\n\t * @param ctx the parse tree\n\t * @return the visitor result\n\t */\n\tvisitPrimaryExpression?: (ctx: PrimaryExpressionContext) => Result;\n\t/**\n\t * Visit a parse tree produced by the `arth1Expression`\n\t * labeled alternative in `ApexParser.expression`.\n\t * @param ctx the parse tree\n\t * @return the visitor result\n\t */\n\tvisitArth1Expression?: (ctx: Arth1ExpressionContext) => Result;\n\t/**\n\t * Visit a parse tree produced by the `coalExpression`\n\t * labeled alternative in `ApexParser.expression`.\n\t * @param ctx the parse tree\n\t * @return the visitor result\n\t */\n\tvisitCoalExpression?: (ctx: CoalExpressionContext) => Result;\n\t/**\n\t * Visit a parse tree produced by the `dotExpression`\n\t * labeled alternative in `ApexParser.expression`.\n\t * @param ctx the parse tree\n\t * @return the visitor result\n\t */\n\tvisitDotExpression?: (ctx: DotExpressionContext) => Result;\n\t/**\n\t * Visit a parse tree produced by the `bitOrExpression`\n\t * labeled alternative in `ApexParser.expression`.\n\t * @param ctx the parse tree\n\t * @return the visitor result\n\t */\n\tvisitBitOrExpression?: (ctx: BitOrExpressionContext) => Result;\n\t/**\n\t * Visit a parse tree produced by the `arrayExpression`\n\t * labeled alternative in `ApexParser.expression`.\n\t * @param ctx the parse tree\n\t * @return the visitor result\n\t */\n\tvisitArrayExpression?: (ctx: ArrayExpressionContext) => Result;\n\t/**\n\t * Visit a parse tree produced by the `newExpression`\n\t * labeled alternative in `ApexParser.expression`.\n\t * @param ctx the parse tree\n\t * @return the visitor result\n\t */\n\tvisitNewExpression?: (ctx: NewExpressionContext) => Result;\n\t/**\n\t * Visit a parse tree produced by the `assignExpression`\n\t * labeled alternative in `ApexParser.expression`.\n\t * @param ctx the parse tree\n\t * @return the visitor result\n\t */\n\tvisitAssignExpression?: (ctx: AssignExpressionContext) => Result;\n\t/**\n\t * Visit a parse tree produced by the `methodCallExpression`\n\t * labeled alternative in `ApexParser.expression`.\n\t * @param ctx the parse tree\n\t * @return the visitor result\n\t */\n\tvisitMethodCallExpression?: (ctx: MethodCallExpressionContext) => Result;\n\t/**\n\t * Visit a parse tree produced by the `bitNotExpression`\n\t * labeled alternative in `ApexParser.expression`.\n\t * @param ctx the parse tree\n\t * @return the visitor result\n\t */\n\tvisitBitNotExpression?: (ctx: BitNotExpressionContext) => Result;\n\t/**\n\t * Visit a parse tree produced by the `arth2Expression`\n\t * labeled alternative in `ApexParser.expression`.\n\t * @param ctx the parse tree\n\t * @return the visitor result\n\t */\n\tvisitArth2Expression?: (ctx: Arth2ExpressionContext) => Result;\n\t/**\n\t * Visit a parse tree produced by the `logAndExpression`\n\t * labeled alternative in `ApexParser.expression`.\n\t * @param ctx the parse tree\n\t * @return the visitor result\n\t */\n\tvisitLogAndExpression?: (ctx: LogAndExpressionContext) => Result;\n\t/**\n\t * Visit a parse tree produced by the `castExpression`\n\t * labeled alternative in `ApexParser.expression`.\n\t * @param ctx the parse tree\n\t * @return the visitor result\n\t */\n\tvisitCastExpression?: (ctx: CastExpressionContext) => Result;\n\t/**\n\t * Visit a parse tree produced by the `bitAndExpression`\n\t * labeled alternative in `ApexParser.expression`.\n\t * @param ctx the parse tree\n\t * @return the visitor result\n\t */\n\tvisitBitAndExpression?: (ctx: BitAndExpressionContext) => Result;\n\t/**\n\t * Visit a parse tree produced by the `cmpExpression`\n\t * labeled alternative in `ApexParser.expression`.\n\t * @param ctx the parse tree\n\t * @return the visitor result\n\t */\n\tvisitCmpExpression?: (ctx: CmpExpressionContext) => Result;\n\t/**\n\t * Visit a parse tree produced by the `bitExpression`\n\t * labeled alternative in `ApexParser.expression`.\n\t * @param ctx the parse tree\n\t * @return the visitor result\n\t */\n\tvisitBitExpression?: (ctx: BitExpressionContext) => Result;\n\t/**\n\t * Visit a parse tree produced by the `logOrExpression`\n\t * labeled alternative in `ApexParser.expression`.\n\t * @param ctx the parse tree\n\t * @return the visitor result\n\t */\n\tvisitLogOrExpression?: (ctx: LogOrExpressionContext) => Result;\n\t/**\n\t * Visit a parse tree produced by the `condExpression`\n\t * labeled alternative in `ApexParser.expression`.\n\t * @param ctx the parse tree\n\t * @return the visitor result\n\t */\n\tvisitCondExpression?: (ctx: CondExpressionContext) => Result;\n\t/**\n\t * Visit a parse tree produced by the `equalityExpression`\n\t * labeled alternative in `ApexParser.expression`.\n\t * @param ctx the parse tree\n\t * @return the visitor result\n\t */\n\tvisitEqualityExpression?: (ctx: EqualityExpressionContext) => Result;\n\t/**\n\t * Visit a parse tree produced by the `postOpExpression`\n\t * labeled alternative in `ApexParser.expression`.\n\t * @param ctx the parse tree\n\t * @return the visitor result\n\t */\n\tvisitPostOpExpression?: (ctx: PostOpExpressionContext) => Result;\n\t/**\n\t * Visit a parse tree produced by the `negExpression`\n\t * labeled alternative in `ApexParser.expression`.\n\t * @param ctx the parse tree\n\t * @return the visitor result\n\t */\n\tvisitNegExpression?: (ctx: NegExpressionContext) => Result;\n\t/**\n\t * Visit a parse tree produced by the `preOpExpression`\n\t * labeled alternative in `ApexParser.expression`.\n\t * @param ctx the parse tree\n\t * @return the visitor result\n\t */\n\tvisitPreOpExpression?: (ctx: PreOpExpressionContext) => Result;\n\t/**\n\t * Visit a parse tree produced by the `subExpression`\n\t * labeled alternative in `ApexParser.expression`.\n\t * @param ctx the parse tree\n\t * @return the visitor result\n\t */\n\tvisitSubExpression?: (ctx: SubExpressionContext) => Result;\n\t/**\n\t * Visit a parse tree produced by the `instanceOfExpression`\n\t * labeled alternative in `ApexParser.expression`.\n\t * @param ctx the parse tree\n\t * @return the visitor result\n\t */\n\tvisitInstanceOfExpression?: (ctx: InstanceOfExpressionContext) => Result;\n\t/**\n\t * Visit a parse tree produced by the `thisPrimary`\n\t * labeled alternative in `ApexParser.primary`.\n\t * @param ctx the parse tree\n\t * @return the visitor result\n\t */\n\tvisitThisPrimary?: (ctx: ThisPrimaryContext) => Result;\n\t/**\n\t * Visit a parse tree produced by the `superPrimary`\n\t * labeled alternative in `ApexParser.primary`.\n\t * @param ctx the parse tree\n\t * @return the visitor result\n\t */\n\tvisitSuperPrimary?: (ctx: SuperPrimaryContext) => Result;\n\t/**\n\t * Visit a parse tree produced by the `literalPrimary`\n\t * labeled alternative in `ApexParser.primary`.\n\t * @param ctx the parse tree\n\t * @return the visitor result\n\t */\n\tvisitLiteralPrimary?: (ctx: LiteralPrimaryContext) => Result;\n\t/**\n\t * Visit a parse tree produced by the `typeRefPrimary`\n\t * labeled alternative in `ApexParser.primary`.\n\t * @param ctx the parse tree\n\t * @return the visitor result\n\t */\n\tvisitTypeRefPrimary?: (ctx: TypeRefPrimaryContext) => Result;\n\t/**\n\t * Visit a parse tree produced by the `voidPrimary`\n\t * labeled alternative in `ApexParser.primary`.\n\t * @param ctx the parse tree\n\t * @return the visitor result\n\t */\n\tvisitVoidPrimary?: (ctx: VoidPrimaryContext) => Result;\n\t/**\n\t * Visit a parse tree produced by the `idPrimary`\n\t * labeled alternative in `ApexParser.primary`.\n\t * @param ctx the parse tree\n\t * @return the visitor result\n\t */\n\tvisitIdPrimary?: (ctx: IdPrimaryContext) => Result;\n\t/**\n\t * Visit a parse tree produced by the `soqlPrimary`\n\t * labeled alternative in `ApexParser.primary`.\n\t * @param ctx the parse tree\n\t * @return the visitor result\n\t */\n\tvisitSoqlPrimary?: (ctx: SoqlPrimaryContext) => Result;\n\t/**\n\t * Visit a parse tree produced by the `soslPrimary`\n\t * labeled alternative in `ApexParser.primary`.\n\t * @param ctx the parse tree\n\t * @return the visitor result\n\t */\n\tvisitSoslPrimary?: (ctx: SoslPrimaryContext) => Result;\n\t/**\n\t * Visit a parse tree produced by `ApexParser.methodCall`.\n\t * @param ctx the parse tree\n\t * @return the visitor result\n\t */\n\tvisitMethodCall?: (ctx: MethodCallContext) => Result;\n\t/**\n\t * Visit a parse tree produced by `ApexParser.dotMethodCall`.\n\t * @param ctx the parse tree\n\t * @return the visitor result\n\t */\n\tvisitDotMethodCall?: (ctx: DotMethodCallContext) => Result;\n\t/**\n\t * Visit a parse tree produced by `ApexParser.creator`.\n\t * @param ctx the parse tree\n\t * @return the visitor result\n\t */\n\tvisitCreator?: (ctx: CreatorContext) => Result;\n\t/**\n\t * Visit a parse tree produced by `ApexParser.createdName`.\n\t * @param ctx the parse tree\n\t * @return the visitor result\n\t */\n\tvisitCreatedName?: (ctx: CreatedNameContext) => Result;\n\t/**\n\t * Visit a parse tree produced by `ApexParser.idCreatedNamePair`.\n\t * @param ctx the parse tree\n\t * @return the visitor result\n\t */\n\tvisitIdCreatedNamePair?: (ctx: IdCreatedNamePairContext) => Result;\n\t/**\n\t * Visit a parse tree produced by `ApexParser.noRest`.\n\t * @param ctx the parse tree\n\t * @return the visitor result\n\t */\n\tvisitNoRest?: (ctx: NoRestContext) => Result;\n\t/**\n\t * Visit a parse tree produced by `ApexParser.classCreatorRest`.\n\t * @param ctx the parse tree\n\t * @return the visitor result\n\t */\n\tvisitClassCreatorRest?: (ctx: ClassCreatorRestContext) => Result;\n\t/**\n\t * Visit a parse tree produced by `ApexParser.arrayCreatorRest`.\n\t * @param ctx the parse tree\n\t * @return the visitor result\n\t */\n\tvisitArrayCreatorRest?: (ctx: ArrayCreatorRestContext) => Result;\n\t/**\n\t * Visit a parse tree produced by `ApexParser.mapCreatorRest`.\n\t * @param ctx the parse tree\n\t * @return the visitor result\n\t */\n\tvisitMapCreatorRest?: (ctx: MapCreatorRestContext) => Result;\n\t/**\n\t * Visit a parse tree produced by `ApexParser.mapCreatorRestPair`.\n\t * @param ctx the parse tree\n\t * @return the visitor result\n\t */\n\tvisitMapCreatorRestPair?: (ctx: MapCreatorRestPairContext) => Result;\n\t/**\n\t * Visit a parse tree produced by `ApexParser.setCreatorRest`.\n\t * @param ctx the parse tree\n\t * @return the visitor result\n\t */\n\tvisitSetCreatorRest?: (ctx: SetCreatorRestContext) => Result;\n\t/**\n\t * Visit a parse tree produced by `ApexParser.arguments`.\n\t * @param ctx the parse tree\n\t * @return the visitor result\n\t */\n\tvisitArguments?: (ctx: ArgumentsContext) => Result;\n\t/**\n\t * Visit a parse tree produced by `ApexParser.soqlLiteral`.\n\t * @param ctx the parse tree\n\t * @return the visitor result\n\t */\n\tvisitSoqlLiteral?: (ctx: SoqlLiteralContext) => Result;\n\t/**\n\t * Visit a parse tree produced by `ApexParser.query`.\n\t * @param ctx the parse tree\n\t * @return the visitor result\n\t */\n\tvisitQuery?: (ctx: QueryContext) => Result;\n\t/**\n\t * Visit a parse tree produced by `ApexParser.subQuery`.\n\t * @param ctx the parse tree\n\t * @return the visitor result\n\t */\n\tvisitSubQuery?: (ctx: SubQueryContext) => Result;\n\t/**\n\t * Visit a parse tree produced by `ApexParser.selectList`.\n\t * @param ctx the parse tree\n\t * @return the visitor result\n\t */\n\tvisitSelectList?: (ctx: SelectListContext) => Result;\n\t/**\n\t * Visit a parse tree produced by `ApexParser.selectEntry`.\n\t * @param ctx the parse tree\n\t * @return the visitor result\n\t */\n\tvisitSelectEntry?: (ctx: SelectEntryContext) => Result;\n\t/**\n\t * Visit a parse tree produced by `ApexParser.fieldName`.\n\t * @param ctx the parse tree\n\t * @return the visitor result\n\t */\n\tvisitFieldName?: (ctx: FieldNameContext) => Result;\n\t/**\n\t * Visit a parse tree produced by `ApexParser.fromNameList`.\n\t * @param ctx the parse tree\n\t * @return the visitor result\n\t */\n\tvisitFromNameList?: (ctx: FromNameListContext) => Result;\n\t/**\n\t * Visit a parse tree produced by `ApexParser.subFieldList`.\n\t * @param ctx the parse tree\n\t * @return the visitor result\n\t */\n\tvisitSubFieldList?: (ctx: SubFieldListContext) => Result;\n\t/**\n\t * Visit a parse tree produced by `ApexParser.subFieldEntry`.\n\t * @param ctx the parse tree\n\t * @return the visitor result\n\t */\n\tvisitSubFieldEntry?: (ctx: SubFieldEntryContext) => Result;\n\t/**\n\t * Visit a parse tree produced by `ApexParser.soqlFieldsParameter`.\n\t * @param ctx the parse tree\n\t * @return the visitor result\n\t */\n\tvisitSoqlFieldsParameter?: (ctx: SoqlFieldsParameterContext) => Result;\n\t/**\n\t * Visit a parse tree produced by `ApexParser.soqlFunction`.\n\t * @param ctx the parse tree\n\t * @return the visitor result\n\t */\n\tvisitSoqlFunction?: (ctx: SoqlFunctionContext) => Result;\n\t/**\n\t * Visit a parse tree produced by `ApexParser.dateFieldName`.\n\t * @param ctx the parse tree\n\t * @return the visitor result\n\t */\n\tvisitDateFieldName?: (ctx: DateFieldNameContext) => Result;\n\t/**\n\t * Visit a parse tree produced by `ApexParser.locationValue`.\n\t * @param ctx the parse tree\n\t * @return the visitor result\n\t */\n\tvisitLocationValue?: (ctx: LocationValueContext) => Result;\n\t/**\n\t * Visit a parse tree produced by `ApexParser.coordinateValue`.\n\t * @param ctx the parse tree\n\t * @return the visitor result\n\t */\n\tvisitCoordinateValue?: (ctx: CoordinateValueContext) => Result;\n\t/**\n\t * Visit a parse tree produced by `ApexParser.typeOf`.\n\t * @param ctx the parse tree\n\t * @return the visitor result\n\t */\n\tvisitTypeOf?: (ctx: TypeOfContext) => Result;\n\t/**\n\t * Visit a parse tree produced by `ApexParser.whenClause`.\n\t * @param ctx the parse tree\n\t * @return the visitor result\n\t */\n\tvisitWhenClause?: (ctx: WhenClauseContext) => Result;\n\t/**\n\t * Visit a parse tree produced by `ApexParser.elseClause`.\n\t * @param ctx the parse tree\n\t * @return the visitor result\n\t */\n\tvisitElseClause?: (ctx: ElseClauseContext) => Result;\n\t/**\n\t * Visit a parse tree produced by `ApexParser.fieldNameList`.\n\t * @param ctx the parse tree\n\t * @return the visitor result\n\t */\n\tvisitFieldNameList?: (ctx: FieldNameListContext) => Result;\n\t/**\n\t * Visit a parse tree produced by `ApexParser.usingScope`.\n\t * @param ctx the parse tree\n\t * @return the visitor result\n\t */\n\tvisitUsingScope?: (ctx: UsingScopeContext) => Result;\n\t/**\n\t * Visit a parse tree produced by `ApexParser.whereClause`.\n\t * @param ctx the parse tree\n\t * @return the visitor result\n\t */\n\tvisitWhereClause?: (ctx: WhereClauseContext) => Result;\n\t/**\n\t * Visit a parse tree produced by `ApexParser.logicalExpression`.\n\t * @param ctx the parse tree\n\t * @return the visitor result\n\t */\n\tvisitLogicalExpression?: (ctx: LogicalExpressionContext) => Result;\n\t/**\n\t * Visit a parse tree produced by `ApexParser.conditionalExpression`.\n\t * @param ctx the parse tree\n\t * @return the visitor result\n\t */\n\tvisitConditionalExpression?: (ctx: ConditionalExpressionContext) => Result;\n\t/**\n\t * Visit a parse tree produced by `ApexParser.fieldExpression`.\n\t * @param ctx the parse tree\n\t * @return the visitor result\n\t */\n\tvisitFieldExpression?: (ctx: FieldExpressionContext) => Result;\n\t/**\n\t * Visit a parse tree produced by `ApexParser.comparisonOperator`.\n\t * @param ctx the parse tree\n\t * @return the visitor result\n\t */\n\tvisitComparisonOperator?: (ctx: ComparisonOperatorContext) => Result;\n\t/**\n\t * Visit a parse tree produced by `ApexParser.value`.\n\t * @param ctx the parse tree\n\t * @return the visitor result\n\t */\n\tvisitValue?: (ctx: ValueContext) => Result;\n\t/**\n\t * Visit a parse tree produced by `ApexParser.valueList`.\n\t * @param ctx the parse tree\n\t * @return the visitor result\n\t */\n\tvisitValueList?: (ctx: ValueListContext) => Result;\n\t/**\n\t * Visit a parse tree produced by `ApexParser.signedNumber`.\n\t * @param ctx the parse tree\n\t * @return the visitor result\n\t */\n\tvisitSignedNumber?: (ctx: SignedNumberContext) => Result;\n\t/**\n\t * Visit a parse tree produced by `ApexParser.withClause`.\n\t * @param ctx the parse tree\n\t * @return the visitor result\n\t */\n\tvisitWithClause?: (ctx: WithClauseContext) => Result;\n\t/**\n\t * Visit a parse tree produced by `ApexParser.filteringExpression`.\n\t * @param ctx the parse tree\n\t * @return the visitor result\n\t */\n\tvisitFilteringExpression?: (ctx: FilteringExpressionContext) => Result;\n\t/**\n\t * Visit a parse tree produced by `ApexParser.dataCategorySelection`.\n\t * @param ctx the parse tree\n\t * @return the visitor result\n\t */\n\tvisitDataCategorySelection?: (ctx: DataCategorySelectionContext) => Result;\n\t/**\n\t * Visit a parse tree produced by `ApexParser.dataCategoryName`.\n\t * @param ctx the parse tree\n\t * @return the visitor result\n\t */\n\tvisitDataCategoryName?: (ctx: DataCategoryNameContext) => Result;\n\t/**\n\t * Visit a parse tree produced by `ApexParser.filteringSelector`.\n\t * @param ctx the parse tree\n\t * @return the visitor result\n\t */\n\tvisitFilteringSelector?: (ctx: FilteringSelectorContext) => Result;\n\t/**\n\t * Visit a parse tree produced by `ApexParser.groupByClause`.\n\t * @param ctx the parse tree\n\t * @return the visitor result\n\t */\n\tvisitGroupByClause?: (ctx: GroupByClauseContext) => Result;\n\t/**\n\t * Visit a parse tree produced by `ApexParser.fieldGroupByList`.\n\t * @param ctx the parse tree\n\t * @return the visitor result\n\t */\n\tvisitFieldGroupByList?: (ctx: FieldGroupByListContext) => Result;\n\t/**\n\t * Visit a parse tree produced by `ApexParser.fieldGroupBy`.\n\t * @param ctx the parse tree\n\t * @return the visitor result\n\t */\n\tvisitFieldGroupBy?: (ctx: FieldGroupByContext) => Result;\n\t/**\n\t * Visit a parse tree produced by `ApexParser.orderByClause`.\n\t * @param ctx the parse tree\n\t * @return the visitor result\n\t */\n\tvisitOrderByClause?: (ctx: OrderByClauseContext) => Result;\n\t/**\n\t * Visit a parse tree produced by `ApexParser.fieldOrderList`.\n\t * @param ctx the parse tree\n\t * @return the visitor result\n\t */\n\tvisitFieldOrderList?: (ctx: FieldOrderListContext) => Result;\n\t/**\n\t * Visit a parse tree produced by `ApexParser.fieldOrder`.\n\t * @param ctx the parse tree\n\t * @return the visitor result\n\t */\n\tvisitFieldOrder?: (ctx: FieldOrderContext) => Result;\n\t/**\n\t * Visit a parse tree produced by `ApexParser.limitClause`.\n\t * @param ctx the parse tree\n\t * @return the visitor result\n\t */\n\tvisitLimitClause?: (ctx: LimitClauseContext) => Result;\n\t/**\n\t * Visit a parse tree produced by `ApexParser.offsetClause`.\n\t * @param ctx the parse tree\n\t * @return the visitor result\n\t */\n\tvisitOffsetClause?: (ctx: OffsetClauseContext) => Result;\n\t/**\n\t * Visit a parse tree produced by `ApexParser.allRowsClause`.\n\t * @param ctx the parse tree\n\t * @return the visitor result\n\t */\n\tvisitAllRowsClause?: (ctx: AllRowsClauseContext) => Result;\n\t/**\n\t * Visit a parse tree produced by `ApexParser.forClauses`.\n\t * @param ctx the parse tree\n\t * @return the visitor result\n\t */\n\tvisitForClauses?: (ctx: ForClausesContext) => Result;\n\t/**\n\t * Visit a parse tree produced by `ApexParser.boundExpression`.\n\t * @param ctx the parse tree\n\t * @return the visitor result\n\t */\n\tvisitBoundExpression?: (ctx: BoundExpressionContext) => Result;\n\t/**\n\t * Visit a parse tree produced by `ApexParser.dateFormula`.\n\t * @param ctx the parse tree\n\t * @return the visitor result\n\t */\n\tvisitDateFormula?: (ctx: DateFormulaContext) => Result;\n\t/**\n\t * Visit a parse tree produced by `ApexParser.signedInteger`.\n\t * @param ctx the parse tree\n\t * @return the visitor result\n\t */\n\tvisitSignedInteger?: (ctx: SignedIntegerContext) => Result;\n\t/**\n\t * Visit a parse tree produced by `ApexParser.soqlId`.\n\t * @param ctx the parse tree\n\t * @return the visitor result\n\t */\n\tvisitSoqlId?: (ctx: SoqlIdContext) => Result;\n\t/**\n\t * Visit a parse tree produced by `ApexParser.soslLiteral`.\n\t * @param ctx the parse tree\n\t * @return the visitor result\n\t */\n\tvisitSoslLiteral?: (ctx: SoslLiteralContext) => Result;\n\t/**\n\t * Visit a parse tree produced by `ApexParser.soslLiteralAlt`.\n\t * @param ctx the parse tree\n\t * @return the visitor result\n\t */\n\tvisitSoslLiteralAlt?: (ctx: SoslLiteralAltContext) => Result;\n\t/**\n\t * Visit a parse tree produced by `ApexParser.soslClauses`.\n\t * @param ctx the parse tree\n\t * @return the visitor result\n\t */\n\tvisitSoslClauses?: (ctx: SoslClausesContext) => Result;\n\t/**\n\t * Visit a parse tree produced by `ApexParser.soslWithClause`.\n\t * @param ctx the parse tree\n\t * @return the visitor result\n\t */\n\tvisitSoslWithClause?: (ctx: SoslWithClauseContext) => Result;\n\t/**\n\t * Visit a parse tree produced by `ApexParser.searchGroup`.\n\t * @param ctx the parse tree\n\t * @return the visitor result\n\t */\n\tvisitSearchGroup?: (ctx: SearchGroupContext) => Result;\n\t/**\n\t * Visit a parse tree produced by `ApexParser.fieldSpecList`.\n\t * @param ctx the parse tree\n\t * @return the visitor result\n\t */\n\tvisitFieldSpecList?: (ctx: FieldSpecListContext) => Result;\n\t/**\n\t * Visit a parse tree produced by `ApexParser.fieldSpec`.\n\t * @param ctx the parse tree\n\t * @return the visitor result\n\t */\n\tvisitFieldSpec?: (ctx: FieldSpecContext) => Result;\n\t/**\n\t * Visit a parse tree produced by `ApexParser.fieldList`.\n\t * @param ctx the parse tree\n\t * @return the visitor result\n\t */\n\tvisitFieldList?: (ctx: FieldListContext) => Result;\n\t/**\n\t * Visit a parse tree produced by `ApexParser.updateList`.\n\t * @param ctx the parse tree\n\t * @return the visitor result\n\t */\n\tvisitUpdateList?: (ctx: UpdateListContext) => Result;\n\t/**\n\t * Visit a parse tree produced by `ApexParser.updateType`.\n\t * @param ctx the parse tree\n\t * @return the visitor result\n\t */\n\tvisitUpdateType?: (ctx: UpdateTypeContext) => Result;\n\t/**\n\t * Visit a parse tree produced by `ApexParser.networkList`.\n\t * @param ctx the parse tree\n\t * @return the visitor result\n\t */\n\tvisitNetworkList?: (ctx: NetworkListContext) => Result;\n\t/**\n\t * Visit a parse tree produced by `ApexParser.soslId`.\n\t * @param ctx the parse tree\n\t * @return the visitor result\n\t */\n\tvisitSoslId?: (ctx: SoslIdContext) => Result;\n\t/**\n\t * Visit a parse tree produced by `ApexParser.id`.\n\t * @param ctx the parse tree\n\t * @return the visitor result\n\t */\n\tvisitId?: (ctx: IdContext) => Result;\n\t/**\n\t * Visit a parse tree produced by `ApexParser.anyId`.\n\t * @param ctx the parse tree\n\t * @return the visitor result\n\t */\n\tvisitAnyId?: (ctx: AnyIdContext) => Result;\n}\n\n"],"names":[],"mappings":";;AAsMA,MAAqB,0BAAkC,gBAAA,CAAyB;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,EAM/E,gBAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,EAMA,gBAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,EAMA,iBAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,EAMA,uBAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,EAMA,kBAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,EAMA,mBAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,EAMA,yBAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,EAMA,oBAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,EAMA,oB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AMA,gBAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,EAMA,WAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,EAMA,OAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,EAMA,UAAA;AACD;;;;"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
export { ApexErrorListener, ApexSyntaxError, ThrowingErrorListener } from './ApexErrorListener.js';
|
|
2
|
+
export { ApexParseTreeWalker, ApexParserBaseListener, ApexParserBaseVisitor, ApexParserFactory } from './ApexParserFactory.js';
|
|
3
|
+
export { CaseInsensitiveInputStream } from './CaseInsensitiveInputStream.js';
|
|
4
|
+
export { check, checkProject } from './Check.js';
|
|
5
|
+
export { AccessLevelContext, AllRowsClauseContext, AnnotationContext, AnonymousBlockContext, AnonymousBlockMemberContext, AnonymousMemberDeclarationContext, AnonymousUnitContext, AnyIdContext, default as ApexParser, ArgumentsContext, ArrayCreatorRestContext, ArrayExpressionContext, ArrayInitializerContext, ArraySubscriptsContext, Arth1ExpressionContext, Arth2ExpressionContext, AssignExpressionContext, BitAndExpressionContext, BitExpressionContext, BitNotExpressionContext, BitOrExpressionContext, BlockContext, BoundExpressionContext, BreakStatementContext, CastExpressionContext, CatchClauseContext, ClassBodyContext, ClassBodyDeclarationContext, ClassCreatorRestContext, ClassDeclarationContext, CmpExpressionContext, CoalExpressionContext, ComparisonOperatorContext, CompilationUnitContext, CondExpressionContext, ConditionalExpressionContext, ConstructorDeclarationContext, ContinueStatementContext, CoordinateValueContext, CreatedNameContext, CreatorContext, DataCategoryNameContext, DataCategorySelectionContext, DateFieldNameContext, DateFormulaContext, DeleteStatementContext, DoWhileStatementContext, DotExpressionContext, DotMethodCallContext, ElementValueArrayInitializerContext, ElementValueContext, ElementValuePairContext, ElementValuePairsContext, ElseClauseContext, EnhancedForControlContext, EnumConstantsContext, EnumDeclarationContext, EqualityExpressionContext, ExpressionContext, ExpressionListContext, ExpressionStatementContext, FieldDeclarationContext, FieldExpressionContext, FieldGroupByContext, FieldGroupByListContext, FieldListContext, FieldNameContext, FieldNameListContext, FieldOrderContext, FieldOrderListContext, FieldSpecContext, FieldSpecListContext, FilteringExpressionContext, FilteringSelectorContext, FinallyBlockContext, ForClausesContext, ForControlContext, ForInitContext, ForStatementContext, ForUpdateContext, FormalParameterContext, FormalParameterListContext, FormalParametersContext, FromNameListContext, GetterContext, GroupByClauseContext, IdContext, IdCreatedNamePairContext, IdPrimaryContext, IfStatementContext, InsertStatementContext, InstanceOfExpressionContext, InterfaceBodyContext, InterfaceDeclarationContext, InterfaceMethodDeclarationContext, LimitClauseContext, LiteralContext, LiteralPrimaryContext, LocalVariableDeclarationContext, LocalVariableDeclarationStatementContext, LocationValueContext, LogAndExpressionContext, LogOrExpressionContext, LogicalExpressionContext, MapCreatorRestContext, MapCreatorRestPairContext, MemberDeclarationContext, MergeStatementContext, MethodCallContext, MethodCallExpressionContext, MethodDeclarationContext, ModifierContext, NegExpressionContext, NetworkListContext, NewExpressionContext, NoRestContext, OffsetClauseContext, OrderByClauseContext, ParExpressionContext, PostOpExpressionContext, PreOpExpressionContext, PrimaryContext, PrimaryExpressionContext, PropertyBlockContext, PropertyDeclarationContext, QualifiedNameContext, QueryContext, ReturnStatementContext, RunAsStatementContext, SearchGroupContext, SelectEntryContext, SelectListContext, SetCreatorRestContext, SetterContext, SignedIntegerContext, SignedNumberContext, SoqlFieldsParameterContext, SoqlFunctionContext, SoqlIdContext, SoqlLiteralContext, SoqlPrimaryContext, SoslClausesContext, SoslIdContext, SoslLiteralAltContext, SoslLiteralContext, SoslPrimaryContext, SoslWithClauseContext, StatementContext, SubExpressionContext, SubFieldEntryContext, SubFieldListContext, SubQueryContext, SuperPrimaryContext, SwitchStatementContext, ThisPrimaryContext, ThrowStatementContext, TriggerBlockContext, TriggerBlockMemberContext, TriggerCaseContext, TriggerMemberDeclarationContext, TriggerUnitContext, TryStatementContext, TypeArgumentsContext, TypeDeclarationContext, TypeListContext, TypeNameContext, TypeOfContext, TypeRefContext, TypeRefPrimaryContext, UndeleteStatementContext, UpdateListContext, UpdateStatementContext, UpdateTypeContext, UpsertStatementContext, UsingScopeContext, ValueContext, ValueListContext, VariableDeclaratorContext, VariableDeclaratorsContext, VoidPrimaryContext, WhenClauseContext, WhenControlContext, WhenLiteralContext, WhenValueContext, WhereClauseContext, WhileStatementContext, WithClauseContext } from './antlr/ApexParser.js';
|
|
6
|
+
export { default as ApexLexer } from './antlr/ApexLexer.js';
|
|
7
|
+
export { default as ApexParserListener } from './antlr/ApexParserListener.js';
|
|
8
|
+
export { default as ApexParserVisitor } from './antlr/ApexParserVisitor.js';
|
|
9
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;"}
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import { ErrorListener, type RecognitionException, type Recognizer, type Token } from "antlr4";
|
|
2
|
+
/**
|
|
3
|
+
* Base `ErrorListener` for Apex parsers.
|
|
4
|
+
*
|
|
5
|
+
* Implement `apexSyntaxError()` to set behaviour. A single instance can be
|
|
6
|
+
* attached to both a lexer and a parser - see `ApexParserFactory.createLexerAndParser`.
|
|
7
|
+
*/
|
|
8
|
+
export declare abstract class ApexErrorListener extends ErrorListener<Token | number> {
|
|
9
|
+
abstract apexSyntaxError(line: number, column: number, msg: string): void;
|
|
10
|
+
syntaxError(recognizer: Recognizer<Token | number>, offendingSymbol: Token | number, line: number, column: number, msg: string, e: RecognitionException | undefined): void;
|
|
11
|
+
}
|
|
12
|
+
export declare class ApexSyntaxError extends Error {
|
|
13
|
+
line: number;
|
|
14
|
+
column: number;
|
|
15
|
+
message: string;
|
|
16
|
+
constructor(line: number, column: number, message: string);
|
|
17
|
+
}
|
|
18
|
+
/**
|
|
19
|
+
* `ApexErrorListener` that throws an `ApexSyntaxError` on first reported error.
|
|
20
|
+
*
|
|
21
|
+
* Use ThrowingErrorListener.INSTANCE to share across parsers.
|
|
22
|
+
*/
|
|
23
|
+
export declare class ThrowingErrorListener extends ApexErrorListener {
|
|
24
|
+
static readonly INSTANCE: ThrowingErrorListener;
|
|
25
|
+
apexSyntaxError(line: number, column: number, msg: string): void;
|
|
26
|
+
}
|
|
@@ -2,11 +2,12 @@ import { ErrorListener, type RecognitionException, type Recognizer, type Token }
|
|
|
2
2
|
/**
|
|
3
3
|
* Base `ErrorListener` for Apex parsers.
|
|
4
4
|
*
|
|
5
|
-
* Implement `apexSyntaxError()` to set behaviour.
|
|
5
|
+
* Implement `apexSyntaxError()` to set behaviour. A single instance can be
|
|
6
|
+
* attached to both a lexer and a parser - see `ApexParserFactory.createLexerAndParser`.
|
|
6
7
|
*/
|
|
7
|
-
export declare abstract class ApexErrorListener extends ErrorListener<Token> {
|
|
8
|
+
export declare abstract class ApexErrorListener extends ErrorListener<Token | number> {
|
|
8
9
|
abstract apexSyntaxError(line: number, column: number, msg: string): void;
|
|
9
|
-
syntaxError(recognizer: Recognizer<Token>, offendingSymbol: Token, line: number, column: number, msg: string, e: RecognitionException | undefined): void;
|
|
10
|
+
syntaxError(recognizer: Recognizer<Token | number>, offendingSymbol: Token | number, line: number, column: number, msg: string, e: RecognitionException | undefined): void;
|
|
10
11
|
}
|
|
11
12
|
export declare class ApexSyntaxError extends Error {
|
|
12
13
|
line: number;
|
|
@@ -0,0 +1,81 @@
|
|
|
1
|
+
import { CommonTokenStream, ErrorNode, ParserRuleContext, ParseTree, ParseTreeListener, ParseTreeVisitor, ParseTreeWalker, RuleNode, TerminalNode, Token } from "antlr4";
|
|
2
|
+
import type ApexParserListener from "./antlr/ApexParserListener.js";
|
|
3
|
+
import type ApexParserVisitor from "./antlr/ApexParserVisitor.js";
|
|
4
|
+
import ApexLexer from "./antlr/ApexLexer.js";
|
|
5
|
+
import ApexParser from "./antlr/ApexParser.js";
|
|
6
|
+
import { ApexErrorListener } from "./ApexErrorListener.js";
|
|
7
|
+
export type ApexParserRuleContext = ParserRuleContext;
|
|
8
|
+
export type ApexErrorNode = ErrorNode;
|
|
9
|
+
export type ApexParseTree = ParseTree;
|
|
10
|
+
export type ApexRuleNode = RuleNode;
|
|
11
|
+
export type ApexTerminalNode = TerminalNode;
|
|
12
|
+
export type ApexTokenStream = CommonTokenStream;
|
|
13
|
+
export type ApexToken = Token;
|
|
14
|
+
/**
|
|
15
|
+
* A factory for `ApexParser` and its components. Abstracts interaction
|
|
16
|
+
* with core ANTLR types like `CommonTokenStream`.
|
|
17
|
+
*/
|
|
18
|
+
export declare class ApexParserFactory {
|
|
19
|
+
private constructor();
|
|
20
|
+
static createParser(source: string | ApexTokenStream, throwOnFirstError?: boolean): ApexParser;
|
|
21
|
+
static createTokenStream(source: string | ApexLexer): ApexTokenStream;
|
|
22
|
+
static createLexer(source: string): ApexLexer;
|
|
23
|
+
/**
|
|
24
|
+
* Creates a lexer and parser pair with the given error listener attached to
|
|
25
|
+
* both. This is the recommended way to capture all syntax errors when parsing
|
|
26
|
+
* full Apex source - lexer errors (e.g. invalid string escape sequences) are
|
|
27
|
+
* only reported to listeners attached to the lexer, and parser errors are
|
|
28
|
+
* only reported to listeners attached to the parser.
|
|
29
|
+
*/
|
|
30
|
+
static createLexerAndParser(source: string, errorListener: ApexErrorListener): {
|
|
31
|
+
lexer: ApexLexer;
|
|
32
|
+
parser: ApexParser;
|
|
33
|
+
};
|
|
34
|
+
}
|
|
35
|
+
/**
|
|
36
|
+
* A base visitor for an Apex parse tree produced by `ApexParser`. Extend this
|
|
37
|
+
* class to define a subset of visitor operations.
|
|
38
|
+
*
|
|
39
|
+
* @see ApexParserVisitor for tree context visit operations.
|
|
40
|
+
* @param Result The return type of the visit operation. Use `void` for
|
|
41
|
+
* operations with no return type.
|
|
42
|
+
* @example
|
|
43
|
+
* // Implementations can be property or method styles.
|
|
44
|
+
* visitCompilationUnit = (ctx: CompilationUnitContext) => { return result; }
|
|
45
|
+
* visitCompilationUnit(ctx: CompilationUnitContext) { return result; }
|
|
46
|
+
*/
|
|
47
|
+
export declare class ApexParserBaseVisitor<Result> extends ParseTreeVisitor<Result> implements ApexParserVisitor<Result> {
|
|
48
|
+
visit(tree: ApexParseTree): Result;
|
|
49
|
+
visitChildren(node: ApexRuleNode): Result;
|
|
50
|
+
visitTerminal(node: ApexTerminalNode): Result;
|
|
51
|
+
visitErrorNode(node: ApexErrorNode): Result;
|
|
52
|
+
}
|
|
53
|
+
/**
|
|
54
|
+
* A base listener for an Apex parse tree produced by `ApexParser`. Extend this
|
|
55
|
+
* class to define a subset of listener operations.
|
|
56
|
+
*
|
|
57
|
+
* @see ApexParserListener for tree context listen operations.
|
|
58
|
+
* @example
|
|
59
|
+
* // Implementations can be property or method styles.
|
|
60
|
+
* enterCompilationUnit = (ctx: CompilationUnitContext) => {}
|
|
61
|
+
* enterCompilationUnit(ctx: CompilationUnitContext) {}
|
|
62
|
+
*/
|
|
63
|
+
export declare class ApexParserBaseListener extends ParseTreeListener implements ApexParserListener {
|
|
64
|
+
visitTerminal(node: ApexTerminalNode): void;
|
|
65
|
+
visitErrorNode(node: ApexErrorNode): void;
|
|
66
|
+
enterEveryRule(ctx: ApexParserRuleContext): void;
|
|
67
|
+
exitEveryRule(ctx: ApexParserRuleContext): void;
|
|
68
|
+
}
|
|
69
|
+
/**
|
|
70
|
+
* Walker for a parse tree starting at the root and going down recursively
|
|
71
|
+
* with depth-first search.
|
|
72
|
+
*
|
|
73
|
+
* @example
|
|
74
|
+
* const parser = ApexParserFactory.createParser("public class Foo {}");
|
|
75
|
+
* const listener = new MyListener(); // extends ApexParseTreeListener
|
|
76
|
+
* ApexParseTreeWalker.DEFAULT.walk(listener, parser.compilationUnit());
|
|
77
|
+
*/
|
|
78
|
+
export declare class ApexParseTreeWalker extends ParseTreeWalker {
|
|
79
|
+
static DEFAULT: ApexParseTreeWalker;
|
|
80
|
+
walk<T extends ApexParserListener>(listener: T, t: ApexParseTree): void;
|
|
81
|
+
}
|
|
@@ -3,6 +3,7 @@ import type ApexParserListener from "./antlr/ApexParserListener.js";
|
|
|
3
3
|
import type ApexParserVisitor from "./antlr/ApexParserVisitor.js";
|
|
4
4
|
import ApexLexer from "./antlr/ApexLexer.js";
|
|
5
5
|
import ApexParser from "./antlr/ApexParser.js";
|
|
6
|
+
import { ApexErrorListener } from "./ApexErrorListener.js";
|
|
6
7
|
export type ApexParserRuleContext = ParserRuleContext;
|
|
7
8
|
export type ApexErrorNode = ErrorNode;
|
|
8
9
|
export type ApexParseTree = ParseTree;
|
|
@@ -19,6 +20,17 @@ export declare class ApexParserFactory {
|
|
|
19
20
|
static createParser(source: string | ApexTokenStream, throwOnFirstError?: boolean): ApexParser;
|
|
20
21
|
static createTokenStream(source: string | ApexLexer): ApexTokenStream;
|
|
21
22
|
static createLexer(source: string): ApexLexer;
|
|
23
|
+
/**
|
|
24
|
+
* Creates a lexer and parser pair with the given error listener attached to
|
|
25
|
+
* both. This is the recommended way to capture all syntax errors when parsing
|
|
26
|
+
* full Apex source - lexer errors (e.g. invalid string escape sequences) are
|
|
27
|
+
* only reported to listeners attached to the lexer, and parser errors are
|
|
28
|
+
* only reported to listeners attached to the parser.
|
|
29
|
+
*/
|
|
30
|
+
static createLexerAndParser(source: string, errorListener: ApexErrorListener): {
|
|
31
|
+
lexer: ApexLexer;
|
|
32
|
+
parser: ApexParser;
|
|
33
|
+
};
|
|
22
34
|
}
|
|
23
35
|
/**
|
|
24
36
|
* A base visitor for an Apex parse tree produced by `ApexParser`. Extend this
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { CharStream } from "antlr4";
|
|
2
|
+
/**
|
|
3
|
+
* Converts char stream to lower case for case insensitive usage.
|
|
4
|
+
*
|
|
5
|
+
* @deprecated since 5.0.0. ApexLexer is generated with ANTLR 4.10
|
|
6
|
+
* `caseInsensitive` option enabled.
|
|
7
|
+
*/
|
|
8
|
+
export declare class CaseInsensitiveInputStream extends CharStream {
|
|
9
|
+
constructor(data: string, decodeToUnicodeCodePoints?: boolean);
|
|
10
|
+
constructor(stream: CharStream, decodeToUnicodeCodePoints?: boolean);
|
|
11
|
+
LA(i: number): number;
|
|
12
|
+
LT(offset: number): number;
|
|
13
|
+
private toLower;
|
|
14
|
+
}
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
export interface CheckError {
|
|
2
|
+
column: number;
|
|
3
|
+
line: number;
|
|
4
|
+
message: string;
|
|
5
|
+
path: string;
|
|
6
|
+
}
|
|
7
|
+
export interface CheckResult {
|
|
8
|
+
extensions: string[];
|
|
9
|
+
errors: CheckError[];
|
|
10
|
+
status: number;
|
|
11
|
+
}
|
|
12
|
+
export interface ProjectCheckResult extends CheckResult {
|
|
13
|
+
name: string;
|
|
14
|
+
path: string;
|
|
15
|
+
pkg?: string;
|
|
16
|
+
}
|
|
17
|
+
/**
|
|
18
|
+
* Check Apex files in a path for syntax errors.
|
|
19
|
+
*
|
|
20
|
+
* @param pathStr Path to check. If not provided, uses process.argv or
|
|
21
|
+
* process.cwd().
|
|
22
|
+
* @param fileExt CSV list of file extensions to check
|
|
23
|
+
* (default: `.cls,.trigger,.apex`).
|
|
24
|
+
* @returns Result with status (0 ok, 1 error, 2 missing path) and syntax
|
|
25
|
+
* errors.
|
|
26
|
+
*/
|
|
27
|
+
export declare function check(pathStr?: string, fileExt?: string): Promise<CheckResult>;
|
|
28
|
+
/**
|
|
29
|
+
* Check an Apex sfdx-project for syntax errors.
|
|
30
|
+
*
|
|
31
|
+
* @param pathStr Path to directory containing an sfdx-project.json at most 1
|
|
32
|
+
* level deep. If not found, reverts to `check()` behaviour.
|
|
33
|
+
* @returns Result for each package with status (0 ok, 1 error, 2 missing path)
|
|
34
|
+
* and syntax errors.
|
|
35
|
+
*/
|
|
36
|
+
export declare function checkProject(pathStr?: string): Promise<ProjectCheckResult[]>;
|
|
@@ -0,0 +1,275 @@
|
|
|
1
|
+
import { ATN, CharStream, DFA, Lexer } from "antlr4";
|
|
2
|
+
export default class ApexLexer extends Lexer {
|
|
3
|
+
static readonly ABSTRACT = 1;
|
|
4
|
+
static readonly AFTER = 2;
|
|
5
|
+
static readonly BEFORE = 3;
|
|
6
|
+
static readonly BREAK = 4;
|
|
7
|
+
static readonly CATCH = 5;
|
|
8
|
+
static readonly CLASS = 6;
|
|
9
|
+
static readonly CONTINUE = 7;
|
|
10
|
+
static readonly DELETE = 8;
|
|
11
|
+
static readonly DO = 9;
|
|
12
|
+
static readonly ELSE = 10;
|
|
13
|
+
static readonly ENUM = 11;
|
|
14
|
+
static readonly EXTENDS = 12;
|
|
15
|
+
static readonly FINAL = 13;
|
|
16
|
+
static readonly FINALLY = 14;
|
|
17
|
+
static readonly FOR = 15;
|
|
18
|
+
static readonly GET = 16;
|
|
19
|
+
static readonly GLOBAL = 17;
|
|
20
|
+
static readonly IF = 18;
|
|
21
|
+
static readonly IMPLEMENTS = 19;
|
|
22
|
+
static readonly INHERITED = 20;
|
|
23
|
+
static readonly INSERT = 21;
|
|
24
|
+
static readonly INSTANCEOF = 22;
|
|
25
|
+
static readonly INTERFACE = 23;
|
|
26
|
+
static readonly MERGE = 24;
|
|
27
|
+
static readonly NEW = 25;
|
|
28
|
+
static readonly NULL = 26;
|
|
29
|
+
static readonly ON = 27;
|
|
30
|
+
static readonly OVERRIDE = 28;
|
|
31
|
+
static readonly PRIVATE = 29;
|
|
32
|
+
static readonly PROTECTED = 30;
|
|
33
|
+
static readonly PUBLIC = 31;
|
|
34
|
+
static readonly RETURN = 32;
|
|
35
|
+
static readonly SYSTEMRUNAS = 33;
|
|
36
|
+
static readonly SET = 34;
|
|
37
|
+
static readonly SHARING = 35;
|
|
38
|
+
static readonly STATIC = 36;
|
|
39
|
+
static readonly SUPER = 37;
|
|
40
|
+
static readonly SWITCH = 38;
|
|
41
|
+
static readonly TESTMETHOD = 39;
|
|
42
|
+
static readonly THIS = 40;
|
|
43
|
+
static readonly THROW = 41;
|
|
44
|
+
static readonly TRANSIENT = 42;
|
|
45
|
+
static readonly TRIGGER = 43;
|
|
46
|
+
static readonly TRY = 44;
|
|
47
|
+
static readonly UNDELETE = 45;
|
|
48
|
+
static readonly UPDATE = 46;
|
|
49
|
+
static readonly UPSERT = 47;
|
|
50
|
+
static readonly VIRTUAL = 48;
|
|
51
|
+
static readonly VOID = 49;
|
|
52
|
+
static readonly WEBSERVICE = 50;
|
|
53
|
+
static readonly WHEN = 51;
|
|
54
|
+
static readonly WHILE = 52;
|
|
55
|
+
static readonly WITH = 53;
|
|
56
|
+
static readonly WITHOUT = 54;
|
|
57
|
+
static readonly LIST = 55;
|
|
58
|
+
static readonly MAP = 56;
|
|
59
|
+
static readonly SYSTEM = 57;
|
|
60
|
+
static readonly USER = 58;
|
|
61
|
+
static readonly SELECT = 59;
|
|
62
|
+
static readonly COUNT = 60;
|
|
63
|
+
static readonly FROM = 61;
|
|
64
|
+
static readonly AS = 62;
|
|
65
|
+
static readonly USING = 63;
|
|
66
|
+
static readonly SCOPE = 64;
|
|
67
|
+
static readonly WHERE = 65;
|
|
68
|
+
static readonly ORDER = 66;
|
|
69
|
+
static readonly BY = 67;
|
|
70
|
+
static readonly LIMIT = 68;
|
|
71
|
+
static readonly SOQLAND = 69;
|
|
72
|
+
static readonly SOQLOR = 70;
|
|
73
|
+
static readonly NOT = 71;
|
|
74
|
+
static readonly AVG = 72;
|
|
75
|
+
static readonly COUNT_DISTINCT = 73;
|
|
76
|
+
static readonly MIN = 74;
|
|
77
|
+
static readonly MAX = 75;
|
|
78
|
+
static readonly SUM = 76;
|
|
79
|
+
static readonly TYPEOF = 77;
|
|
80
|
+
static readonly END = 78;
|
|
81
|
+
static readonly THEN = 79;
|
|
82
|
+
static readonly LIKE = 80;
|
|
83
|
+
static readonly IN = 81;
|
|
84
|
+
static readonly INCLUDES = 82;
|
|
85
|
+
static readonly EXCLUDES = 83;
|
|
86
|
+
static readonly ASC = 84;
|
|
87
|
+
static readonly DESC = 85;
|
|
88
|
+
static readonly NULLS = 86;
|
|
89
|
+
static readonly FIRST = 87;
|
|
90
|
+
static readonly LAST = 88;
|
|
91
|
+
static readonly GROUP = 89;
|
|
92
|
+
static readonly ALL = 90;
|
|
93
|
+
static readonly ROWS = 91;
|
|
94
|
+
static readonly VIEW = 92;
|
|
95
|
+
static readonly HAVING = 93;
|
|
96
|
+
static readonly ROLLUP = 94;
|
|
97
|
+
static readonly TOLABEL = 95;
|
|
98
|
+
static readonly OFFSET = 96;
|
|
99
|
+
static readonly DATA = 97;
|
|
100
|
+
static readonly CATEGORY = 98;
|
|
101
|
+
static readonly AT = 99;
|
|
102
|
+
static readonly ABOVE = 100;
|
|
103
|
+
static readonly BELOW = 101;
|
|
104
|
+
static readonly ABOVE_OR_BELOW = 102;
|
|
105
|
+
static readonly SECURITY_ENFORCED = 103;
|
|
106
|
+
static readonly SYSTEM_MODE = 104;
|
|
107
|
+
static readonly USER_MODE = 105;
|
|
108
|
+
static readonly REFERENCE = 106;
|
|
109
|
+
static readonly CUBE = 107;
|
|
110
|
+
static readonly FORMAT = 108;
|
|
111
|
+
static readonly TRACKING = 109;
|
|
112
|
+
static readonly VIEWSTAT = 110;
|
|
113
|
+
static readonly CUSTOM = 111;
|
|
114
|
+
static readonly STANDARD = 112;
|
|
115
|
+
static readonly DISTANCE = 113;
|
|
116
|
+
static readonly GEOLOCATION = 114;
|
|
117
|
+
static readonly GROUPING = 115;
|
|
118
|
+
static readonly CONVERT_CURRENCY = 116;
|
|
119
|
+
static readonly CALENDAR_MONTH = 117;
|
|
120
|
+
static readonly CALENDAR_QUARTER = 118;
|
|
121
|
+
static readonly CALENDAR_YEAR = 119;
|
|
122
|
+
static readonly DAY_IN_MONTH = 120;
|
|
123
|
+
static readonly DAY_IN_WEEK = 121;
|
|
124
|
+
static readonly DAY_IN_YEAR = 122;
|
|
125
|
+
static readonly DAY_ONLY = 123;
|
|
126
|
+
static readonly FISCAL_MONTH = 124;
|
|
127
|
+
static readonly FISCAL_QUARTER = 125;
|
|
128
|
+
static readonly FISCAL_YEAR = 126;
|
|
129
|
+
static readonly HOUR_IN_DAY = 127;
|
|
130
|
+
static readonly WEEK_IN_MONTH = 128;
|
|
131
|
+
static readonly WEEK_IN_YEAR = 129;
|
|
132
|
+
static readonly CONVERT_TIMEZONE = 130;
|
|
133
|
+
static readonly YESTERDAY = 131;
|
|
134
|
+
static readonly TODAY = 132;
|
|
135
|
+
static readonly TOMORROW = 133;
|
|
136
|
+
static readonly LAST_WEEK = 134;
|
|
137
|
+
static readonly THIS_WEEK = 135;
|
|
138
|
+
static readonly NEXT_WEEK = 136;
|
|
139
|
+
static readonly LAST_MONTH = 137;
|
|
140
|
+
static readonly THIS_MONTH = 138;
|
|
141
|
+
static readonly NEXT_MONTH = 139;
|
|
142
|
+
static readonly LAST_90_DAYS = 140;
|
|
143
|
+
static readonly NEXT_90_DAYS = 141;
|
|
144
|
+
static readonly LAST_N_DAYS_N = 142;
|
|
145
|
+
static readonly NEXT_N_DAYS_N = 143;
|
|
146
|
+
static readonly N_DAYS_AGO_N = 144;
|
|
147
|
+
static readonly NEXT_N_WEEKS_N = 145;
|
|
148
|
+
static readonly LAST_N_WEEKS_N = 146;
|
|
149
|
+
static readonly N_WEEKS_AGO_N = 147;
|
|
150
|
+
static readonly NEXT_N_MONTHS_N = 148;
|
|
151
|
+
static readonly LAST_N_MONTHS_N = 149;
|
|
152
|
+
static readonly N_MONTHS_AGO_N = 150;
|
|
153
|
+
static readonly THIS_QUARTER = 151;
|
|
154
|
+
static readonly LAST_QUARTER = 152;
|
|
155
|
+
static readonly NEXT_QUARTER = 153;
|
|
156
|
+
static readonly NEXT_N_QUARTERS_N = 154;
|
|
157
|
+
static readonly LAST_N_QUARTERS_N = 155;
|
|
158
|
+
static readonly N_QUARTERS_AGO_N = 156;
|
|
159
|
+
static readonly THIS_YEAR = 157;
|
|
160
|
+
static readonly LAST_YEAR = 158;
|
|
161
|
+
static readonly NEXT_YEAR = 159;
|
|
162
|
+
static readonly NEXT_N_YEARS_N = 160;
|
|
163
|
+
static readonly LAST_N_YEARS_N = 161;
|
|
164
|
+
static readonly N_YEARS_AGO_N = 162;
|
|
165
|
+
static readonly THIS_FISCAL_QUARTER = 163;
|
|
166
|
+
static readonly LAST_FISCAL_QUARTER = 164;
|
|
167
|
+
static readonly NEXT_FISCAL_QUARTER = 165;
|
|
168
|
+
static readonly NEXT_N_FISCAL_QUARTERS_N = 166;
|
|
169
|
+
static readonly LAST_N_FISCAL_QUARTERS_N = 167;
|
|
170
|
+
static readonly N_FISCAL_QUARTERS_AGO_N = 168;
|
|
171
|
+
static readonly THIS_FISCAL_YEAR = 169;
|
|
172
|
+
static readonly LAST_FISCAL_YEAR = 170;
|
|
173
|
+
static readonly NEXT_FISCAL_YEAR = 171;
|
|
174
|
+
static readonly NEXT_N_FISCAL_YEARS_N = 172;
|
|
175
|
+
static readonly LAST_N_FISCAL_YEARS_N = 173;
|
|
176
|
+
static readonly N_FISCAL_YEARS_AGO_N = 174;
|
|
177
|
+
static readonly DateLiteral = 175;
|
|
178
|
+
static readonly TimeLiteral = 176;
|
|
179
|
+
static readonly DateTimeLiteral = 177;
|
|
180
|
+
static readonly IntegralCurrencyLiteral = 178;
|
|
181
|
+
static readonly FIND = 179;
|
|
182
|
+
static readonly EMAIL = 180;
|
|
183
|
+
static readonly NAME = 181;
|
|
184
|
+
static readonly PHONE = 182;
|
|
185
|
+
static readonly SIDEBAR = 183;
|
|
186
|
+
static readonly FIELDS = 184;
|
|
187
|
+
static readonly METADATA = 185;
|
|
188
|
+
static readonly PRICEBOOKID = 186;
|
|
189
|
+
static readonly NETWORK = 187;
|
|
190
|
+
static readonly SNIPPET = 188;
|
|
191
|
+
static readonly TARGET_LENGTH = 189;
|
|
192
|
+
static readonly DIVISION = 190;
|
|
193
|
+
static readonly RETURNING = 191;
|
|
194
|
+
static readonly LISTVIEW = 192;
|
|
195
|
+
static readonly FindLiteral = 193;
|
|
196
|
+
static readonly FindLiteralAlt = 194;
|
|
197
|
+
static readonly IntegerLiteral = 195;
|
|
198
|
+
static readonly LongLiteral = 196;
|
|
199
|
+
static readonly NumberLiteral = 197;
|
|
200
|
+
static readonly BooleanLiteral = 198;
|
|
201
|
+
static readonly MultilineStringLiteral = 199;
|
|
202
|
+
static readonly StringLiteral = 200;
|
|
203
|
+
static readonly NullLiteral = 201;
|
|
204
|
+
static readonly LPAREN = 202;
|
|
205
|
+
static readonly RPAREN = 203;
|
|
206
|
+
static readonly LBRACE = 204;
|
|
207
|
+
static readonly RBRACE = 205;
|
|
208
|
+
static readonly LBRACK = 206;
|
|
209
|
+
static readonly RBRACK = 207;
|
|
210
|
+
static readonly SEMI = 208;
|
|
211
|
+
static readonly COMMA = 209;
|
|
212
|
+
static readonly DOT = 210;
|
|
213
|
+
static readonly ASSIGN = 211;
|
|
214
|
+
static readonly GT = 212;
|
|
215
|
+
static readonly LT = 213;
|
|
216
|
+
static readonly BANG = 214;
|
|
217
|
+
static readonly TILDE = 215;
|
|
218
|
+
static readonly QUESTIONDOT = 216;
|
|
219
|
+
static readonly QUESTION = 217;
|
|
220
|
+
static readonly COLON = 218;
|
|
221
|
+
static readonly EQUAL = 219;
|
|
222
|
+
static readonly TRIPLEEQUAL = 220;
|
|
223
|
+
static readonly NOTEQUAL = 221;
|
|
224
|
+
static readonly LESSANDGREATER = 222;
|
|
225
|
+
static readonly TRIPLENOTEQUAL = 223;
|
|
226
|
+
static readonly AND = 224;
|
|
227
|
+
static readonly OR = 225;
|
|
228
|
+
static readonly COAL = 226;
|
|
229
|
+
static readonly INC = 227;
|
|
230
|
+
static readonly DEC = 228;
|
|
231
|
+
static readonly ADD = 229;
|
|
232
|
+
static readonly SUB = 230;
|
|
233
|
+
static readonly MUL = 231;
|
|
234
|
+
static readonly DIV = 232;
|
|
235
|
+
static readonly BITAND = 233;
|
|
236
|
+
static readonly BITOR = 234;
|
|
237
|
+
static readonly CARET = 235;
|
|
238
|
+
static readonly MAPTO = 236;
|
|
239
|
+
static readonly ADD_ASSIGN = 237;
|
|
240
|
+
static readonly SUB_ASSIGN = 238;
|
|
241
|
+
static readonly MUL_ASSIGN = 239;
|
|
242
|
+
static readonly DIV_ASSIGN = 240;
|
|
243
|
+
static readonly AND_ASSIGN = 241;
|
|
244
|
+
static readonly OR_ASSIGN = 242;
|
|
245
|
+
static readonly XOR_ASSIGN = 243;
|
|
246
|
+
static readonly LSHIFT_ASSIGN = 244;
|
|
247
|
+
static readonly RSHIFT_ASSIGN = 245;
|
|
248
|
+
static readonly URSHIFT_ASSIGN = 246;
|
|
249
|
+
static readonly ATSIGN = 247;
|
|
250
|
+
static readonly Identifier = 248;
|
|
251
|
+
static readonly WS = 249;
|
|
252
|
+
static readonly DOC_COMMENT = 250;
|
|
253
|
+
static readonly COMMENT = 251;
|
|
254
|
+
static readonly LINE_COMMENT = 252;
|
|
255
|
+
static readonly EOF: number;
|
|
256
|
+
static readonly WHITESPACE_CHANNEL = 2;
|
|
257
|
+
static readonly COMMENT_CHANNEL = 3;
|
|
258
|
+
static readonly channelNames: string[];
|
|
259
|
+
static readonly literalNames: (string | null)[];
|
|
260
|
+
static readonly symbolicNames: (string | null)[];
|
|
261
|
+
static readonly modeNames: string[];
|
|
262
|
+
static readonly ruleNames: string[];
|
|
263
|
+
constructor(input: CharStream);
|
|
264
|
+
get grammarFileName(): string;
|
|
265
|
+
get literalNames(): (string | null)[];
|
|
266
|
+
get symbolicNames(): (string | null)[];
|
|
267
|
+
get ruleNames(): string[];
|
|
268
|
+
get serializedATN(): number[];
|
|
269
|
+
get channelNames(): string[];
|
|
270
|
+
get modeNames(): string[];
|
|
271
|
+
static readonly _serializedATN: number[];
|
|
272
|
+
private static __ATN;
|
|
273
|
+
static get _ATN(): ATN;
|
|
274
|
+
static DecisionsToDFA: DFA[];
|
|
275
|
+
}
|