@abaplint/cli 2.113.209 → 2.113.211
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 +25 -10
- package/package.json +2 -2
package/build/cli.js
CHANGED
|
@@ -9462,13 +9462,14 @@ Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
|
9462
9462
|
exports.Type = void 0;
|
|
9463
9463
|
const combi_1 = __webpack_require__(/*! ../combi */ "./node_modules/@abaplint/core/build/src/abap/2_statements/combi.js");
|
|
9464
9464
|
const _1 = __webpack_require__(/*! . */ "./node_modules/@abaplint/core/build/src/abap/2_statements/expressions/index.js");
|
|
9465
|
+
const version_1 = __webpack_require__(/*! ../../../version */ "./node_modules/@abaplint/core/build/src/version.js");
|
|
9465
9466
|
class Type extends combi_1.Expression {
|
|
9466
9467
|
getRunnable() {
|
|
9467
|
-
const indicators = (0, combi_1.seq)("WITH INDICATORS", _1.ComponentName, "TYPE", _1.TypeName);
|
|
9468
|
+
const indicators = (0, combi_1.seq)("WITH INDICATORS", _1.ComponentName, (0, combi_1.optPrio)((0, combi_1.seq)("TYPE", _1.TypeName)));
|
|
9468
9469
|
const typeType = (0, combi_1.seq)(_1.TypeName, (0, combi_1.optPrio)(_1.Default));
|
|
9469
9470
|
const like = (0, combi_1.altPrio)((0, combi_1.seq)("LINE OF", _1.FieldChain), (0, combi_1.seq)("REF TO", _1.FieldChain), _1.FieldChain);
|
|
9470
9471
|
const type = (0, combi_1.altPrio)((0, combi_1.seq)("LINE OF", typeType), (0, combi_1.seq)("REF TO", typeType), (0, combi_1.seq)(typeType, (0, combi_1.optPrio)(_1.LOBHandle)));
|
|
9471
|
-
const ret = (0, combi_1.seq)((0, combi_1.altPrio)((0, combi_1.seq)("LIKE", like), (0, combi_1.seq)("TYPE", type)), (0, combi_1.optPrio)(indicators));
|
|
9472
|
+
const ret = (0, combi_1.seq)((0, combi_1.altPrio)((0, combi_1.seq)("LIKE", like), (0, combi_1.seq)("TYPE", type)), (0, combi_1.optPrio)((0, combi_1.ver)(version_1.Version.v755, indicators)));
|
|
9472
9473
|
return ret;
|
|
9473
9474
|
}
|
|
9474
9475
|
}
|
|
@@ -11877,6 +11878,7 @@ Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
|
11877
11878
|
exports.CreateObject = void 0;
|
|
11878
11879
|
const combi_1 = __webpack_require__(/*! ../combi */ "./node_modules/@abaplint/core/build/src/abap/2_statements/combi.js");
|
|
11879
11880
|
const expressions_1 = __webpack_require__(/*! ../expressions */ "./node_modules/@abaplint/core/build/src/abap/2_statements/expressions/index.js");
|
|
11881
|
+
const version_1 = __webpack_require__(/*! ../../../version */ "./node_modules/@abaplint/core/build/src/version.js");
|
|
11880
11882
|
class CreateObject {
|
|
11881
11883
|
getMatcher() {
|
|
11882
11884
|
const exporting = (0, combi_1.seq)("EXPORTING", expressions_1.ParameterListS);
|
|
@@ -11885,7 +11887,7 @@ class CreateObject {
|
|
|
11885
11887
|
const etable = (0, combi_1.seq)("EXCEPTION-TABLE", expressions_1.Source);
|
|
11886
11888
|
const area = (0, combi_1.seq)("AREA HANDLE", expressions_1.Source);
|
|
11887
11889
|
const type = (0, combi_1.seq)("TYPE", (0, combi_1.altPrio)(expressions_1.ClassName, expressions_1.Dynamic));
|
|
11888
|
-
const ret = (0, combi_1.seq)("CREATE OBJECT", expressions_1.Target, (0, combi_1.optPrio)((0, combi_1.per)(type, area)), (0, combi_1.optPrio)((0, combi_1.altPrio)(exporting, ptable)), (0, combi_1.optPrio)((0, combi_1.altPrio)(exceptions, etable)));
|
|
11890
|
+
const ret = (0, combi_1.seq)("CREATE OBJECT", expressions_1.Target, (0, combi_1.optPrio)((0, combi_1.per)(type, (0, combi_1.verNot)(version_1.Version.Cloud, area))), (0, combi_1.optPrio)((0, combi_1.altPrio)(exporting, ptable)), (0, combi_1.optPrio)((0, combi_1.altPrio)(exceptions, etable)));
|
|
11889
11891
|
return ret;
|
|
11890
11892
|
}
|
|
11891
11893
|
}
|
|
@@ -15216,7 +15218,8 @@ class ModifyEntities {
|
|
|
15216
15218
|
const entities = (0, combi_1.seq)((0, combi_1.optPrio)("AUGMENTING"), "ENTITIES OF", expressions_1.NamespaceSimpleName, (0, combi_1.opt)("IN LOCAL MODE"), (0, combi_1.plusPrio)((0, combi_1.seq)("ENTITY", expressions_1.NamespaceSimpleName, (0, combi_1.plus)(operation))));
|
|
15217
15219
|
const create2 = (0, combi_1.seq)("CREATE", fieldsWith, (0, combi_1.opt)((0, combi_1.seq)("CREATE BY", expressions_1.AssociationName, fieldsWith)));
|
|
15218
15220
|
const create3 = (0, combi_1.seq)("CREATE BY", expressions_1.AssociationName, fieldsWith);
|
|
15219
|
-
const
|
|
15221
|
+
const create4 = (0, combi_1.seq)("CREATE FROM", expressions_1.Source, (0, combi_1.plus)((0, combi_1.seq)("CREATE BY", expressions_1.AssociationName, "FROM", expressions_1.Source)));
|
|
15222
|
+
const entity = (0, combi_1.seq)("ENTITY", (0, combi_1.opt)("IN LOCAL MODE"), (0, combi_1.alt)(expressions_1.NamespaceSimpleName, expressions_1.EntityAssociation), (0, combi_1.alt)(execute, create, updateFields, deleteFrom, updateFrom, create2, create3, create4));
|
|
15220
15223
|
return (0, combi_1.ver)(version_1.Version.v754, (0, combi_1.seq)("MODIFY", (0, combi_1.alt)(entities, entity), end));
|
|
15221
15224
|
}
|
|
15222
15225
|
}
|
|
@@ -18366,12 +18369,13 @@ Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
|
18366
18369
|
exports.UpdateDatabase = void 0;
|
|
18367
18370
|
const combi_1 = __webpack_require__(/*! ../combi */ "./node_modules/@abaplint/core/build/src/abap/2_statements/combi.js");
|
|
18368
18371
|
const expressions_1 = __webpack_require__(/*! ../expressions */ "./node_modules/@abaplint/core/build/src/abap/2_statements/expressions/index.js");
|
|
18372
|
+
const version_1 = __webpack_require__(/*! ../../../version */ "./node_modules/@abaplint/core/build/src/version.js");
|
|
18369
18373
|
class UpdateDatabase {
|
|
18370
18374
|
getMatcher() {
|
|
18371
18375
|
const parameters = (0, combi_1.seq)(expressions_1.SQLFieldAndValue, (0, combi_1.star)((0, combi_1.seq)((0, combi_1.opt)(","), expressions_1.SQLFieldAndValue)));
|
|
18372
18376
|
const set = (0, combi_1.seq)("SET", (0, combi_1.alt)(parameters, expressions_1.Dynamic), (0, combi_1.opt)((0, combi_1.seq)("WHERE", expressions_1.SQLCond)));
|
|
18373
18377
|
const indicators = (0, combi_1.seq)("INDICATORS SET STRUCTURE", expressions_1.ComponentName);
|
|
18374
|
-
const fromTable = (0, combi_1.seq)("FROM", (0, combi_1.opt)("TABLE"), expressions_1.SQLSource, (0, combi_1.opt)(indicators));
|
|
18378
|
+
const fromTable = (0, combi_1.seq)("FROM", (0, combi_1.opt)("TABLE"), expressions_1.SQLSource, (0, combi_1.opt)((0, combi_1.ver)(version_1.Version.v755, indicators)));
|
|
18375
18379
|
const ret = (0, combi_1.seq)("UPDATE", expressions_1.DatabaseTable, (0, combi_1.opt)(expressions_1.SQLClient), (0, combi_1.opt)(expressions_1.DatabaseConnection), (0, combi_1.opt)((0, combi_1.alt)(fromTable, set)));
|
|
18376
18380
|
return ret;
|
|
18377
18381
|
}
|
|
@@ -24240,7 +24244,7 @@ class BasicTypes {
|
|
|
24240
24244
|
}
|
|
24241
24245
|
parseTable(node, name) {
|
|
24242
24246
|
var _a, _b, _c, _d;
|
|
24243
|
-
const typename = node.findFirstExpression(Expressions.TypeName);
|
|
24247
|
+
const typename = node.findFirstExpression(Expressions.TypeName) || node.findFirstExpression(Expressions.EntityAssociation);
|
|
24244
24248
|
const text = (_a = node.findFirstExpression(Expressions.TypeTable)) === null || _a === void 0 ? void 0 : _a.concatTokens().toUpperCase();
|
|
24245
24249
|
if (text === undefined) {
|
|
24246
24250
|
return undefined;
|
|
@@ -24395,7 +24399,7 @@ class BasicTypes {
|
|
|
24395
24399
|
return this.parseType(node, name);
|
|
24396
24400
|
}
|
|
24397
24401
|
parseType(node, qualifiedName) {
|
|
24398
|
-
var _a, _b, _c, _d, _e, _f;
|
|
24402
|
+
var _a, _b, _c, _d, _e, _f, _g, _h;
|
|
24399
24403
|
const typeName = node.findFirstExpression(Expressions.TypeName);
|
|
24400
24404
|
let text = (_a = node.findFirstExpression(Expressions.Type)) === null || _a === void 0 ? void 0 : _a.concatTokens().toUpperCase();
|
|
24401
24405
|
if (text === undefined) {
|
|
@@ -24533,6 +24537,17 @@ class BasicTypes {
|
|
|
24533
24537
|
}
|
|
24534
24538
|
}
|
|
24535
24539
|
}
|
|
24540
|
+
if (text.includes(" WITH INDICATORS ")) {
|
|
24541
|
+
const componentName = (_h = (_g = node.findFirstExpression(Expressions.Type)) === null || _g === void 0 ? void 0 : _g.findDirectExpression(Expressions.ComponentName)) === null || _h === void 0 ? void 0 : _h.concatTokens().toUpperCase();
|
|
24542
|
+
if (componentName === undefined) {
|
|
24543
|
+
throw new Error("parseType, componentName expected");
|
|
24544
|
+
}
|
|
24545
|
+
if (found instanceof Types.StructureType) {
|
|
24546
|
+
const newComponents = found.getComponents();
|
|
24547
|
+
newComponents.push({ name: componentName, type: Types.VoidType.get("INDICATORStodo") });
|
|
24548
|
+
found = new Types.StructureType(newComponents, qualifiedName);
|
|
24549
|
+
}
|
|
24550
|
+
}
|
|
24536
24551
|
return found;
|
|
24537
24552
|
}
|
|
24538
24553
|
/////////////////////
|
|
@@ -29962,7 +29977,7 @@ class Append {
|
|
|
29962
29977
|
const fsTarget = node.findExpressionAfterToken("ASSIGNING");
|
|
29963
29978
|
if (fsTarget && fsTarget.get() instanceof Expressions.FSTarget) {
|
|
29964
29979
|
if (!(targetType instanceof basic_1.TableType) && !(targetType instanceof basic_1.VoidType)) {
|
|
29965
|
-
const message = "APPEND to non table type";
|
|
29980
|
+
const message = "APPEND to non table type, " + (targetType === null || targetType === void 0 ? void 0 : targetType.constructor.name);
|
|
29966
29981
|
input.issues.push((0, _syntax_input_1.syntaxIssue)(input, node.getFirstToken(), message));
|
|
29967
29982
|
return;
|
|
29968
29983
|
}
|
|
@@ -29972,7 +29987,7 @@ class Append {
|
|
|
29972
29987
|
const dataTarget = node.findExpressionAfterToken("INTO");
|
|
29973
29988
|
if (dataTarget && node.concatTokens().toUpperCase().includes(" REFERENCE INTO DATA(")) {
|
|
29974
29989
|
if (!(targetType instanceof basic_1.TableType) && !(targetType instanceof basic_1.VoidType)) {
|
|
29975
|
-
const message = "APPEND to non table type";
|
|
29990
|
+
const message = "APPEND to non table type, " + (targetType === null || targetType === void 0 ? void 0 : targetType.constructor.name);
|
|
29976
29991
|
input.issues.push((0, _syntax_input_1.syntaxIssue)(input, node.getFirstToken(), message));
|
|
29977
29992
|
return;
|
|
29978
29993
|
}
|
|
@@ -54487,7 +54502,7 @@ class Registry {
|
|
|
54487
54502
|
}
|
|
54488
54503
|
static abaplintVersion() {
|
|
54489
54504
|
// magic, see build script "version.sh"
|
|
54490
|
-
return "2.113.
|
|
54505
|
+
return "2.113.211";
|
|
54491
54506
|
}
|
|
54492
54507
|
getDDICReferences() {
|
|
54493
54508
|
return this.ddicReferences;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@abaplint/cli",
|
|
3
|
-
"version": "2.113.
|
|
3
|
+
"version": "2.113.211",
|
|
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.113.
|
|
41
|
+
"@abaplint/core": "^2.113.211",
|
|
42
42
|
"@types/chai": "^4.3.20",
|
|
43
43
|
"@types/minimist": "^1.2.5",
|
|
44
44
|
"@types/mocha": "^10.0.10",
|