@abaplint/cli 2.115.22 → 2.115.23
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/cli.js +10 -10
- package/package.json +2 -2
package/build/cli.js
CHANGED
|
@@ -4274,7 +4274,7 @@ const let_1 = __webpack_require__(/*! ./let */ "./node_modules/@abaplint/core/bu
|
|
|
4274
4274
|
class Cast extends combi_1.Expression {
|
|
4275
4275
|
getRunnable() {
|
|
4276
4276
|
const rparen = (0, combi_1.altPrio)((0, combi_1.tok)(tokens_1.WParenRightW), (0, combi_1.tok)(tokens_1.WParenRight));
|
|
4277
|
-
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);
|
|
4277
|
+
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));
|
|
4278
4278
|
return (0, combi_1.ver)(version_1.Version.v740sp02, cast, version_1.Version.OpenABAP);
|
|
4279
4279
|
}
|
|
4280
4280
|
}
|
|
@@ -15420,8 +15420,7 @@ class Move {
|
|
|
15420
15420
|
const equals = (0, combi_1.altPrio)((0, combi_1.altPrio)(chained, "?="), calcAssign);
|
|
15421
15421
|
// todo, move "?=" to CAST?
|
|
15422
15422
|
const eq = (0, combi_1.seq)(expressions_1.Target, equals, expressions_1.Source);
|
|
15423
|
-
|
|
15424
|
-
return (0, combi_1.alt)(move, eq, eqd);
|
|
15423
|
+
return (0, combi_1.alt)(move, eq);
|
|
15425
15424
|
}
|
|
15426
15425
|
}
|
|
15427
15426
|
exports.Move = Move;
|
|
@@ -31631,8 +31630,9 @@ class CreateObject {
|
|
|
31631
31630
|
return;
|
|
31632
31631
|
}
|
|
31633
31632
|
else if (found instanceof basic_1.ObjectReferenceType) {
|
|
31634
|
-
const
|
|
31635
|
-
|
|
31633
|
+
const identifier = found.getIdentifier();
|
|
31634
|
+
const idFound = input.scope.findObjectDefinition(identifier.getName());
|
|
31635
|
+
if (idFound instanceof types_1.InterfaceDefinition && type === undefined) {
|
|
31636
31636
|
const message = "Interface reference, cannot be instantiated";
|
|
31637
31637
|
input.issues.push((0, _syntax_input_1.syntaxIssue)(input, node.getFirstToken(), message));
|
|
31638
31638
|
return;
|
|
@@ -31644,11 +31644,11 @@ class CreateObject {
|
|
|
31644
31644
|
input.issues.push((0, _syntax_input_1.syntaxIssue)(input, node.getFirstToken(), message));
|
|
31645
31645
|
return;
|
|
31646
31646
|
}
|
|
31647
|
-
else if (
|
|
31648
|
-
cdef =
|
|
31647
|
+
else if (idFound instanceof types_1.ClassDefinition && cdef === undefined) {
|
|
31648
|
+
cdef = idFound;
|
|
31649
31649
|
}
|
|
31650
|
-
if (type === undefined &&
|
|
31651
|
-
const message =
|
|
31650
|
+
if (type === undefined && idFound instanceof types_1.ClassDefinition && idFound.isAbstract() === true) {
|
|
31651
|
+
const message = identifier.getName() + " is abstract, cannot be instantiated";
|
|
31652
31652
|
input.issues.push((0, _syntax_input_1.syntaxIssue)(input, node.getFirstToken(), message));
|
|
31653
31653
|
return;
|
|
31654
31654
|
}
|
|
@@ -55485,7 +55485,7 @@ class Registry {
|
|
|
55485
55485
|
}
|
|
55486
55486
|
static abaplintVersion() {
|
|
55487
55487
|
// magic, see build script "version.sh"
|
|
55488
|
-
return "2.115.
|
|
55488
|
+
return "2.115.23";
|
|
55489
55489
|
}
|
|
55490
55490
|
getDDICReferences() {
|
|
55491
55491
|
return this.ddicReferences;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@abaplint/cli",
|
|
3
|
-
"version": "2.115.
|
|
3
|
+
"version": "2.115.23",
|
|
4
4
|
"description": "abaplint - Command Line Interface",
|
|
5
5
|
"funding": "https://github.com/sponsors/larshp",
|
|
6
6
|
"bin": {
|
|
@@ -38,7 +38,7 @@
|
|
|
38
38
|
},
|
|
39
39
|
"homepage": "https://abaplint.org",
|
|
40
40
|
"devDependencies": {
|
|
41
|
-
"@abaplint/core": "^2.115.
|
|
41
|
+
"@abaplint/core": "^2.115.23",
|
|
42
42
|
"@types/chai": "^4.3.20",
|
|
43
43
|
"@types/minimist": "^1.2.5",
|
|
44
44
|
"@types/mocha": "^10.0.10",
|