@apexdevtools/apex-parser 3.2.0 → 3.4.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 +15 -6
- package/README.md +3 -3
- package/lib/ApexParser.d.ts +4 -1
- package/lib/ApexParser.js +1904 -1993
- package/lib/ApexParser.js.map +1 -1
- package/lib/__tests__/ApexLexerTest.js +13 -0
- package/lib/__tests__/ApexLexerTest.js.map +1 -1
- package/lib/__tests__/ApexListenerTest.js +13 -0
- package/lib/__tests__/ApexListenerTest.js.map +1 -1
- package/lib/__tests__/ApexParserTest.js +24 -0
- package/lib/__tests__/ApexParserTest.js.map +1 -1
- package/lib/__tests__/ApexVisitorTest.js +13 -0
- package/lib/__tests__/ApexVisitorTest.js.map +1 -1
- package/lib/__tests__/SOQLParserTest.js +13 -0
- package/lib/__tests__/SOQLParserTest.js.map +1 -1
- package/lib/__tests__/SOSLParserTest.js +13 -0
- package/lib/__tests__/SOSLParserTest.js.map +1 -1
- package/lib/__tests__/SyntaxErrorCounter.js +13 -0
- package/lib/__tests__/SyntaxErrorCounter.js.map +1 -1
- package/lib/__tests__/system/SampleParseSys.js +3 -0
- package/lib/__tests__/system/SampleParseSys.js.map +1 -1
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,15 +1,24 @@
|
|
|
1
1
|
# apex-parser - Changelog
|
|
2
2
|
|
|
3
|
+
## 3.4.0 - 2023-08-22
|
|
4
|
+
|
|
5
|
+
- Support +/- sequences on numeric literals in switch 'when' expressions
|
|
6
|
+
|
|
7
|
+
## 3.3.0 - 2023-04-30
|
|
8
|
+
|
|
9
|
+
- Update to ANTLR 4.9.1
|
|
10
|
+
|
|
3
11
|
## 3.2.0 - 2023-01-24
|
|
4
|
-
|
|
12
|
+
|
|
13
|
+
- Adds user/system mode on DML and within SOQL queries
|
|
5
14
|
|
|
6
15
|
## 3.1.0 - 2022-11-17
|
|
7
16
|
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
17
|
+
- Adds DISTANCE and GEOLOCATION literals for SOQL.
|
|
18
|
+
- Removes support for modulus operator to match apex.
|
|
19
|
+
- Use of `void.class` no longer causes syntax error.
|
|
20
|
+
- Now supports newer Date literals from API 55.
|
|
12
21
|
|
|
13
22
|
## 3.0.0 - 2022-06-14
|
|
14
23
|
|
|
15
|
-
|
|
24
|
+
- Initial github release.
|
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>3.
|
|
51
|
+
<version>3.4.0</version>
|
|
52
52
|
</dependency>
|
|
53
53
|
|
|
54
54
|
NPM
|
|
55
55
|
|
|
56
|
-
"@apexdevtools/apex-parser": "^3.
|
|
56
|
+
"@apexdevtools/apex-parser": "^3.4.0"
|
|
57
57
|
|
|
58
58
|
## Building
|
|
59
59
|
|
|
@@ -77,4 +77,4 @@ The tag version of apex-samples used by builds is set in the [build file](.githu
|
|
|
77
77
|
|
|
78
78
|
## Source & Licenses
|
|
79
79
|
|
|
80
|
-
All the source code included uses a 3-clause BSD license. The only third-party component included is the Apex Antlr4 grammar originally from [Tooling-force.com](https://github.com/neowit/tooling-force.com), although this version used is now markedly different from the original.
|
|
80
|
+
All the source code included uses a 3-clause BSD license. The only third-party component included is the Apex Antlr4 grammar originally from [Tooling-force.com](https://github.com/neowit/tooling-force.com), although this version used is now markedly different from the original.
|
package/lib/ApexParser.d.ts
CHANGED
|
@@ -1114,7 +1114,10 @@ export declare class WhenValueContext extends ParserRuleContext {
|
|
|
1114
1114
|
}
|
|
1115
1115
|
export declare class WhenLiteralContext extends ParserRuleContext {
|
|
1116
1116
|
IntegerLiteral(): TerminalNode | undefined;
|
|
1117
|
-
SUB(): TerminalNode
|
|
1117
|
+
SUB(): TerminalNode[];
|
|
1118
|
+
SUB(i: number): TerminalNode;
|
|
1119
|
+
ADD(): TerminalNode[];
|
|
1120
|
+
ADD(i: number): TerminalNode;
|
|
1118
1121
|
LongLiteral(): TerminalNode | undefined;
|
|
1119
1122
|
StringLiteral(): TerminalNode | undefined;
|
|
1120
1123
|
NULL(): TerminalNode | undefined;
|