@apexdevtools/apex-parser 3.5.0 → 4.0.0
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 +10 -0
- package/README.md +2 -2
- package/lib/ApexLexer.d.ts +27 -26
- package/lib/ApexLexer.js +1210 -1205
- package/lib/ApexLexer.js.map +1 -1
- package/lib/ApexParser.d.ts +221 -169
- package/lib/ApexParser.js +3091 -2704
- package/lib/ApexParser.js.map +1 -1
- package/lib/ApexParserListener.d.ts +46 -0
- package/lib/ApexParserVisitor.d.ts +29 -0
- package/lib/__tests__/ApexParserTest.js +43 -0
- package/lib/__tests__/ApexParserTest.js.map +1 -1
- package/lib/__tests__/ApexTriggerTest.d.ts +1 -0
- package/lib/__tests__/ApexTriggerTest.js +66 -0
- package/lib/__tests__/ApexTriggerTest.js.map +1 -0
- package/lib/__tests__/system/SampleParseSys.js +1 -1
- package/lib/__tests__/system/SampleParseSys.js.map +1 -1
- package/lib/index.js +31 -26
- package/lib/index.js.map +1 -1
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,15 @@
|
|
|
1
1
|
# apex-parser - Changelog
|
|
2
2
|
|
|
3
|
+
## 4.0.0 - 2023-03-28
|
|
4
|
+
|
|
5
|
+
- Correct trigger body parsing to allow member declarations
|
|
6
|
+
- Add support for TYPEOF in SOQL subqueries
|
|
7
|
+
- Change com.nawforce.apexparser packages to io.github.apexdevtools.apexparser
|
|
8
|
+
|
|
9
|
+
## 3.6.0 - 2024-02-15
|
|
10
|
+
|
|
11
|
+
- Add null coalesce operator and expression
|
|
12
|
+
|
|
3
13
|
## 3.5.0 - 2023-10-15
|
|
4
14
|
|
|
5
15
|
- Correct do-while to require block rather than statement
|
package/README.md
CHANGED
|
@@ -48,12 +48,12 @@ Maven
|
|
|
48
48
|
<dependency>
|
|
49
49
|
<groupId>io.github.apex-dev-tools</groupId>
|
|
50
50
|
<artifactId>apex-parser</artifactId>
|
|
51
|
-
<version>
|
|
51
|
+
<version>4.0.0</version>
|
|
52
52
|
</dependency>
|
|
53
53
|
|
|
54
54
|
NPM
|
|
55
55
|
|
|
56
|
-
"@apexdevtools/apex-parser": "^
|
|
56
|
+
"@apexdevtools/apex-parser": "^4.0.0"
|
|
57
57
|
|
|
58
58
|
## Building
|
|
59
59
|
|
package/lib/ApexLexer.d.ts
CHANGED
|
@@ -224,32 +224,33 @@ export declare class ApexLexer extends Lexer {
|
|
|
224
224
|
static readonly TRIPLENOTEQUAL = 219;
|
|
225
225
|
static readonly AND = 220;
|
|
226
226
|
static readonly OR = 221;
|
|
227
|
-
static readonly
|
|
228
|
-
static readonly
|
|
229
|
-
static readonly
|
|
230
|
-
static readonly
|
|
231
|
-
static readonly
|
|
232
|
-
static readonly
|
|
233
|
-
static readonly
|
|
234
|
-
static readonly
|
|
235
|
-
static readonly
|
|
236
|
-
static readonly
|
|
237
|
-
static readonly
|
|
238
|
-
static readonly
|
|
239
|
-
static readonly
|
|
240
|
-
static readonly
|
|
241
|
-
static readonly
|
|
242
|
-
static readonly
|
|
243
|
-
static readonly
|
|
244
|
-
static readonly
|
|
245
|
-
static readonly
|
|
246
|
-
static readonly
|
|
247
|
-
static readonly
|
|
248
|
-
static readonly
|
|
249
|
-
static readonly
|
|
250
|
-
static readonly
|
|
251
|
-
static readonly
|
|
252
|
-
static readonly
|
|
227
|
+
static readonly COAL = 222;
|
|
228
|
+
static readonly INC = 223;
|
|
229
|
+
static readonly DEC = 224;
|
|
230
|
+
static readonly ADD = 225;
|
|
231
|
+
static readonly SUB = 226;
|
|
232
|
+
static readonly MUL = 227;
|
|
233
|
+
static readonly DIV = 228;
|
|
234
|
+
static readonly BITAND = 229;
|
|
235
|
+
static readonly BITOR = 230;
|
|
236
|
+
static readonly CARET = 231;
|
|
237
|
+
static readonly MAPTO = 232;
|
|
238
|
+
static readonly ADD_ASSIGN = 233;
|
|
239
|
+
static readonly SUB_ASSIGN = 234;
|
|
240
|
+
static readonly MUL_ASSIGN = 235;
|
|
241
|
+
static readonly DIV_ASSIGN = 236;
|
|
242
|
+
static readonly AND_ASSIGN = 237;
|
|
243
|
+
static readonly OR_ASSIGN = 238;
|
|
244
|
+
static readonly XOR_ASSIGN = 239;
|
|
245
|
+
static readonly LSHIFT_ASSIGN = 240;
|
|
246
|
+
static readonly RSHIFT_ASSIGN = 241;
|
|
247
|
+
static readonly URSHIFT_ASSIGN = 242;
|
|
248
|
+
static readonly ATSIGN = 243;
|
|
249
|
+
static readonly Identifier = 244;
|
|
250
|
+
static readonly WS = 245;
|
|
251
|
+
static readonly DOC_COMMENT = 246;
|
|
252
|
+
static readonly COMMENT = 247;
|
|
253
|
+
static readonly LINE_COMMENT = 248;
|
|
253
254
|
static readonly WHITESPACE_CHANNEL = 2;
|
|
254
255
|
static readonly COMMENT_CHANNEL = 3;
|
|
255
256
|
static readonly channelNames: string[];
|