@apexdevtools/apex-parser
Advanced tools
Comparing version 3.4.0 to 3.5.0
# apex-parser - Changelog | ||
## 3.5.0 - 2023-10-15 | ||
- Correct do-while to require block rather than statement | ||
## 3.4.0 - 2023-08-22 | ||
@@ -4,0 +8,0 @@ |
@@ -144,2 +144,14 @@ "use strict"; | ||
}); | ||
test('testDoWhileBlock', () => { | ||
const [parser, errorCounter] = (0, SyntaxErrorCounter_1.createParser)("public class Hello {{ do { System.debug(''); } while (true); }}"); | ||
const context = parser.compilationUnit(); | ||
expect(context).toBeInstanceOf(ApexParser_1.CompilationUnitContext); | ||
expect(errorCounter.getNumErrors()).toEqual(0); | ||
}); | ||
test('testDoWhileWithoutBlockFails', () => { | ||
const [parser, errorCounter] = (0, SyntaxErrorCounter_1.createParser)("public class Hello {{ do System.debug(''); while (true); }}"); | ||
const context = parser.compilationUnit(); | ||
expect(context).toBeInstanceOf(ApexParser_1.CompilationUnitContext); | ||
expect(errorCounter.getNumErrors()).toEqual(3); | ||
}); | ||
//# sourceMappingURL=ApexParserTest.js.map |
{ | ||
"name": "@apexdevtools/apex-parser", | ||
"version": "3.4.0", | ||
"version": "3.5.0", | ||
"author": "Apex Dev Tools Team <apexdevtools@gmail.com> (https://github.com/apex-dev-tools)", | ||
@@ -5,0 +5,0 @@ "bugs": "https://github.com/apex-dev-tools/apex-parser/issues", |
@@ -51,3 +51,3 @@ # apex-parser | ||
<artifactId>apex-parser</artifactId> | ||
<version>3.4.0</version> | ||
<version>3.5.0</version> | ||
</dependency> | ||
@@ -57,3 +57,3 @@ | ||
"@apexdevtools/apex-parser": "^3.4.0" | ||
"@apexdevtools/apex-parser": "^3.5.0" | ||
@@ -60,0 +60,0 @@ ## Building |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
2113247
28362