@abaplint/cli 2.113.54 → 2.113.56
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 +37 -34
- package/package.json +2 -2
package/build/cli.js
CHANGED
|
@@ -5741,7 +5741,7 @@ const combi_1 = __webpack_require__(/*! ../combi */ "./node_modules/@abaplint/co
|
|
|
5741
5741
|
const tokens_1 = __webpack_require__(/*! ../../1_lexer/tokens */ "./node_modules/@abaplint/core/build/src/abap/1_lexer/tokens/index.js");
|
|
5742
5742
|
class IncludeName extends combi_1.Expression {
|
|
5743
5743
|
getRunnable() {
|
|
5744
|
-
return (0, combi_1.seq)((0, combi_1.regex)(/^<?(\/\w+\/)?[\w
|
|
5744
|
+
return (0, combi_1.seq)((0, combi_1.regex)(/^<?(\/\w+\/)?[\w%#]+(~\w+)?>?$/), (0, combi_1.starPrio)((0, combi_1.seq)((0, combi_1.tok)(tokens_1.Dash), (0, combi_1.optPrio)((0, combi_1.regex)(/^\w+$/)))));
|
|
5745
5745
|
}
|
|
5746
5746
|
}
|
|
5747
5747
|
exports.IncludeName = IncludeName;
|
|
@@ -6411,11 +6411,12 @@ exports.MacroName = MacroName;
|
|
|
6411
6411
|
|
|
6412
6412
|
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
6413
6413
|
exports.MessageClass = void 0;
|
|
6414
|
+
const tokens_1 = __webpack_require__(/*! ../../1_lexer/tokens */ "./node_modules/@abaplint/core/build/src/abap/1_lexer/tokens/index.js");
|
|
6414
6415
|
const combi_1 = __webpack_require__(/*! ../combi */ "./node_modules/@abaplint/core/build/src/abap/2_statements/combi.js");
|
|
6415
6416
|
class MessageClass extends combi_1.Expression {
|
|
6416
6417
|
getRunnable() {
|
|
6417
6418
|
// "&1" can be used for almost anything(field names, method names etc.) in macros
|
|
6418
|
-
return (0, combi_1.regex)(/^>?[\w\/]
|
|
6419
|
+
return (0, combi_1.seq)((0, combi_1.regex)(/^>?[\w\/]+#?@?\/?!?&?>?\$?\??$/), (0, combi_1.starPrio)((0, combi_1.seq)((0, combi_1.tok)(tokens_1.Dash), (0, combi_1.optPrio)((0, combi_1.regex)(/^\w+$/)))), (0, combi_1.optPrio)((0, combi_1.tok)(tokens_1.DashW)));
|
|
6419
6420
|
}
|
|
6420
6421
|
}
|
|
6421
6422
|
exports.MessageClass = MessageClass;
|
|
@@ -7291,10 +7292,10 @@ const combi_1 = __webpack_require__(/*! ../combi */ "./node_modules/@abaplint/co
|
|
|
7291
7292
|
const _1 = __webpack_require__(/*! . */ "./node_modules/@abaplint/core/build/src/abap/2_statements/expressions/index.js");
|
|
7292
7293
|
class RaiseWith extends combi_1.Expression {
|
|
7293
7294
|
getRunnable() {
|
|
7294
|
-
const wit = (0, combi_1.seq)(
|
|
7295
|
+
const wit = (0, combi_1.seq)(_1.SimpleSource1, (0, combi_1.opt)(_1.SimpleSource1), (0, combi_1.opt)(_1.SimpleSource1), (0, combi_1.opt)(_1.SimpleSource1));
|
|
7295
7296
|
// todo: I guess this is from version something?
|
|
7296
|
-
const witComplex = (0, combi_1.seq)(
|
|
7297
|
-
return (0, combi_1.
|
|
7297
|
+
const witComplex = (0, combi_1.seq)(_1.Source, (0, combi_1.opt)(_1.Source), (0, combi_1.opt)(_1.Source), (0, combi_1.opt)(_1.Source));
|
|
7298
|
+
return (0, combi_1.seq)("WITH", (0, combi_1.altPrio)(witComplex, wit));
|
|
7298
7299
|
}
|
|
7299
7300
|
}
|
|
7300
7301
|
exports.RaiseWith = RaiseWith;
|
|
@@ -7867,7 +7868,7 @@ const dynamic_1 = __webpack_require__(/*! ./dynamic */ "./node_modules/@abaplint
|
|
|
7867
7868
|
const sql_arithmetics_1 = __webpack_require__(/*! ./sql_arithmetics */ "./node_modules/@abaplint/core/build/src/abap/2_statements/expressions/sql_arithmetics.js");
|
|
7868
7869
|
class SQLAggregation extends combi_1.Expression {
|
|
7869
7870
|
getRunnable() {
|
|
7870
|
-
const f = (0, combi_1.seq)((0, combi_1.optPrio)("DISTINCT"), (0, combi_1.altPrio)(sql_arithmetics_1.SQLArithmetics, dynamic_1.Dynamic, _1.SQLFunction
|
|
7871
|
+
const f = (0, combi_1.seq)((0, combi_1.optPrio)("DISTINCT"), (0, combi_1.altPrio)(_1.SQLCase, sql_arithmetics_1.SQLArithmetics, dynamic_1.Dynamic, _1.SQLFunction));
|
|
7871
7872
|
const fparen = (0, combi_1.seq)("(", _1.Field, ")");
|
|
7872
7873
|
const count = (0, combi_1.seq)("COUNT", (0, combi_1.altPrio)((0, combi_1.tok)(tokens_1.ParenLeft), (0, combi_1.tok)(tokens_1.ParenLeftW)), (0, combi_1.optPrio)("DISTINCT"), (0, combi_1.altPrio)("*", _1.Field, fparen), ")");
|
|
7873
7874
|
const max = (0, combi_1.seq)("MAX", (0, combi_1.altPrio)((0, combi_1.tok)(tokens_1.ParenLeft), (0, combi_1.tok)(tokens_1.ParenLeftW)), f, ")");
|
|
@@ -7996,8 +7997,9 @@ class SQLCase extends combi_1.Expression {
|
|
|
7996
7997
|
getRunnable() {
|
|
7997
7998
|
const field = (0, combi_1.altPrio)(_1.SQLAggregation, SQLCase, _1.SQLFunction, _1.SQLPath, sql_field_name_1.SQLFieldName, constant_1.Constant);
|
|
7998
7999
|
const sub = (0, combi_1.seq)((0, combi_1.altPrio)("+", "-", "*", "/", "&&"), (0, combi_1.optPrio)((0, combi_1.tok)(tokens_1.WParenLeftW)), field, (0, combi_1.optPrio)((0, combi_1.tok)(tokens_1.WParenRightW)));
|
|
7999
|
-
const sourc = (0, combi_1.altPrio)(SQLCase, _1.SQLAggregation, _1.SQLFunction, sql_source_1.SQLSource);
|
|
8000
|
-
const
|
|
8000
|
+
const sourc = (0, combi_1.altPrio)(SQLCase, _1.SQLAggregation, _1.SQLFunction, sql_source_1.SQLSource, constant_1.Constant);
|
|
8001
|
+
const val = (0, combi_1.altPrio)(sql_cond_1.SQLCond, constant_1.Constant, (0, combi_1.seq)((0, combi_1.tok)(tokens_1.WAt), _1.SimpleSource3));
|
|
8002
|
+
const when = (0, combi_1.seq)("WHEN", val, "THEN", sourc, (0, combi_1.starPrio)(sub));
|
|
8001
8003
|
const els = (0, combi_1.seq)("ELSE", sourc);
|
|
8002
8004
|
return (0, combi_1.ver)(version_1.Version.v740sp05, (0, combi_1.seq)("CASE", (0, combi_1.opt)(sql_field_name_1.SQLFieldName), (0, combi_1.plusPrio)(when), (0, combi_1.optPrio)(els), "END"));
|
|
8003
8005
|
}
|
|
@@ -11967,13 +11969,14 @@ class Describe {
|
|
|
11967
11969
|
const field = (0, combi_1.seq)("FIELD", expressions_1.Source, (0, combi_1.per)((0, combi_1.seq)("TYPE", expressions_1.Target), (0, combi_1.seq)("COMPONENTS", expressions_1.Target), (0, combi_1.seq)("LENGTH", expressions_1.Target, (0, combi_1.opt)(mode)), (0, combi_1.seq)("DECIMALS", expressions_1.Target), (0, combi_1.seq)("HELP-ID", expressions_1.Target), (0, combi_1.seq)("OUTPUT-LENGTH", expressions_1.Target), (0, combi_1.seq)("EDIT MASK", expressions_1.Target), (0, combi_1.seq)("INTO", expressions_1.Target)));
|
|
11968
11970
|
const distance = (0, combi_1.seq)("DISTANCE BETWEEN", expressions_1.Source, "AND", expressions_1.Source, "INTO", expressions_1.Target, mode);
|
|
11969
11971
|
const lines = (0, combi_1.seq)("NUMBER OF LINES", expressions_1.Target);
|
|
11972
|
+
const pages = (0, combi_1.seq)("NUMBER OF PAGES", expressions_1.Target);
|
|
11970
11973
|
const line = (0, combi_1.seq)("LINE", expressions_1.Source);
|
|
11971
11974
|
const page = (0, combi_1.seq)("PAGE", expressions_1.Source);
|
|
11972
11975
|
const index = (0, combi_1.seq)("INDEX", expressions_1.Source);
|
|
11973
11976
|
const top = (0, combi_1.seq)("TOP-LINES", expressions_1.Target);
|
|
11974
11977
|
const lineSize = (0, combi_1.seq)("LINE-SIZE", expressions_1.Target);
|
|
11975
11978
|
const first = (0, combi_1.seq)("FIRST-LINE", expressions_1.Target);
|
|
11976
|
-
const list = (0, combi_1.seq)("LIST", (0, combi_1.per)(lines, index, line, page, top, first, lineSize));
|
|
11979
|
+
const list = (0, combi_1.seq)("LIST", (0, combi_1.per)(lines, pages, index, line, page, top, first, lineSize));
|
|
11977
11980
|
const ret = (0, combi_1.seq)("DESCRIBE", (0, combi_1.altPrio)(table, field, distance, list));
|
|
11978
11981
|
return (0, combi_1.verNot)(version_1.Version.Cloud, ret);
|
|
11979
11982
|
}
|
|
@@ -13222,7 +13225,7 @@ class FunctionPool {
|
|
|
13222
13225
|
const message = (0, combi_1.seq)("MESSAGE-ID", expressions_1.MessageClass);
|
|
13223
13226
|
const line = (0, combi_1.seq)("LINE-SIZE", expressions_1.Integer);
|
|
13224
13227
|
const no = (0, combi_1.str)("NO STANDARD PAGE HEADING");
|
|
13225
|
-
return (0, combi_1.seq)("FUNCTION-POOL", expressions_1.
|
|
13228
|
+
return (0, combi_1.seq)("FUNCTION-POOL", expressions_1.IncludeName, (0, combi_1.opt)((0, combi_1.per)(message, line, no)));
|
|
13226
13229
|
}
|
|
13227
13230
|
}
|
|
13228
13231
|
exports.FunctionPool = FunctionPool;
|
|
@@ -14831,7 +14834,7 @@ const expressions_1 = __webpack_require__(/*! ../expressions */ "./node_modules/
|
|
|
14831
14834
|
const version_1 = __webpack_require__(/*! ../../../version */ "./node_modules/@abaplint/core/build/src/version.js");
|
|
14832
14835
|
class ModifyLine {
|
|
14833
14836
|
getMatcher() {
|
|
14834
|
-
const form = (0, combi_1.seq)((0, combi_1.alt)("INVERSE", "INPUT"), "=", expressions_1.Source);
|
|
14837
|
+
const form = (0, combi_1.seq)((0, combi_1.alt)("INVERSE", "INPUT", "COLOR"), "=", expressions_1.Source);
|
|
14835
14838
|
const from = (0, combi_1.seq)("FROM", expressions_1.Source);
|
|
14836
14839
|
const value = (0, combi_1.seq)("FIELD VALUE", (0, combi_1.plus)((0, combi_1.seq)(expressions_1.Source, (0, combi_1.optPrio)(from))));
|
|
14837
14840
|
const format = (0, combi_1.seq)("FIELD FORMAT", expressions_1.Source, (0, combi_1.opt)(form));
|
|
@@ -14839,7 +14842,7 @@ class ModifyLine {
|
|
|
14839
14842
|
const index = (0, combi_1.seq)("INDEX", expressions_1.Source);
|
|
14840
14843
|
const page = (0, combi_1.seq)("OF PAGE", expressions_1.Source);
|
|
14841
14844
|
const ocp = (0, combi_1.str)("OF CURRENT PAGE");
|
|
14842
|
-
const lineFormat = (0, combi_1.seq)("LINE FORMAT", (0, combi_1.
|
|
14845
|
+
const lineFormat = (0, combi_1.seq)("LINE FORMAT", (0, combi_1.per)("INPUT OFF", "INVERSE", "RESET", "INTENSIFIED", "COLOR COL_NORMAL"));
|
|
14843
14846
|
const onOff = (0, combi_1.alt)("ON", "OFF");
|
|
14844
14847
|
const intensified = (0, combi_1.seq)("INTENSIFIED", onOff);
|
|
14845
14848
|
const options = (0, combi_1.per)(index, value, format, page, lineFormat, lineValue, ocp, intensified, expressions_1.Color);
|
|
@@ -15361,7 +15364,7 @@ const expressions_1 = __webpack_require__(/*! ../expressions */ "./node_modules/
|
|
|
15361
15364
|
const version_1 = __webpack_require__(/*! ../../../version */ "./node_modules/@abaplint/core/build/src/version.js");
|
|
15362
15365
|
class Program {
|
|
15363
15366
|
getMatcher() {
|
|
15364
|
-
const message = (0, combi_1.seq)("MESSAGE-ID", expressions_1.
|
|
15367
|
+
const message = (0, combi_1.seq)("MESSAGE-ID", expressions_1.MessageClass);
|
|
15365
15368
|
const size = (0, combi_1.seq)("LINE-SIZE", expressions_1.Source);
|
|
15366
15369
|
const heading = (0, combi_1.str)("NO STANDARD PAGE HEADING");
|
|
15367
15370
|
const line = (0, combi_1.seq)("LINE-COUNT", expressions_1.Source);
|
|
@@ -17026,7 +17029,7 @@ class Submit {
|
|
|
17026
17029
|
const between = (0, combi_1.seq)("BETWEEN", expressions_1.Source, "AND", expressions_1.Source);
|
|
17027
17030
|
const selectionTable = (0, combi_1.seq)("WITH SELECTION-TABLE", expressions_1.Source);
|
|
17028
17031
|
const awith = (0, combi_1.seq)("WITH", expressions_1.FieldSub, (0, combi_1.alt)(compare, between), (0, combi_1.optPrio)(sign));
|
|
17029
|
-
const prog = (0, combi_1.
|
|
17032
|
+
const prog = (0, combi_1.altPrio)(expressions_1.IncludeName, expressions_1.Dynamic);
|
|
17030
17033
|
const job = (0, combi_1.seq)("VIA JOB", expressions_1.Source, "NUMBER", expressions_1.Source);
|
|
17031
17034
|
const exporting = (0, combi_1.str)("EXPORTING LIST TO MEMORY");
|
|
17032
17035
|
const spool = (0, combi_1.seq)("SPOOL PARAMETERS", expressions_1.Source);
|
|
@@ -26810,7 +26813,7 @@ const Expressions = __webpack_require__(/*! ../../2_statements/expressions */ ".
|
|
|
26810
26813
|
const source_1 = __webpack_require__(/*! ./source */ "./node_modules/@abaplint/core/build/src/abap/5_syntax/expressions/source.js");
|
|
26811
26814
|
class RaiseWith {
|
|
26812
26815
|
runSyntax(node, input) {
|
|
26813
|
-
for (const f of node.
|
|
26816
|
+
for (const f of node.findAllExpressionsMulti([Expressions.SimpleSource1, Expressions.Source])) {
|
|
26814
26817
|
new source_1.Source().runSyntax(f, input);
|
|
26815
26818
|
}
|
|
26816
26819
|
}
|
|
@@ -51631,9 +51634,10 @@ class Table extends _abstract_object_1.AbstractObject {
|
|
|
51631
51634
|
references.push({ object: lookup.object });
|
|
51632
51635
|
}
|
|
51633
51636
|
}
|
|
51634
|
-
else if (field.FIELDNAME === ".INCLUDE"
|
|
51637
|
+
else if (field.FIELDNAME === ".INCLUDE"
|
|
51638
|
+
|| field.FIELDNAME.startsWith(".INCLU-")) {
|
|
51635
51639
|
if (field.PRECFIELD === undefined) {
|
|
51636
|
-
return new Types.UnknownType("Table, parser error, PRECFIELD undefined");
|
|
51640
|
+
return new Types.UnknownType("Table, parser error, PRECFIELD undefined, " + this.getName());
|
|
51637
51641
|
}
|
|
51638
51642
|
const lookup = ddic.lookupTableOrView(field.PRECFIELD);
|
|
51639
51643
|
let found = lookup.type;
|
|
@@ -51665,26 +51669,25 @@ class Table extends _abstract_object_1.AbstractObject {
|
|
|
51665
51669
|
else {
|
|
51666
51670
|
components.push({ name: field.FIELDNAME, type: found });
|
|
51667
51671
|
}
|
|
51668
|
-
|
|
51669
|
-
|
|
51672
|
+
/*
|
|
51673
|
+
} else if (comptype === "S" && field.FIELDNAME.startsWith(".INCLU-")) {
|
|
51670
51674
|
const lookup = ddic.lookupTableOrView(field.PRECFIELD);
|
|
51671
51675
|
if (lookup.object) {
|
|
51672
|
-
|
|
51676
|
+
references.push({object: lookup.object});
|
|
51673
51677
|
}
|
|
51674
51678
|
const found = lookup.type;
|
|
51675
51679
|
if (found instanceof Types.VoidType) {
|
|
51676
|
-
|
|
51677
|
-
|
|
51678
|
-
}
|
|
51679
|
-
|
|
51680
|
-
|
|
51681
|
-
|
|
51682
|
-
|
|
51683
|
-
|
|
51684
|
-
|
|
51685
|
-
|
|
51686
|
-
|
|
51687
|
-
}
|
|
51680
|
+
// set the full structure to void
|
|
51681
|
+
return found;
|
|
51682
|
+
} else if (found instanceof Types.StructureType) {
|
|
51683
|
+
const suffix = field.FIELDNAME.split("-")[1];
|
|
51684
|
+
for (const c of found.getComponents()) {
|
|
51685
|
+
components.push({name: c.name + suffix, type: c.type});
|
|
51686
|
+
}
|
|
51687
|
+
} else if (found instanceof Types.UnknownType) {
|
|
51688
|
+
return found;
|
|
51689
|
+
}
|
|
51690
|
+
*/
|
|
51688
51691
|
}
|
|
51689
51692
|
else if (comptype === "S") {
|
|
51690
51693
|
const lookup = ddic.lookupTableOrView(field.ROLLNAME);
|
|
@@ -53131,7 +53134,7 @@ class Registry {
|
|
|
53131
53134
|
}
|
|
53132
53135
|
static abaplintVersion() {
|
|
53133
53136
|
// magic, see build script "version.sh"
|
|
53134
|
-
return "2.113.
|
|
53137
|
+
return "2.113.56";
|
|
53135
53138
|
}
|
|
53136
53139
|
getDDICReferences() {
|
|
53137
53140
|
return this.ddicReferences;
|
|
@@ -59387,7 +59390,7 @@ ${indentation}CATCH ${className} INTO ${targetName}.`;
|
|
|
59387
59390
|
}
|
|
59388
59391
|
startToken = node.getFirstToken();
|
|
59389
59392
|
}
|
|
59390
|
-
const withs = ((_f = node.findDirectExpression(Expressions.RaiseWith)) === null || _f === void 0 ? void 0 : _f.
|
|
59393
|
+
const withs = ((_f = node.findDirectExpression(Expressions.RaiseWith)) === null || _f === void 0 ? void 0 : _f.findDirectExpressionsMulti([Expressions.SimpleSource1, Expressions.Source])) || [];
|
|
59391
59394
|
const className = ((_g = node.findDirectExpression(Expressions.ClassName)) === null || _g === void 0 ? void 0 : _g.concatTokens()) || "ERROR";
|
|
59392
59395
|
const uniqueName1 = this.uniqueName(node.getFirstToken().getStart(), lowFile.getFilename(), highSyntax);
|
|
59393
59396
|
const uniqueName2 = this.uniqueName(node.getFirstToken().getStart(), lowFile.getFilename(), highSyntax);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@abaplint/cli",
|
|
3
|
-
"version": "2.113.
|
|
3
|
+
"version": "2.113.56",
|
|
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.56",
|
|
42
42
|
"@types/chai": "^4.3.20",
|
|
43
43
|
"@types/glob": "^8.1.0",
|
|
44
44
|
"@types/minimist": "^1.2.5",
|