@abaplint/cli 2.120.106 → 2.120.107
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 +19 -9
- package/package.json +2 -2
package/build/cli.js
CHANGED
|
@@ -38490,8 +38490,8 @@ class ValueBody {
|
|
|
38490
38490
|
}
|
|
38491
38491
|
for (const s of foo.findDirectExpressions(Expressions.Source)) {
|
|
38492
38492
|
const sourceType = source_1.Source.runSyntax(s, input, rowType);
|
|
38493
|
-
if (rowType instanceof basic_1.StringType && sourceType instanceof basic_1.CharacterType) {
|
|
38494
|
-
const message = "VALUE, source type CharacterType not compatible with
|
|
38493
|
+
if ((rowType instanceof basic_1.StringType || rowType instanceof basic_1.XStringType) && sourceType instanceof basic_1.CharacterType) {
|
|
38494
|
+
const message = "VALUE, source type CharacterType not compatible with " + rowType.constructor.name;
|
|
38495
38495
|
input.issues.push((0, _syntax_input_1.syntaxIssue)(input, s.getFirstToken(), message));
|
|
38496
38496
|
}
|
|
38497
38497
|
else if (this.insertsUsingTableKey(targetType)) {
|
|
@@ -39288,6 +39288,11 @@ class Append {
|
|
|
39288
39288
|
let targetType = undefined;
|
|
39289
39289
|
const target = node.findDirectExpression(Expressions.Target);
|
|
39290
39290
|
if (target) {
|
|
39291
|
+
if (target.findDirectExpression(Expressions.TableExpression) !== undefined) {
|
|
39292
|
+
const message = "APPEND, table expression not allowed in target";
|
|
39293
|
+
input.issues.push((0, _syntax_input_1.syntaxIssue)(input, target.getFirstToken(), message));
|
|
39294
|
+
return;
|
|
39295
|
+
}
|
|
39291
39296
|
targetType = target_1.Target.runSyntax(target, input);
|
|
39292
39297
|
}
|
|
39293
39298
|
// a hashed table has no index, APPEND adds at the end
|
|
@@ -46338,7 +46343,7 @@ const _raise_message_1 = __webpack_require__(/*! ../_raise_message */ "../core/b
|
|
|
46338
46343
|
class Raise {
|
|
46339
46344
|
runSyntax(node, input) {
|
|
46340
46345
|
// todo
|
|
46341
|
-
var _a, _b, _c, _d, _e, _f;
|
|
46346
|
+
var _a, _b, _c, _d, _e, _f, _g;
|
|
46342
46347
|
const helper = new _object_oriented_1.ObjectOriented(input.scope);
|
|
46343
46348
|
let method;
|
|
46344
46349
|
const exceptionName = node.findDirectExpression(Expressions.ExceptionName);
|
|
@@ -46354,7 +46359,12 @@ class Raise {
|
|
|
46354
46359
|
if (found === null || found === void 0 ? void 0 : found.id) {
|
|
46355
46360
|
input.scope.addReference(classTok, found.id, _reference_1.ReferenceType.ObjectOrientedReference, input.filename);
|
|
46356
46361
|
const def = input.scope.findObjectDefinition(className);
|
|
46357
|
-
|
|
46362
|
+
if (((_b = input.scope.findClassDefinition(className)) === null || _b === void 0 ? void 0 : _b.isAbstract()) === true) {
|
|
46363
|
+
const message = className + " is abstract, cannot be instantiated";
|
|
46364
|
+
input.issues.push((0, _syntax_input_1.syntaxIssue)(input, classTok, message));
|
|
46365
|
+
return;
|
|
46366
|
+
}
|
|
46367
|
+
method = (_c = helper.searchMethodName(def, "CONSTRUCTOR")) === null || _c === void 0 ? void 0 : _c.method;
|
|
46358
46368
|
}
|
|
46359
46369
|
else if (input.scope.getDDIC().inErrorNamespace(className) === false) {
|
|
46360
46370
|
const extra = { ooName: className, ooType: "Void" };
|
|
@@ -46378,7 +46388,7 @@ class Raise {
|
|
|
46378
46388
|
}
|
|
46379
46389
|
else if (type instanceof basic_1.ObjectReferenceType) {
|
|
46380
46390
|
const def = input.scope.findObjectDefinition(type.getIdentifierName());
|
|
46381
|
-
method = (
|
|
46391
|
+
method = (_d = helper.searchMethodName(def, "CONSTRUCTOR")) === null || _d === void 0 ? void 0 : _d.method;
|
|
46382
46392
|
}
|
|
46383
46393
|
else if (type !== undefined) {
|
|
46384
46394
|
const message = "RAISE EXCEPTION, must be object reference, got " + type.constructor.name;
|
|
@@ -46407,10 +46417,10 @@ class Raise {
|
|
|
46407
46417
|
for (const s of node.findDirectExpressions(Expressions.MessageSource)) {
|
|
46408
46418
|
message_source_1.MessageSource.runSyntax(s, input);
|
|
46409
46419
|
}
|
|
46410
|
-
const id = (
|
|
46411
|
-
let number = (
|
|
46420
|
+
const id = (_e = node.findExpressionAfterToken("ID")) === null || _e === void 0 ? void 0 : _e.concatTokens();
|
|
46421
|
+
let number = (_f = node.findDirectExpression(Expressions.MessageNumber)) === null || _f === void 0 ? void 0 : _f.concatTokens();
|
|
46412
46422
|
if (number === undefined) {
|
|
46413
|
-
const num = (
|
|
46423
|
+
const num = (_g = node.findExpressionAfterToken("NUMBER")) === null || _g === void 0 ? void 0 : _g.concatTokens();
|
|
46414
46424
|
if (num === null || num === void 0 ? void 0 : num.startsWith("'")) {
|
|
46415
46425
|
number = num.substring(1, num.length - 1).toUpperCase();
|
|
46416
46426
|
}
|
|
@@ -73878,7 +73888,7 @@ class Registry {
|
|
|
73878
73888
|
}
|
|
73879
73889
|
static abaplintVersion() {
|
|
73880
73890
|
// magic, see build script "version.js"
|
|
73881
|
-
return "2.120.
|
|
73891
|
+
return "2.120.107";
|
|
73882
73892
|
}
|
|
73883
73893
|
getDDICReferences() {
|
|
73884
73894
|
return this.ddicReferences;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@abaplint/cli",
|
|
3
|
-
"version": "2.120.
|
|
3
|
+
"version": "2.120.107",
|
|
4
4
|
"description": "abaplint - Command Line Interface",
|
|
5
5
|
"funding": "https://github.com/sponsors/larshp",
|
|
6
6
|
"bin": {
|
|
@@ -39,7 +39,7 @@
|
|
|
39
39
|
},
|
|
40
40
|
"homepage": "https://abaplint.org",
|
|
41
41
|
"devDependencies": {
|
|
42
|
-
"@abaplint/core": "^2.120.
|
|
42
|
+
"@abaplint/core": "^2.120.107",
|
|
43
43
|
"@types/chai": "^4.3.20",
|
|
44
44
|
"@types/minimist": "^1.2.5",
|
|
45
45
|
"@types/mocha": "^10.0.10",
|