@apexdevtools/apex-parser 4.4.1 → 5.0.0-beta.2

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.
Files changed (68) hide show
  1. package/CHANGELOG.md +112 -0
  2. package/README.md +98 -42
  3. package/lib/ApexErrorListener.d.ts +25 -0
  4. package/lib/ApexErrorListener.js +64 -0
  5. package/lib/ApexErrorListener.js.map +1 -0
  6. package/lib/ApexParserFactory.d.ts +69 -0
  7. package/lib/ApexParserFactory.js +125 -0
  8. package/lib/ApexParserFactory.js.map +1 -0
  9. package/lib/CaseInsensitiveInputStream.d.ts +11 -13
  10. package/lib/CaseInsensitiveInputStream.js +22 -28
  11. package/lib/CaseInsensitiveInputStream.js.map +1 -1
  12. package/lib/Check.d.ts +36 -0
  13. package/lib/Check.js +212 -0
  14. package/lib/Check.js.map +1 -0
  15. package/lib/{ApexLexer.d.ts → antlr/ApexLexer.d.ts} +11 -18
  16. package/lib/antlr/ApexLexer.js +1575 -0
  17. package/lib/antlr/ApexLexer.js.map +1 -0
  18. package/lib/{ApexParser.d.ts → antlr/ApexParser.d.ts} +1344 -1304
  19. package/lib/antlr/ApexParser.js +20976 -0
  20. package/lib/antlr/ApexParser.js.map +1 -0
  21. package/lib/{ApexParserListener.d.ts → antlr/ApexParserListener.d.ts} +708 -686
  22. package/lib/antlr/ApexParserListener.js +12 -0
  23. package/lib/antlr/ApexParserListener.js.map +1 -0
  24. package/lib/{ApexParserVisitor.d.ts → antlr/ApexParserVisitor.d.ts} +420 -406
  25. package/lib/antlr/ApexParserVisitor.js +15 -0
  26. package/lib/antlr/ApexParserVisitor.js.map +1 -0
  27. package/lib/index.d.ts +8 -24
  28. package/lib/index.js +13 -140
  29. package/lib/index.js.map +1 -1
  30. package/package.json +30 -27
  31. package/lib/ApexLexer.js +0 -1704
  32. package/lib/ApexLexer.js.map +0 -1
  33. package/lib/ApexParser.js +0 -19514
  34. package/lib/ApexParser.js.map +0 -1
  35. package/lib/ApexParserListener.js +0 -4
  36. package/lib/ApexParserListener.js.map +0 -1
  37. package/lib/ApexParserVisitor.js +0 -4
  38. package/lib/ApexParserVisitor.js.map +0 -1
  39. package/lib/ThrowingErrorListener.d.ts +0 -10
  40. package/lib/ThrowingErrorListener.js +0 -18
  41. package/lib/ThrowingErrorListener.js.map +0 -1
  42. package/lib/__tests__/ApexLexerTest.d.ts +0 -1
  43. package/lib/__tests__/ApexLexerTest.js +0 -48
  44. package/lib/__tests__/ApexLexerTest.js.map +0 -1
  45. package/lib/__tests__/ApexListenerTest.d.ts +0 -1
  46. package/lib/__tests__/ApexListenerTest.js +0 -41
  47. package/lib/__tests__/ApexListenerTest.js.map +0 -1
  48. package/lib/__tests__/ApexParserTest.d.ts +0 -1
  49. package/lib/__tests__/ApexParserTest.js +0 -199
  50. package/lib/__tests__/ApexParserTest.js.map +0 -1
  51. package/lib/__tests__/ApexTriggerTest.d.ts +0 -1
  52. package/lib/__tests__/ApexTriggerTest.js +0 -66
  53. package/lib/__tests__/ApexTriggerTest.js.map +0 -1
  54. package/lib/__tests__/ApexVisitorTest.d.ts +0 -1
  55. package/lib/__tests__/ApexVisitorTest.js +0 -46
  56. package/lib/__tests__/ApexVisitorTest.js.map +0 -1
  57. package/lib/__tests__/SOQLParserTest.d.ts +0 -1
  58. package/lib/__tests__/SOQLParserTest.js +0 -121
  59. package/lib/__tests__/SOQLParserTest.js.map +0 -1
  60. package/lib/__tests__/SOSLParserTest.d.ts +0 -1
  61. package/lib/__tests__/SOSLParserTest.js +0 -101
  62. package/lib/__tests__/SOSLParserTest.js.map +0 -1
  63. package/lib/__tests__/SyntaxErrorCounter.d.ts +0 -10
  64. package/lib/__tests__/SyntaxErrorCounter.js +0 -52
  65. package/lib/__tests__/SyntaxErrorCounter.js.map +0 -1
  66. package/lib/__tests__/system/SampleParseSys.d.ts +0 -1
  67. package/lib/__tests__/system/SampleParseSys.js +0 -75
  68. package/lib/__tests__/system/SampleParseSys.js.map +0 -1
@@ -1,184 +1,186 @@
1
- import { ParseTreeVisitor } from "antlr4ts/tree/ParseTreeVisitor";
2
- import { ThisPrimaryContext } from "./ApexParser";
3
- import { SuperPrimaryContext } from "./ApexParser";
4
- import { LiteralPrimaryContext } from "./ApexParser";
5
- import { TypeRefPrimaryContext } from "./ApexParser";
6
- import { VoidPrimaryContext } from "./ApexParser";
7
- import { IdPrimaryContext } from "./ApexParser";
8
- import { SoqlPrimaryContext } from "./ApexParser";
9
- import { SoslPrimaryContext } from "./ApexParser";
10
- import { PrimaryExpressionContext } from "./ApexParser";
11
- import { DotExpressionContext } from "./ApexParser";
12
- import { ArrayExpressionContext } from "./ApexParser";
13
- import { MethodCallExpressionContext } from "./ApexParser";
14
- import { NewExpressionContext } from "./ApexParser";
15
- import { CastExpressionContext } from "./ApexParser";
16
- import { SubExpressionContext } from "./ApexParser";
17
- import { PostOpExpressionContext } from "./ApexParser";
18
- import { PreOpExpressionContext } from "./ApexParser";
19
- import { NegExpressionContext } from "./ApexParser";
20
- import { Arth1ExpressionContext } from "./ApexParser";
21
- import { Arth2ExpressionContext } from "./ApexParser";
22
- import { BitExpressionContext } from "./ApexParser";
23
- import { CmpExpressionContext } from "./ApexParser";
24
- import { InstanceOfExpressionContext } from "./ApexParser";
25
- import { EqualityExpressionContext } from "./ApexParser";
26
- import { BitAndExpressionContext } from "./ApexParser";
27
- import { BitNotExpressionContext } from "./ApexParser";
28
- import { BitOrExpressionContext } from "./ApexParser";
29
- import { LogAndExpressionContext } from "./ApexParser";
30
- import { LogOrExpressionContext } from "./ApexParser";
31
- import { CoalExpressionContext } from "./ApexParser";
32
- import { CondExpressionContext } from "./ApexParser";
33
- import { AssignExpressionContext } from "./ApexParser";
34
- import { TriggerUnitContext } from "./ApexParser";
35
- import { TriggerCaseContext } from "./ApexParser";
36
- import { TriggerBlockContext } from "./ApexParser";
37
- import { TriggerBlockMemberContext } from "./ApexParser";
38
- import { CompilationUnitContext } from "./ApexParser";
39
- import { TypeDeclarationContext } from "./ApexParser";
40
- import { ClassDeclarationContext } from "./ApexParser";
41
- import { EnumDeclarationContext } from "./ApexParser";
42
- import { EnumConstantsContext } from "./ApexParser";
43
- import { InterfaceDeclarationContext } from "./ApexParser";
44
- import { TypeListContext } from "./ApexParser";
45
- import { ClassBodyContext } from "./ApexParser";
46
- import { InterfaceBodyContext } from "./ApexParser";
47
- import { ClassBodyDeclarationContext } from "./ApexParser";
48
- import { ModifierContext } from "./ApexParser";
49
- import { MemberDeclarationContext } from "./ApexParser";
50
- import { TriggerMemberDeclarationContext } from "./ApexParser";
51
- import { MethodDeclarationContext } from "./ApexParser";
52
- import { ConstructorDeclarationContext } from "./ApexParser";
53
- import { FieldDeclarationContext } from "./ApexParser";
54
- import { PropertyDeclarationContext } from "./ApexParser";
55
- import { InterfaceMethodDeclarationContext } from "./ApexParser";
56
- import { VariableDeclaratorsContext } from "./ApexParser";
57
- import { VariableDeclaratorContext } from "./ApexParser";
58
- import { ArrayInitializerContext } from "./ApexParser";
59
- import { TypeRefContext } from "./ApexParser";
60
- import { ArraySubscriptsContext } from "./ApexParser";
61
- import { TypeNameContext } from "./ApexParser";
62
- import { TypeArgumentsContext } from "./ApexParser";
63
- import { FormalParametersContext } from "./ApexParser";
64
- import { FormalParameterListContext } from "./ApexParser";
65
- import { FormalParameterContext } from "./ApexParser";
66
- import { QualifiedNameContext } from "./ApexParser";
67
- import { LiteralContext } from "./ApexParser";
68
- import { AnnotationContext } from "./ApexParser";
69
- import { ElementValuePairsContext } from "./ApexParser";
70
- import { ElementValuePairContext } from "./ApexParser";
71
- import { ElementValueContext } from "./ApexParser";
72
- import { ElementValueArrayInitializerContext } from "./ApexParser";
73
- import { BlockContext } from "./ApexParser";
74
- import { LocalVariableDeclarationStatementContext } from "./ApexParser";
75
- import { LocalVariableDeclarationContext } from "./ApexParser";
76
- import { StatementContext } from "./ApexParser";
77
- import { IfStatementContext } from "./ApexParser";
78
- import { SwitchStatementContext } from "./ApexParser";
79
- import { WhenControlContext } from "./ApexParser";
80
- import { WhenValueContext } from "./ApexParser";
81
- import { WhenLiteralContext } from "./ApexParser";
82
- import { ForStatementContext } from "./ApexParser";
83
- import { WhileStatementContext } from "./ApexParser";
84
- import { DoWhileStatementContext } from "./ApexParser";
85
- import { TryStatementContext } from "./ApexParser";
86
- import { ReturnStatementContext } from "./ApexParser";
87
- import { ThrowStatementContext } from "./ApexParser";
88
- import { BreakStatementContext } from "./ApexParser";
89
- import { ContinueStatementContext } from "./ApexParser";
90
- import { AccessLevelContext } from "./ApexParser";
91
- import { InsertStatementContext } from "./ApexParser";
92
- import { UpdateStatementContext } from "./ApexParser";
93
- import { DeleteStatementContext } from "./ApexParser";
94
- import { UndeleteStatementContext } from "./ApexParser";
95
- import { UpsertStatementContext } from "./ApexParser";
96
- import { MergeStatementContext } from "./ApexParser";
97
- import { RunAsStatementContext } from "./ApexParser";
98
- import { ExpressionStatementContext } from "./ApexParser";
99
- import { PropertyBlockContext } from "./ApexParser";
100
- import { GetterContext } from "./ApexParser";
101
- import { SetterContext } from "./ApexParser";
102
- import { CatchClauseContext } from "./ApexParser";
103
- import { FinallyBlockContext } from "./ApexParser";
104
- import { ForControlContext } from "./ApexParser";
105
- import { ForInitContext } from "./ApexParser";
106
- import { EnhancedForControlContext } from "./ApexParser";
107
- import { ForUpdateContext } from "./ApexParser";
108
- import { ParExpressionContext } from "./ApexParser";
109
- import { ExpressionListContext } from "./ApexParser";
110
- import { ExpressionContext } from "./ApexParser";
111
- import { PrimaryContext } from "./ApexParser";
112
- import { MethodCallContext } from "./ApexParser";
113
- import { DotMethodCallContext } from "./ApexParser";
114
- import { CreatorContext } from "./ApexParser";
115
- import { CreatedNameContext } from "./ApexParser";
116
- import { IdCreatedNamePairContext } from "./ApexParser";
117
- import { NoRestContext } from "./ApexParser";
118
- import { ClassCreatorRestContext } from "./ApexParser";
119
- import { ArrayCreatorRestContext } from "./ApexParser";
120
- import { MapCreatorRestContext } from "./ApexParser";
121
- import { MapCreatorRestPairContext } from "./ApexParser";
122
- import { SetCreatorRestContext } from "./ApexParser";
123
- import { ArgumentsContext } from "./ApexParser";
124
- import { SoqlLiteralContext } from "./ApexParser";
125
- import { QueryContext } from "./ApexParser";
126
- import { SubQueryContext } from "./ApexParser";
127
- import { SelectListContext } from "./ApexParser";
128
- import { SelectEntryContext } from "./ApexParser";
129
- import { FieldNameContext } from "./ApexParser";
130
- import { FromNameListContext } from "./ApexParser";
131
- import { SubFieldListContext } from "./ApexParser";
132
- import { SubFieldEntryContext } from "./ApexParser";
133
- import { SoqlFieldsParameterContext } from "./ApexParser";
134
- import { SoqlFunctionContext } from "./ApexParser";
135
- import { DateFieldNameContext } from "./ApexParser";
136
- import { LocationValueContext } from "./ApexParser";
137
- import { CoordinateValueContext } from "./ApexParser";
138
- import { TypeOfContext } from "./ApexParser";
139
- import { WhenClauseContext } from "./ApexParser";
140
- import { ElseClauseContext } from "./ApexParser";
141
- import { FieldNameListContext } from "./ApexParser";
142
- import { UsingScopeContext } from "./ApexParser";
143
- import { WhereClauseContext } from "./ApexParser";
144
- import { LogicalExpressionContext } from "./ApexParser";
145
- import { ConditionalExpressionContext } from "./ApexParser";
146
- import { FieldExpressionContext } from "./ApexParser";
147
- import { ComparisonOperatorContext } from "./ApexParser";
148
- import { ValueContext } from "./ApexParser";
149
- import { ValueListContext } from "./ApexParser";
150
- import { SignedNumberContext } from "./ApexParser";
151
- import { WithClauseContext } from "./ApexParser";
152
- import { FilteringExpressionContext } from "./ApexParser";
153
- import { DataCategorySelectionContext } from "./ApexParser";
154
- import { DataCategoryNameContext } from "./ApexParser";
155
- import { FilteringSelectorContext } from "./ApexParser";
156
- import { GroupByClauseContext } from "./ApexParser";
157
- import { OrderByClauseContext } from "./ApexParser";
158
- import { FieldOrderListContext } from "./ApexParser";
159
- import { FieldOrderContext } from "./ApexParser";
160
- import { LimitClauseContext } from "./ApexParser";
161
- import { OffsetClauseContext } from "./ApexParser";
162
- import { AllRowsClauseContext } from "./ApexParser";
163
- import { ForClausesContext } from "./ApexParser";
164
- import { BoundExpressionContext } from "./ApexParser";
165
- import { DateFormulaContext } from "./ApexParser";
166
- import { SignedIntegerContext } from "./ApexParser";
167
- import { SoqlIdContext } from "./ApexParser";
168
- import { SoslLiteralContext } from "./ApexParser";
169
- import { SoslLiteralAltContext } from "./ApexParser";
170
- import { SoslClausesContext } from "./ApexParser";
171
- import { SoslWithClauseContext } from "./ApexParser";
172
- import { SearchGroupContext } from "./ApexParser";
173
- import { FieldSpecListContext } from "./ApexParser";
174
- import { FieldSpecContext } from "./ApexParser";
175
- import { FieldListContext } from "./ApexParser";
176
- import { UpdateListContext } from "./ApexParser";
177
- import { UpdateTypeContext } from "./ApexParser";
178
- import { NetworkListContext } from "./ApexParser";
179
- import { SoslIdContext } from "./ApexParser";
180
- import { IdContext } from "./ApexParser";
181
- import { AnyIdContext } from "./ApexParser";
1
+ import { ParseTreeVisitor } from 'antlr4';
2
+ import { TriggerUnitContext } from "./ApexParser.js";
3
+ import { TriggerCaseContext } from "./ApexParser.js";
4
+ import { TriggerBlockContext } from "./ApexParser.js";
5
+ import { TriggerBlockMemberContext } from "./ApexParser.js";
6
+ import { AnonymousUnitContext } from "./ApexParser.js";
7
+ import { AnonymousBlockContext } from "./ApexParser.js";
8
+ import { AnonymousBlockMemberContext } from "./ApexParser.js";
9
+ import { CompilationUnitContext } from "./ApexParser.js";
10
+ import { TypeDeclarationContext } from "./ApexParser.js";
11
+ import { ClassDeclarationContext } from "./ApexParser.js";
12
+ import { EnumDeclarationContext } from "./ApexParser.js";
13
+ import { EnumConstantsContext } from "./ApexParser.js";
14
+ import { InterfaceDeclarationContext } from "./ApexParser.js";
15
+ import { TypeListContext } from "./ApexParser.js";
16
+ import { ClassBodyContext } from "./ApexParser.js";
17
+ import { InterfaceBodyContext } from "./ApexParser.js";
18
+ import { ClassBodyDeclarationContext } from "./ApexParser.js";
19
+ import { ModifierContext } from "./ApexParser.js";
20
+ import { MemberDeclarationContext } from "./ApexParser.js";
21
+ import { TriggerMemberDeclarationContext } from "./ApexParser.js";
22
+ import { AnonymousMemberDeclarationContext } from "./ApexParser.js";
23
+ import { MethodDeclarationContext } from "./ApexParser.js";
24
+ import { ConstructorDeclarationContext } from "./ApexParser.js";
25
+ import { FieldDeclarationContext } from "./ApexParser.js";
26
+ import { PropertyDeclarationContext } from "./ApexParser.js";
27
+ import { InterfaceMethodDeclarationContext } from "./ApexParser.js";
28
+ import { VariableDeclaratorsContext } from "./ApexParser.js";
29
+ import { VariableDeclaratorContext } from "./ApexParser.js";
30
+ import { ArrayInitializerContext } from "./ApexParser.js";
31
+ import { TypeRefContext } from "./ApexParser.js";
32
+ import { ArraySubscriptsContext } from "./ApexParser.js";
33
+ import { TypeNameContext } from "./ApexParser.js";
34
+ import { TypeArgumentsContext } from "./ApexParser.js";
35
+ import { FormalParametersContext } from "./ApexParser.js";
36
+ import { FormalParameterListContext } from "./ApexParser.js";
37
+ import { FormalParameterContext } from "./ApexParser.js";
38
+ import { QualifiedNameContext } from "./ApexParser.js";
39
+ import { LiteralContext } from "./ApexParser.js";
40
+ import { AnnotationContext } from "./ApexParser.js";
41
+ import { ElementValuePairsContext } from "./ApexParser.js";
42
+ import { ElementValuePairContext } from "./ApexParser.js";
43
+ import { ElementValueContext } from "./ApexParser.js";
44
+ import { ElementValueArrayInitializerContext } from "./ApexParser.js";
45
+ import { BlockContext } from "./ApexParser.js";
46
+ import { LocalVariableDeclarationStatementContext } from "./ApexParser.js";
47
+ import { LocalVariableDeclarationContext } from "./ApexParser.js";
48
+ import { StatementContext } from "./ApexParser.js";
49
+ import { IfStatementContext } from "./ApexParser.js";
50
+ import { SwitchStatementContext } from "./ApexParser.js";
51
+ import { WhenControlContext } from "./ApexParser.js";
52
+ import { WhenValueContext } from "./ApexParser.js";
53
+ import { WhenLiteralContext } from "./ApexParser.js";
54
+ import { ForStatementContext } from "./ApexParser.js";
55
+ import { WhileStatementContext } from "./ApexParser.js";
56
+ import { DoWhileStatementContext } from "./ApexParser.js";
57
+ import { TryStatementContext } from "./ApexParser.js";
58
+ import { ReturnStatementContext } from "./ApexParser.js";
59
+ import { ThrowStatementContext } from "./ApexParser.js";
60
+ import { BreakStatementContext } from "./ApexParser.js";
61
+ import { ContinueStatementContext } from "./ApexParser.js";
62
+ import { AccessLevelContext } from "./ApexParser.js";
63
+ import { InsertStatementContext } from "./ApexParser.js";
64
+ import { UpdateStatementContext } from "./ApexParser.js";
65
+ import { DeleteStatementContext } from "./ApexParser.js";
66
+ import { UndeleteStatementContext } from "./ApexParser.js";
67
+ import { UpsertStatementContext } from "./ApexParser.js";
68
+ import { MergeStatementContext } from "./ApexParser.js";
69
+ import { RunAsStatementContext } from "./ApexParser.js";
70
+ import { ExpressionStatementContext } from "./ApexParser.js";
71
+ import { PropertyBlockContext } from "./ApexParser.js";
72
+ import { GetterContext } from "./ApexParser.js";
73
+ import { SetterContext } from "./ApexParser.js";
74
+ import { CatchClauseContext } from "./ApexParser.js";
75
+ import { FinallyBlockContext } from "./ApexParser.js";
76
+ import { ForControlContext } from "./ApexParser.js";
77
+ import { ForInitContext } from "./ApexParser.js";
78
+ import { EnhancedForControlContext } from "./ApexParser.js";
79
+ import { ForUpdateContext } from "./ApexParser.js";
80
+ import { ParExpressionContext } from "./ApexParser.js";
81
+ import { ExpressionListContext } from "./ApexParser.js";
82
+ import { PrimaryExpressionContext } from "./ApexParser.js";
83
+ import { Arth1ExpressionContext } from "./ApexParser.js";
84
+ import { CoalExpressionContext } from "./ApexParser.js";
85
+ import { DotExpressionContext } from "./ApexParser.js";
86
+ import { BitOrExpressionContext } from "./ApexParser.js";
87
+ import { ArrayExpressionContext } from "./ApexParser.js";
88
+ import { NewExpressionContext } from "./ApexParser.js";
89
+ import { AssignExpressionContext } from "./ApexParser.js";
90
+ import { MethodCallExpressionContext } from "./ApexParser.js";
91
+ import { BitNotExpressionContext } from "./ApexParser.js";
92
+ import { Arth2ExpressionContext } from "./ApexParser.js";
93
+ import { LogAndExpressionContext } from "./ApexParser.js";
94
+ import { CastExpressionContext } from "./ApexParser.js";
95
+ import { BitAndExpressionContext } from "./ApexParser.js";
96
+ import { CmpExpressionContext } from "./ApexParser.js";
97
+ import { BitExpressionContext } from "./ApexParser.js";
98
+ import { LogOrExpressionContext } from "./ApexParser.js";
99
+ import { CondExpressionContext } from "./ApexParser.js";
100
+ import { EqualityExpressionContext } from "./ApexParser.js";
101
+ import { PostOpExpressionContext } from "./ApexParser.js";
102
+ import { NegExpressionContext } from "./ApexParser.js";
103
+ import { PreOpExpressionContext } from "./ApexParser.js";
104
+ import { SubExpressionContext } from "./ApexParser.js";
105
+ import { InstanceOfExpressionContext } from "./ApexParser.js";
106
+ import { ThisPrimaryContext } from "./ApexParser.js";
107
+ import { SuperPrimaryContext } from "./ApexParser.js";
108
+ import { LiteralPrimaryContext } from "./ApexParser.js";
109
+ import { TypeRefPrimaryContext } from "./ApexParser.js";
110
+ import { VoidPrimaryContext } from "./ApexParser.js";
111
+ import { IdPrimaryContext } from "./ApexParser.js";
112
+ import { SoqlPrimaryContext } from "./ApexParser.js";
113
+ import { SoslPrimaryContext } from "./ApexParser.js";
114
+ import { MethodCallContext } from "./ApexParser.js";
115
+ import { DotMethodCallContext } from "./ApexParser.js";
116
+ import { CreatorContext } from "./ApexParser.js";
117
+ import { CreatedNameContext } from "./ApexParser.js";
118
+ import { IdCreatedNamePairContext } from "./ApexParser.js";
119
+ import { NoRestContext } from "./ApexParser.js";
120
+ import { ClassCreatorRestContext } from "./ApexParser.js";
121
+ import { ArrayCreatorRestContext } from "./ApexParser.js";
122
+ import { MapCreatorRestContext } from "./ApexParser.js";
123
+ import { MapCreatorRestPairContext } from "./ApexParser.js";
124
+ import { SetCreatorRestContext } from "./ApexParser.js";
125
+ import { ArgumentsContext } from "./ApexParser.js";
126
+ import { SoqlLiteralContext } from "./ApexParser.js";
127
+ import { QueryContext } from "./ApexParser.js";
128
+ import { SubQueryContext } from "./ApexParser.js";
129
+ import { SelectListContext } from "./ApexParser.js";
130
+ import { SelectEntryContext } from "./ApexParser.js";
131
+ import { FieldNameContext } from "./ApexParser.js";
132
+ import { FromNameListContext } from "./ApexParser.js";
133
+ import { SubFieldListContext } from "./ApexParser.js";
134
+ import { SubFieldEntryContext } from "./ApexParser.js";
135
+ import { SoqlFieldsParameterContext } from "./ApexParser.js";
136
+ import { SoqlFunctionContext } from "./ApexParser.js";
137
+ import { DateFieldNameContext } from "./ApexParser.js";
138
+ import { LocationValueContext } from "./ApexParser.js";
139
+ import { CoordinateValueContext } from "./ApexParser.js";
140
+ import { TypeOfContext } from "./ApexParser.js";
141
+ import { WhenClauseContext } from "./ApexParser.js";
142
+ import { ElseClauseContext } from "./ApexParser.js";
143
+ import { FieldNameListContext } from "./ApexParser.js";
144
+ import { UsingScopeContext } from "./ApexParser.js";
145
+ import { WhereClauseContext } from "./ApexParser.js";
146
+ import { LogicalExpressionContext } from "./ApexParser.js";
147
+ import { ConditionalExpressionContext } from "./ApexParser.js";
148
+ import { FieldExpressionContext } from "./ApexParser.js";
149
+ import { ComparisonOperatorContext } from "./ApexParser.js";
150
+ import { ValueContext } from "./ApexParser.js";
151
+ import { ValueListContext } from "./ApexParser.js";
152
+ import { SignedNumberContext } from "./ApexParser.js";
153
+ import { WithClauseContext } from "./ApexParser.js";
154
+ import { FilteringExpressionContext } from "./ApexParser.js";
155
+ import { DataCategorySelectionContext } from "./ApexParser.js";
156
+ import { DataCategoryNameContext } from "./ApexParser.js";
157
+ import { FilteringSelectorContext } from "./ApexParser.js";
158
+ import { GroupByClauseContext } from "./ApexParser.js";
159
+ import { OrderByClauseContext } from "./ApexParser.js";
160
+ import { FieldOrderListContext } from "./ApexParser.js";
161
+ import { FieldOrderContext } from "./ApexParser.js";
162
+ import { LimitClauseContext } from "./ApexParser.js";
163
+ import { OffsetClauseContext } from "./ApexParser.js";
164
+ import { AllRowsClauseContext } from "./ApexParser.js";
165
+ import { ForClausesContext } from "./ApexParser.js";
166
+ import { BoundExpressionContext } from "./ApexParser.js";
167
+ import { DateFormulaContext } from "./ApexParser.js";
168
+ import { SignedIntegerContext } from "./ApexParser.js";
169
+ import { SoqlIdContext } from "./ApexParser.js";
170
+ import { SoslLiteralContext } from "./ApexParser.js";
171
+ import { SoslLiteralAltContext } from "./ApexParser.js";
172
+ import { SoslClausesContext } from "./ApexParser.js";
173
+ import { SoslWithClauseContext } from "./ApexParser.js";
174
+ import { SearchGroupContext } from "./ApexParser.js";
175
+ import { FieldSpecListContext } from "./ApexParser.js";
176
+ import { FieldSpecContext } from "./ApexParser.js";
177
+ import { FieldListContext } from "./ApexParser.js";
178
+ import { UpdateListContext } from "./ApexParser.js";
179
+ import { UpdateTypeContext } from "./ApexParser.js";
180
+ import { NetworkListContext } from "./ApexParser.js";
181
+ import { SoslIdContext } from "./ApexParser.js";
182
+ import { IdContext } from "./ApexParser.js";
183
+ import { AnyIdContext } from "./ApexParser.js";
182
184
  /**
183
185
  * This interface defines a complete generic visitor for a parse tree produced
184
186
  * by `ApexParser`.
@@ -186,255 +188,49 @@ import { AnyIdContext } from "./ApexParser";
186
188
  * @param <Result> The return type of the visit operation. Use `void` for
187
189
  * operations with no return type.
188
190
  */
189
- export interface ApexParserVisitor<Result> extends ParseTreeVisitor<Result> {
191
+ export default class ApexParserVisitor<Result> extends ParseTreeVisitor<Result> {
190
192
  /**
191
- * Visit a parse tree produced by the `thisPrimary`
192
- * labeled alternative in `ApexParser.primary`.
193
- * @param ctx the parse tree
194
- * @return the visitor result
195
- */
196
- visitThisPrimary?: (ctx: ThisPrimaryContext) => Result;
197
- /**
198
- * Visit a parse tree produced by the `superPrimary`
199
- * labeled alternative in `ApexParser.primary`.
200
- * @param ctx the parse tree
201
- * @return the visitor result
202
- */
203
- visitSuperPrimary?: (ctx: SuperPrimaryContext) => Result;
204
- /**
205
- * Visit a parse tree produced by the `literalPrimary`
206
- * labeled alternative in `ApexParser.primary`.
207
- * @param ctx the parse tree
208
- * @return the visitor result
209
- */
210
- visitLiteralPrimary?: (ctx: LiteralPrimaryContext) => Result;
211
- /**
212
- * Visit a parse tree produced by the `typeRefPrimary`
213
- * labeled alternative in `ApexParser.primary`.
214
- * @param ctx the parse tree
215
- * @return the visitor result
216
- */
217
- visitTypeRefPrimary?: (ctx: TypeRefPrimaryContext) => Result;
218
- /**
219
- * Visit a parse tree produced by the `voidPrimary`
220
- * labeled alternative in `ApexParser.primary`.
221
- * @param ctx the parse tree
222
- * @return the visitor result
223
- */
224
- visitVoidPrimary?: (ctx: VoidPrimaryContext) => Result;
225
- /**
226
- * Visit a parse tree produced by the `idPrimary`
227
- * labeled alternative in `ApexParser.primary`.
228
- * @param ctx the parse tree
229
- * @return the visitor result
230
- */
231
- visitIdPrimary?: (ctx: IdPrimaryContext) => Result;
232
- /**
233
- * Visit a parse tree produced by the `soqlPrimary`
234
- * labeled alternative in `ApexParser.primary`.
235
- * @param ctx the parse tree
236
- * @return the visitor result
237
- */
238
- visitSoqlPrimary?: (ctx: SoqlPrimaryContext) => Result;
239
- /**
240
- * Visit a parse tree produced by the `soslPrimary`
241
- * labeled alternative in `ApexParser.primary`.
242
- * @param ctx the parse tree
243
- * @return the visitor result
244
- */
245
- visitSoslPrimary?: (ctx: SoslPrimaryContext) => Result;
246
- /**
247
- * Visit a parse tree produced by the `primaryExpression`
248
- * labeled alternative in `ApexParser.expression`.
249
- * @param ctx the parse tree
250
- * @return the visitor result
251
- */
252
- visitPrimaryExpression?: (ctx: PrimaryExpressionContext) => Result;
253
- /**
254
- * Visit a parse tree produced by the `dotExpression`
255
- * labeled alternative in `ApexParser.expression`.
256
- * @param ctx the parse tree
257
- * @return the visitor result
258
- */
259
- visitDotExpression?: (ctx: DotExpressionContext) => Result;
260
- /**
261
- * Visit a parse tree produced by the `arrayExpression`
262
- * labeled alternative in `ApexParser.expression`.
263
- * @param ctx the parse tree
264
- * @return the visitor result
265
- */
266
- visitArrayExpression?: (ctx: ArrayExpressionContext) => Result;
267
- /**
268
- * Visit a parse tree produced by the `methodCallExpression`
269
- * labeled alternative in `ApexParser.expression`.
270
- * @param ctx the parse tree
271
- * @return the visitor result
272
- */
273
- visitMethodCallExpression?: (ctx: MethodCallExpressionContext) => Result;
274
- /**
275
- * Visit a parse tree produced by the `newExpression`
276
- * labeled alternative in `ApexParser.expression`.
277
- * @param ctx the parse tree
278
- * @return the visitor result
279
- */
280
- visitNewExpression?: (ctx: NewExpressionContext) => Result;
281
- /**
282
- * Visit a parse tree produced by the `castExpression`
283
- * labeled alternative in `ApexParser.expression`.
284
- * @param ctx the parse tree
285
- * @return the visitor result
286
- */
287
- visitCastExpression?: (ctx: CastExpressionContext) => Result;
288
- /**
289
- * Visit a parse tree produced by the `subExpression`
290
- * labeled alternative in `ApexParser.expression`.
291
- * @param ctx the parse tree
292
- * @return the visitor result
293
- */
294
- visitSubExpression?: (ctx: SubExpressionContext) => Result;
295
- /**
296
- * Visit a parse tree produced by the `postOpExpression`
297
- * labeled alternative in `ApexParser.expression`.
298
- * @param ctx the parse tree
299
- * @return the visitor result
300
- */
301
- visitPostOpExpression?: (ctx: PostOpExpressionContext) => Result;
302
- /**
303
- * Visit a parse tree produced by the `preOpExpression`
304
- * labeled alternative in `ApexParser.expression`.
305
- * @param ctx the parse tree
306
- * @return the visitor result
307
- */
308
- visitPreOpExpression?: (ctx: PreOpExpressionContext) => Result;
309
- /**
310
- * Visit a parse tree produced by the `negExpression`
311
- * labeled alternative in `ApexParser.expression`.
312
- * @param ctx the parse tree
313
- * @return the visitor result
314
- */
315
- visitNegExpression?: (ctx: NegExpressionContext) => Result;
316
- /**
317
- * Visit a parse tree produced by the `arth1Expression`
318
- * labeled alternative in `ApexParser.expression`.
319
- * @param ctx the parse tree
320
- * @return the visitor result
321
- */
322
- visitArth1Expression?: (ctx: Arth1ExpressionContext) => Result;
323
- /**
324
- * Visit a parse tree produced by the `arth2Expression`
325
- * labeled alternative in `ApexParser.expression`.
326
- * @param ctx the parse tree
327
- * @return the visitor result
328
- */
329
- visitArth2Expression?: (ctx: Arth2ExpressionContext) => Result;
330
- /**
331
- * Visit a parse tree produced by the `bitExpression`
332
- * labeled alternative in `ApexParser.expression`.
333
- * @param ctx the parse tree
334
- * @return the visitor result
335
- */
336
- visitBitExpression?: (ctx: BitExpressionContext) => Result;
337
- /**
338
- * Visit a parse tree produced by the `cmpExpression`
339
- * labeled alternative in `ApexParser.expression`.
340
- * @param ctx the parse tree
341
- * @return the visitor result
342
- */
343
- visitCmpExpression?: (ctx: CmpExpressionContext) => Result;
344
- /**
345
- * Visit a parse tree produced by the `instanceOfExpression`
346
- * labeled alternative in `ApexParser.expression`.
347
- * @param ctx the parse tree
348
- * @return the visitor result
349
- */
350
- visitInstanceOfExpression?: (ctx: InstanceOfExpressionContext) => Result;
351
- /**
352
- * Visit a parse tree produced by the `equalityExpression`
353
- * labeled alternative in `ApexParser.expression`.
354
- * @param ctx the parse tree
355
- * @return the visitor result
356
- */
357
- visitEqualityExpression?: (ctx: EqualityExpressionContext) => Result;
358
- /**
359
- * Visit a parse tree produced by the `bitAndExpression`
360
- * labeled alternative in `ApexParser.expression`.
361
- * @param ctx the parse tree
362
- * @return the visitor result
363
- */
364
- visitBitAndExpression?: (ctx: BitAndExpressionContext) => Result;
365
- /**
366
- * Visit a parse tree produced by the `bitNotExpression`
367
- * labeled alternative in `ApexParser.expression`.
368
- * @param ctx the parse tree
369
- * @return the visitor result
370
- */
371
- visitBitNotExpression?: (ctx: BitNotExpressionContext) => Result;
372
- /**
373
- * Visit a parse tree produced by the `bitOrExpression`
374
- * labeled alternative in `ApexParser.expression`.
375
- * @param ctx the parse tree
376
- * @return the visitor result
377
- */
378
- visitBitOrExpression?: (ctx: BitOrExpressionContext) => Result;
379
- /**
380
- * Visit a parse tree produced by the `logAndExpression`
381
- * labeled alternative in `ApexParser.expression`.
382
- * @param ctx the parse tree
383
- * @return the visitor result
384
- */
385
- visitLogAndExpression?: (ctx: LogAndExpressionContext) => Result;
386
- /**
387
- * Visit a parse tree produced by the `logOrExpression`
388
- * labeled alternative in `ApexParser.expression`.
389
- * @param ctx the parse tree
390
- * @return the visitor result
391
- */
392
- visitLogOrExpression?: (ctx: LogOrExpressionContext) => Result;
393
- /**
394
- * Visit a parse tree produced by the `coalExpression`
395
- * labeled alternative in `ApexParser.expression`.
193
+ * Visit a parse tree produced by `ApexParser.triggerUnit`.
396
194
  * @param ctx the parse tree
397
195
  * @return the visitor result
398
196
  */
399
- visitCoalExpression?: (ctx: CoalExpressionContext) => Result;
197
+ visitTriggerUnit?: (ctx: TriggerUnitContext) => Result;
400
198
  /**
401
- * Visit a parse tree produced by the `condExpression`
402
- * labeled alternative in `ApexParser.expression`.
199
+ * Visit a parse tree produced by `ApexParser.triggerCase`.
403
200
  * @param ctx the parse tree
404
201
  * @return the visitor result
405
202
  */
406
- visitCondExpression?: (ctx: CondExpressionContext) => Result;
203
+ visitTriggerCase?: (ctx: TriggerCaseContext) => Result;
407
204
  /**
408
- * Visit a parse tree produced by the `assignExpression`
409
- * labeled alternative in `ApexParser.expression`.
205
+ * Visit a parse tree produced by `ApexParser.triggerBlock`.
410
206
  * @param ctx the parse tree
411
207
  * @return the visitor result
412
208
  */
413
- visitAssignExpression?: (ctx: AssignExpressionContext) => Result;
209
+ visitTriggerBlock?: (ctx: TriggerBlockContext) => Result;
414
210
  /**
415
- * Visit a parse tree produced by `ApexParser.triggerUnit`.
211
+ * Visit a parse tree produced by `ApexParser.triggerBlockMember`.
416
212
  * @param ctx the parse tree
417
213
  * @return the visitor result
418
214
  */
419
- visitTriggerUnit?: (ctx: TriggerUnitContext) => Result;
215
+ visitTriggerBlockMember?: (ctx: TriggerBlockMemberContext) => Result;
420
216
  /**
421
- * Visit a parse tree produced by `ApexParser.triggerCase`.
217
+ * Visit a parse tree produced by `ApexParser.anonymousUnit`.
422
218
  * @param ctx the parse tree
423
219
  * @return the visitor result
424
220
  */
425
- visitTriggerCase?: (ctx: TriggerCaseContext) => Result;
221
+ visitAnonymousUnit?: (ctx: AnonymousUnitContext) => Result;
426
222
  /**
427
- * Visit a parse tree produced by `ApexParser.triggerBlock`.
223
+ * Visit a parse tree produced by `ApexParser.anonymousBlock`.
428
224
  * @param ctx the parse tree
429
225
  * @return the visitor result
430
226
  */
431
- visitTriggerBlock?: (ctx: TriggerBlockContext) => Result;
227
+ visitAnonymousBlock?: (ctx: AnonymousBlockContext) => Result;
432
228
  /**
433
- * Visit a parse tree produced by `ApexParser.triggerBlockMember`.
229
+ * Visit a parse tree produced by `ApexParser.anonymousBlockMember`.
434
230
  * @param ctx the parse tree
435
231
  * @return the visitor result
436
232
  */
437
- visitTriggerBlockMember?: (ctx: TriggerBlockMemberContext) => Result;
233
+ visitAnonymousBlockMember?: (ctx: AnonymousBlockMemberContext) => Result;
438
234
  /**
439
235
  * Visit a parse tree produced by `ApexParser.compilationUnit`.
440
236
  * @param ctx the parse tree
@@ -513,6 +309,12 @@ export interface ApexParserVisitor<Result> extends ParseTreeVisitor<Result> {
513
309
  * @return the visitor result
514
310
  */
515
311
  visitTriggerMemberDeclaration?: (ctx: TriggerMemberDeclarationContext) => Result;
312
+ /**
313
+ * Visit a parse tree produced by `ApexParser.anonymousMemberDeclaration`.
314
+ * @param ctx the parse tree
315
+ * @return the visitor result
316
+ */
317
+ visitAnonymousMemberDeclaration?: (ctx: AnonymousMemberDeclarationContext) => Result;
516
318
  /**
517
319
  * Visit a parse tree produced by `ApexParser.methodDeclaration`.
518
320
  * @param ctx the parse tree
@@ -868,17 +670,229 @@ export interface ApexParserVisitor<Result> extends ParseTreeVisitor<Result> {
868
670
  */
869
671
  visitExpressionList?: (ctx: ExpressionListContext) => Result;
870
672
  /**
871
- * Visit a parse tree produced by `ApexParser.expression`.
673
+ * Visit a parse tree produced by the `primaryExpression`
674
+ * labeled alternative in `ApexParser.expression`.
675
+ * @param ctx the parse tree
676
+ * @return the visitor result
677
+ */
678
+ visitPrimaryExpression?: (ctx: PrimaryExpressionContext) => Result;
679
+ /**
680
+ * Visit a parse tree produced by the `arth1Expression`
681
+ * labeled alternative in `ApexParser.expression`.
682
+ * @param ctx the parse tree
683
+ * @return the visitor result
684
+ */
685
+ visitArth1Expression?: (ctx: Arth1ExpressionContext) => Result;
686
+ /**
687
+ * Visit a parse tree produced by the `coalExpression`
688
+ * labeled alternative in `ApexParser.expression`.
689
+ * @param ctx the parse tree
690
+ * @return the visitor result
691
+ */
692
+ visitCoalExpression?: (ctx: CoalExpressionContext) => Result;
693
+ /**
694
+ * Visit a parse tree produced by the `dotExpression`
695
+ * labeled alternative in `ApexParser.expression`.
696
+ * @param ctx the parse tree
697
+ * @return the visitor result
698
+ */
699
+ visitDotExpression?: (ctx: DotExpressionContext) => Result;
700
+ /**
701
+ * Visit a parse tree produced by the `bitOrExpression`
702
+ * labeled alternative in `ApexParser.expression`.
703
+ * @param ctx the parse tree
704
+ * @return the visitor result
705
+ */
706
+ visitBitOrExpression?: (ctx: BitOrExpressionContext) => Result;
707
+ /**
708
+ * Visit a parse tree produced by the `arrayExpression`
709
+ * labeled alternative in `ApexParser.expression`.
710
+ * @param ctx the parse tree
711
+ * @return the visitor result
712
+ */
713
+ visitArrayExpression?: (ctx: ArrayExpressionContext) => Result;
714
+ /**
715
+ * Visit a parse tree produced by the `newExpression`
716
+ * labeled alternative in `ApexParser.expression`.
717
+ * @param ctx the parse tree
718
+ * @return the visitor result
719
+ */
720
+ visitNewExpression?: (ctx: NewExpressionContext) => Result;
721
+ /**
722
+ * Visit a parse tree produced by the `assignExpression`
723
+ * labeled alternative in `ApexParser.expression`.
724
+ * @param ctx the parse tree
725
+ * @return the visitor result
726
+ */
727
+ visitAssignExpression?: (ctx: AssignExpressionContext) => Result;
728
+ /**
729
+ * Visit a parse tree produced by the `methodCallExpression`
730
+ * labeled alternative in `ApexParser.expression`.
731
+ * @param ctx the parse tree
732
+ * @return the visitor result
733
+ */
734
+ visitMethodCallExpression?: (ctx: MethodCallExpressionContext) => Result;
735
+ /**
736
+ * Visit a parse tree produced by the `bitNotExpression`
737
+ * labeled alternative in `ApexParser.expression`.
738
+ * @param ctx the parse tree
739
+ * @return the visitor result
740
+ */
741
+ visitBitNotExpression?: (ctx: BitNotExpressionContext) => Result;
742
+ /**
743
+ * Visit a parse tree produced by the `arth2Expression`
744
+ * labeled alternative in `ApexParser.expression`.
745
+ * @param ctx the parse tree
746
+ * @return the visitor result
747
+ */
748
+ visitArth2Expression?: (ctx: Arth2ExpressionContext) => Result;
749
+ /**
750
+ * Visit a parse tree produced by the `logAndExpression`
751
+ * labeled alternative in `ApexParser.expression`.
752
+ * @param ctx the parse tree
753
+ * @return the visitor result
754
+ */
755
+ visitLogAndExpression?: (ctx: LogAndExpressionContext) => Result;
756
+ /**
757
+ * Visit a parse tree produced by the `castExpression`
758
+ * labeled alternative in `ApexParser.expression`.
759
+ * @param ctx the parse tree
760
+ * @return the visitor result
761
+ */
762
+ visitCastExpression?: (ctx: CastExpressionContext) => Result;
763
+ /**
764
+ * Visit a parse tree produced by the `bitAndExpression`
765
+ * labeled alternative in `ApexParser.expression`.
766
+ * @param ctx the parse tree
767
+ * @return the visitor result
768
+ */
769
+ visitBitAndExpression?: (ctx: BitAndExpressionContext) => Result;
770
+ /**
771
+ * Visit a parse tree produced by the `cmpExpression`
772
+ * labeled alternative in `ApexParser.expression`.
773
+ * @param ctx the parse tree
774
+ * @return the visitor result
775
+ */
776
+ visitCmpExpression?: (ctx: CmpExpressionContext) => Result;
777
+ /**
778
+ * Visit a parse tree produced by the `bitExpression`
779
+ * labeled alternative in `ApexParser.expression`.
780
+ * @param ctx the parse tree
781
+ * @return the visitor result
782
+ */
783
+ visitBitExpression?: (ctx: BitExpressionContext) => Result;
784
+ /**
785
+ * Visit a parse tree produced by the `logOrExpression`
786
+ * labeled alternative in `ApexParser.expression`.
787
+ * @param ctx the parse tree
788
+ * @return the visitor result
789
+ */
790
+ visitLogOrExpression?: (ctx: LogOrExpressionContext) => Result;
791
+ /**
792
+ * Visit a parse tree produced by the `condExpression`
793
+ * labeled alternative in `ApexParser.expression`.
794
+ * @param ctx the parse tree
795
+ * @return the visitor result
796
+ */
797
+ visitCondExpression?: (ctx: CondExpressionContext) => Result;
798
+ /**
799
+ * Visit a parse tree produced by the `equalityExpression`
800
+ * labeled alternative in `ApexParser.expression`.
801
+ * @param ctx the parse tree
802
+ * @return the visitor result
803
+ */
804
+ visitEqualityExpression?: (ctx: EqualityExpressionContext) => Result;
805
+ /**
806
+ * Visit a parse tree produced by the `postOpExpression`
807
+ * labeled alternative in `ApexParser.expression`.
808
+ * @param ctx the parse tree
809
+ * @return the visitor result
810
+ */
811
+ visitPostOpExpression?: (ctx: PostOpExpressionContext) => Result;
812
+ /**
813
+ * Visit a parse tree produced by the `negExpression`
814
+ * labeled alternative in `ApexParser.expression`.
815
+ * @param ctx the parse tree
816
+ * @return the visitor result
817
+ */
818
+ visitNegExpression?: (ctx: NegExpressionContext) => Result;
819
+ /**
820
+ * Visit a parse tree produced by the `preOpExpression`
821
+ * labeled alternative in `ApexParser.expression`.
822
+ * @param ctx the parse tree
823
+ * @return the visitor result
824
+ */
825
+ visitPreOpExpression?: (ctx: PreOpExpressionContext) => Result;
826
+ /**
827
+ * Visit a parse tree produced by the `subExpression`
828
+ * labeled alternative in `ApexParser.expression`.
829
+ * @param ctx the parse tree
830
+ * @return the visitor result
831
+ */
832
+ visitSubExpression?: (ctx: SubExpressionContext) => Result;
833
+ /**
834
+ * Visit a parse tree produced by the `instanceOfExpression`
835
+ * labeled alternative in `ApexParser.expression`.
836
+ * @param ctx the parse tree
837
+ * @return the visitor result
838
+ */
839
+ visitInstanceOfExpression?: (ctx: InstanceOfExpressionContext) => Result;
840
+ /**
841
+ * Visit a parse tree produced by the `thisPrimary`
842
+ * labeled alternative in `ApexParser.primary`.
843
+ * @param ctx the parse tree
844
+ * @return the visitor result
845
+ */
846
+ visitThisPrimary?: (ctx: ThisPrimaryContext) => Result;
847
+ /**
848
+ * Visit a parse tree produced by the `superPrimary`
849
+ * labeled alternative in `ApexParser.primary`.
850
+ * @param ctx the parse tree
851
+ * @return the visitor result
852
+ */
853
+ visitSuperPrimary?: (ctx: SuperPrimaryContext) => Result;
854
+ /**
855
+ * Visit a parse tree produced by the `literalPrimary`
856
+ * labeled alternative in `ApexParser.primary`.
857
+ * @param ctx the parse tree
858
+ * @return the visitor result
859
+ */
860
+ visitLiteralPrimary?: (ctx: LiteralPrimaryContext) => Result;
861
+ /**
862
+ * Visit a parse tree produced by the `typeRefPrimary`
863
+ * labeled alternative in `ApexParser.primary`.
864
+ * @param ctx the parse tree
865
+ * @return the visitor result
866
+ */
867
+ visitTypeRefPrimary?: (ctx: TypeRefPrimaryContext) => Result;
868
+ /**
869
+ * Visit a parse tree produced by the `voidPrimary`
870
+ * labeled alternative in `ApexParser.primary`.
871
+ * @param ctx the parse tree
872
+ * @return the visitor result
873
+ */
874
+ visitVoidPrimary?: (ctx: VoidPrimaryContext) => Result;
875
+ /**
876
+ * Visit a parse tree produced by the `idPrimary`
877
+ * labeled alternative in `ApexParser.primary`.
878
+ * @param ctx the parse tree
879
+ * @return the visitor result
880
+ */
881
+ visitIdPrimary?: (ctx: IdPrimaryContext) => Result;
882
+ /**
883
+ * Visit a parse tree produced by the `soqlPrimary`
884
+ * labeled alternative in `ApexParser.primary`.
872
885
  * @param ctx the parse tree
873
886
  * @return the visitor result
874
887
  */
875
- visitExpression?: (ctx: ExpressionContext) => Result;
888
+ visitSoqlPrimary?: (ctx: SoqlPrimaryContext) => Result;
876
889
  /**
877
- * Visit a parse tree produced by `ApexParser.primary`.
890
+ * Visit a parse tree produced by the `soslPrimary`
891
+ * labeled alternative in `ApexParser.primary`.
878
892
  * @param ctx the parse tree
879
893
  * @return the visitor result
880
894
  */
881
- visitPrimary?: (ctx: PrimaryContext) => Result;
895
+ visitSoslPrimary?: (ctx: SoslPrimaryContext) => Result;
882
896
  /**
883
897
  * Visit a parse tree produced by `ApexParser.methodCall`.
884
898
  * @param ctx the parse tree