@abaplint/transpiler-cli 2.12.27 → 2.12.28
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/build/bundle.js +13 -17
- package/package.json +6 -6
package/build/bundle.js
CHANGED
|
@@ -3184,7 +3184,7 @@ const let_1 = __webpack_require__(/*! ./let */ "./node_modules/@abaplint/core/bu
|
|
|
3184
3184
|
class Cast extends combi_1.Expression {
|
|
3185
3185
|
getRunnable() {
|
|
3186
3186
|
const rparen = (0, combi_1.altPrio)((0, combi_1.tok)(tokens_1.WParenRightW), (0, combi_1.tok)(tokens_1.WParenRight));
|
|
3187
|
-
const cast = (0, combi_1.seq)("CAST", _1.TypeNameOrInfer, (0, combi_1.tok)(tokens_1.ParenLeftW), (0, combi_1.optPrio)(let_1.Let), _1.Source, rparen);
|
|
3187
|
+
const cast = (0, combi_1.seq)("CAST", _1.TypeNameOrInfer, (0, combi_1.tok)(tokens_1.ParenLeftW), (0, combi_1.optPrio)(let_1.Let), _1.Source, rparen, (0, combi_1.opt)(_1.Dereference));
|
|
3188
3188
|
return (0, combi_1.ver)(version_1.Version.v740sp02, cast, version_1.Version.OpenABAP);
|
|
3189
3189
|
}
|
|
3190
3190
|
}
|
|
@@ -14330,8 +14330,7 @@ class Move {
|
|
|
14330
14330
|
const equals = (0, combi_1.altPrio)((0, combi_1.altPrio)(chained, "?="), calcAssign);
|
|
14331
14331
|
// todo, move "?=" to CAST?
|
|
14332
14332
|
const eq = (0, combi_1.seq)(expressions_1.Target, equals, expressions_1.Source);
|
|
14333
|
-
|
|
14334
|
-
return (0, combi_1.alt)(move, eq, eqd);
|
|
14333
|
+
return (0, combi_1.alt)(move, eq);
|
|
14335
14334
|
}
|
|
14336
14335
|
}
|
|
14337
14336
|
exports.Move = Move;
|
|
@@ -30541,8 +30540,9 @@ class CreateObject {
|
|
|
30541
30540
|
return;
|
|
30542
30541
|
}
|
|
30543
30542
|
else if (found instanceof basic_1.ObjectReferenceType) {
|
|
30544
|
-
const
|
|
30545
|
-
|
|
30543
|
+
const identifier = found.getIdentifier();
|
|
30544
|
+
const idFound = input.scope.findObjectDefinition(identifier.getName());
|
|
30545
|
+
if (idFound instanceof types_1.InterfaceDefinition && type === undefined) {
|
|
30546
30546
|
const message = "Interface reference, cannot be instantiated";
|
|
30547
30547
|
input.issues.push((0, _syntax_input_1.syntaxIssue)(input, node.getFirstToken(), message));
|
|
30548
30548
|
return;
|
|
@@ -30554,11 +30554,11 @@ class CreateObject {
|
|
|
30554
30554
|
input.issues.push((0, _syntax_input_1.syntaxIssue)(input, node.getFirstToken(), message));
|
|
30555
30555
|
return;
|
|
30556
30556
|
}
|
|
30557
|
-
else if (
|
|
30558
|
-
cdef =
|
|
30557
|
+
else if (idFound instanceof types_1.ClassDefinition && cdef === undefined) {
|
|
30558
|
+
cdef = idFound;
|
|
30559
30559
|
}
|
|
30560
|
-
if (type === undefined &&
|
|
30561
|
-
const message =
|
|
30560
|
+
if (type === undefined && idFound instanceof types_1.ClassDefinition && idFound.isAbstract() === true) {
|
|
30561
|
+
const message = identifier.getName() + " is abstract, cannot be instantiated";
|
|
30562
30562
|
input.issues.push((0, _syntax_input_1.syntaxIssue)(input, node.getFirstToken(), message));
|
|
30563
30563
|
return;
|
|
30564
30564
|
}
|
|
@@ -54395,7 +54395,7 @@ class Registry {
|
|
|
54395
54395
|
}
|
|
54396
54396
|
static abaplintVersion() {
|
|
54397
54397
|
// magic, see build script "version.sh"
|
|
54398
|
-
return "2.115.
|
|
54398
|
+
return "2.115.23";
|
|
54399
54399
|
}
|
|
54400
54400
|
getDDICReferences() {
|
|
54401
54401
|
return this.ddicReferences;
|
|
@@ -88626,13 +88626,9 @@ class MessageTranspiler {
|
|
|
88626
88626
|
}
|
|
88627
88627
|
else {
|
|
88628
88628
|
// exception or constant based
|
|
88629
|
-
const
|
|
88630
|
-
|
|
88631
|
-
|
|
88632
|
-
options.push("text: " + traversal.traverse(str).getCode());
|
|
88633
|
-
}
|
|
88634
|
-
else {
|
|
88635
|
-
options.push("exception: " + traversal.traverse(exception).getCode());
|
|
88629
|
+
const source = node.findDirectExpression(abaplint.Expressions.MessageSourceSource)?.findDirectExpression(abaplint.Expressions.Source);
|
|
88630
|
+
if (source) {
|
|
88631
|
+
options.push("exceptionOrText: " + traversal.traverse(source).getCode());
|
|
88636
88632
|
}
|
|
88637
88633
|
const type = node.findExpressionAfterToken("TYPE");
|
|
88638
88634
|
if (type) {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@abaplint/transpiler-cli",
|
|
3
|
-
"version": "2.12.
|
|
3
|
+
"version": "2.12.28",
|
|
4
4
|
"description": "Transpiler - Command Line Interface",
|
|
5
5
|
"funding": "https://github.com/sponsors/larshp",
|
|
6
6
|
"bin": {
|
|
@@ -27,17 +27,17 @@
|
|
|
27
27
|
"author": "abaplint",
|
|
28
28
|
"license": "MIT",
|
|
29
29
|
"devDependencies": {
|
|
30
|
-
"@abaplint/core": "^2.115.
|
|
31
|
-
"@abaplint/transpiler": "^2.12.
|
|
30
|
+
"@abaplint/core": "^2.115.23",
|
|
31
|
+
"@abaplint/transpiler": "^2.12.28",
|
|
32
32
|
"@types/glob": "^8.1.0",
|
|
33
|
-
"@types/node": "^24.10.
|
|
33
|
+
"@types/node": "^24.10.13",
|
|
34
34
|
"@types/progress": "^2.0.7",
|
|
35
35
|
"glob": "=7.2.0",
|
|
36
36
|
"progress": "^2.0.3",
|
|
37
|
-
"ts-json-schema-generator": "
|
|
37
|
+
"ts-json-schema-generator": "=2.4.0",
|
|
38
38
|
"typescript": "^5.9.3",
|
|
39
39
|
"p-limit": "^3.1.0",
|
|
40
40
|
"webpack-cli": "^6.0.1",
|
|
41
|
-
"webpack": "^5.105.
|
|
41
|
+
"webpack": "^5.105.1"
|
|
42
42
|
}
|
|
43
43
|
}
|