@abaplint/transpiler-cli 2.8.27 → 2.8.29
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 +169 -65
- package/package.json +6 -6
package/build/bundle.js
CHANGED
|
@@ -1652,7 +1652,24 @@ exports.WStaticArrowW = WStaticArrowW;
|
|
|
1652
1652
|
"use strict";
|
|
1653
1653
|
|
|
1654
1654
|
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
1655
|
-
exports.
|
|
1655
|
+
exports.Combi = exports.Expression = void 0;
|
|
1656
|
+
exports.str = str;
|
|
1657
|
+
exports.regex = regex;
|
|
1658
|
+
exports.tok = tok;
|
|
1659
|
+
exports.seq = seq;
|
|
1660
|
+
exports.alt = alt;
|
|
1661
|
+
exports.altPrio = altPrio;
|
|
1662
|
+
exports.opt = opt;
|
|
1663
|
+
exports.optPrio = optPrio;
|
|
1664
|
+
exports.per = per;
|
|
1665
|
+
exports.star = star;
|
|
1666
|
+
exports.starPrio = starPrio;
|
|
1667
|
+
exports.plus = plus;
|
|
1668
|
+
exports.plusPrio = plusPrio;
|
|
1669
|
+
exports.ver = ver;
|
|
1670
|
+
exports.verNot = verNot;
|
|
1671
|
+
exports.failCombinator = failCombinator;
|
|
1672
|
+
exports.failStar = failStar;
|
|
1656
1673
|
const Tokens = __webpack_require__(/*! ../1_lexer/tokens */ "./node_modules/@abaplint/core/build/src/abap/1_lexer/tokens/index.js");
|
|
1657
1674
|
const nodes_1 = __webpack_require__(/*! ../nodes */ "./node_modules/@abaplint/core/build/src/abap/nodes/index.js");
|
|
1658
1675
|
const version_1 = __webpack_require__(/*! ../../version */ "./node_modules/@abaplint/core/build/src/version.js");
|
|
@@ -2465,15 +2482,12 @@ function str(s) {
|
|
|
2465
2482
|
return new Word(s);
|
|
2466
2483
|
}
|
|
2467
2484
|
}
|
|
2468
|
-
exports.str = str;
|
|
2469
2485
|
function regex(r) {
|
|
2470
2486
|
return new Regex(r);
|
|
2471
2487
|
}
|
|
2472
|
-
exports.regex = regex;
|
|
2473
2488
|
function tok(t) {
|
|
2474
2489
|
return new Token(t.name);
|
|
2475
2490
|
}
|
|
2476
|
-
exports.tok = tok;
|
|
2477
2491
|
const expressionSingletons = {};
|
|
2478
2492
|
const stringSingletons = {};
|
|
2479
2493
|
function map(s) {
|
|
@@ -2502,65 +2516,51 @@ function seq(first, second, ...rest) {
|
|
|
2502
2516
|
list.push(...rest.map(map));
|
|
2503
2517
|
return new Sequence(list);
|
|
2504
2518
|
}
|
|
2505
|
-
exports.seq = seq;
|
|
2506
2519
|
function alt(first, second, ...rest) {
|
|
2507
2520
|
const list = [map(first), map(second)];
|
|
2508
2521
|
list.push(...rest.map(map));
|
|
2509
2522
|
return new Alternative(list);
|
|
2510
2523
|
}
|
|
2511
|
-
exports.alt = alt;
|
|
2512
2524
|
function altPrio(first, second, ...rest) {
|
|
2513
2525
|
const list = [map(first), map(second)];
|
|
2514
2526
|
list.push(...rest.map(map));
|
|
2515
2527
|
return new AlternativePriority(list);
|
|
2516
2528
|
}
|
|
2517
|
-
exports.altPrio = altPrio;
|
|
2518
2529
|
function opt(first) {
|
|
2519
2530
|
return new Optional(map(first));
|
|
2520
2531
|
}
|
|
2521
|
-
exports.opt = opt;
|
|
2522
2532
|
function optPrio(first) {
|
|
2523
2533
|
return new OptionalPriority(map(first));
|
|
2524
2534
|
}
|
|
2525
|
-
exports.optPrio = optPrio;
|
|
2526
2535
|
function per(first, second, ...rest) {
|
|
2527
2536
|
const list = [map(first), map(second)];
|
|
2528
2537
|
list.push(...rest.map(map));
|
|
2529
2538
|
return new Permutation(list);
|
|
2530
2539
|
}
|
|
2531
|
-
exports.per = per;
|
|
2532
2540
|
function star(first) {
|
|
2533
2541
|
return new Star(map(first));
|
|
2534
2542
|
}
|
|
2535
|
-
exports.star = star;
|
|
2536
2543
|
function starPrio(first) {
|
|
2537
2544
|
return new StarPriority(map(first));
|
|
2538
2545
|
}
|
|
2539
|
-
exports.starPrio = starPrio;
|
|
2540
2546
|
function plus(first) {
|
|
2541
2547
|
return new Plus(map(first));
|
|
2542
2548
|
}
|
|
2543
|
-
exports.plus = plus;
|
|
2544
2549
|
function plusPrio(first) {
|
|
2545
2550
|
return new PlusPriority(map(first));
|
|
2546
2551
|
}
|
|
2547
|
-
exports.plusPrio = plusPrio;
|
|
2548
2552
|
function ver(version, first, or) {
|
|
2549
2553
|
return new Vers(version, map(first), or);
|
|
2550
2554
|
}
|
|
2551
|
-
exports.ver = ver;
|
|
2552
2555
|
function verNot(version, first) {
|
|
2553
2556
|
return new VersNot(version, map(first));
|
|
2554
2557
|
}
|
|
2555
|
-
exports.verNot = verNot;
|
|
2556
2558
|
function failCombinator() {
|
|
2557
2559
|
return new FailCombinator();
|
|
2558
2560
|
}
|
|
2559
|
-
exports.failCombinator = failCombinator;
|
|
2560
2561
|
function failStar() {
|
|
2561
2562
|
return new FailStar();
|
|
2562
2563
|
}
|
|
2563
|
-
exports.failStar = failStar;
|
|
2564
2564
|
//# sourceMappingURL=combi.js.map
|
|
2565
2565
|
|
|
2566
2566
|
/***/ }),
|
|
@@ -2649,6 +2649,7 @@ class ExpandMacros {
|
|
|
2649
2649
|
else if (type instanceof Statements.Include) {
|
|
2650
2650
|
const includeName = (_b = statement.findDirectExpression(Expressions.IncludeName)) === null || _b === void 0 ? void 0 : _b.concatTokens();
|
|
2651
2651
|
// todo, this does not take function module includes into account
|
|
2652
|
+
// todo, workaround for cyclic includes?
|
|
2652
2653
|
const prog = (_c = this.reg) === null || _c === void 0 ? void 0 : _c.getObject("PROG", includeName);
|
|
2653
2654
|
if (prog) {
|
|
2654
2655
|
prog.parse(this.version, this.globalMacros, this.reg);
|
|
@@ -6861,9 +6862,10 @@ class SQLCase extends combi_1.Expression {
|
|
|
6861
6862
|
getRunnable() {
|
|
6862
6863
|
const field = (0, combi_1.altPrio)(_1.SQLAggregation, SQLCase, _1.SQLFunction, _1.SQLPath, sql_field_name_1.SQLFieldName, constant_1.Constant);
|
|
6863
6864
|
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)));
|
|
6864
|
-
const
|
|
6865
|
-
const
|
|
6866
|
-
|
|
6865
|
+
const sourc = (0, combi_1.altPrio)(SQLCase, _1.SQLAggregation, _1.SQLFunction, sql_source_1.SQLSource);
|
|
6866
|
+
const when = (0, combi_1.seq)("WHEN", (0, combi_1.altPrio)(sql_cond_1.SQLCond, constant_1.Constant), "THEN", sourc, (0, combi_1.starPrio)(sub));
|
|
6867
|
+
const els = (0, combi_1.seq)("ELSE", sourc);
|
|
6868
|
+
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"));
|
|
6867
6869
|
}
|
|
6868
6870
|
}
|
|
6869
6871
|
exports.SQLCase = SQLCase;
|
|
@@ -6933,6 +6935,7 @@ exports.SQLCompare = void 0;
|
|
|
6933
6935
|
const combi_1 = __webpack_require__(/*! ../combi */ "./node_modules/@abaplint/core/build/src/abap/2_statements/combi.js");
|
|
6934
6936
|
const _1 = __webpack_require__(/*! . */ "./node_modules/@abaplint/core/build/src/abap/2_statements/expressions/index.js");
|
|
6935
6937
|
const version_1 = __webpack_require__(/*! ../../../version */ "./node_modules/@abaplint/core/build/src/version.js");
|
|
6938
|
+
const tokens_1 = __webpack_require__(/*! ../../1_lexer/tokens */ "./node_modules/@abaplint/core/build/src/abap/1_lexer/tokens/index.js");
|
|
6936
6939
|
class SQLCompare extends combi_1.Expression {
|
|
6937
6940
|
getRunnable() {
|
|
6938
6941
|
const subSelect = (0, combi_1.seq)("(", _1.Select, ")");
|
|
@@ -6942,7 +6945,9 @@ class SQLCompare extends combi_1.Expression {
|
|
|
6942
6945
|
const source = new _1.SQLSource();
|
|
6943
6946
|
const sub = (0, combi_1.seq)((0, combi_1.optPrio)((0, combi_1.altPrio)("ALL", "ANY", "SOME")), subSelect);
|
|
6944
6947
|
const arith = (0, combi_1.ver)(version_1.Version.v750, (0, combi_1.plusPrio)((0, combi_1.seq)((0, combi_1.altPrio)("+", "-", "*", "/"), _1.SQLFieldName)));
|
|
6945
|
-
const
|
|
6948
|
+
const paren = (0, combi_1.seq)((0, combi_1.tok)(tokens_1.ParenLeftW), _1.Source, (0, combi_1.tok)(tokens_1.WParenRightW));
|
|
6949
|
+
const at = (0, combi_1.ver)(version_1.Version.v740sp05, (0, combi_1.seq)((0, combi_1.tok)(tokens_1.WAt), (0, combi_1.altPrio)(_1.SimpleSource3, paren)));
|
|
6950
|
+
const rett = (0, combi_1.seq)((0, combi_1.altPrio)(_1.SQLFunction, (0, combi_1.seq)(_1.SQLFieldName, (0, combi_1.optPrio)(arith)), at), (0, combi_1.altPrio)((0, combi_1.seq)(_1.SQLCompareOperator, (0, combi_1.altPrio)(sub, source)), (0, combi_1.seq)((0, combi_1.optPrio)("NOT"), (0, combi_1.altPrio)(_1.SQLIn, like, between)), nul));
|
|
6946
6951
|
const exists = (0, combi_1.seq)("EXISTS", subSelect);
|
|
6947
6952
|
return (0, combi_1.altPrio)(exists, _1.Dynamic, rett);
|
|
6948
6953
|
}
|
|
@@ -7257,21 +7262,22 @@ const sql_aggregation_1 = __webpack_require__(/*! ./sql_aggregation */ "./node_m
|
|
|
7257
7262
|
class SQLFunction extends combi_1.Expression {
|
|
7258
7263
|
getRunnable() {
|
|
7259
7264
|
const paren = (0, combi_1.seq)((0, combi_1.tok)(tokens_1.ParenLeftW), source_1.Source, (0, combi_1.tok)(tokens_1.WParenRightW));
|
|
7260
|
-
const at = (0, combi_1.ver)(version_1.Version.v740sp05, (0, combi_1.seq)((0, combi_1.tok)(tokens_1.WAt), (0, combi_1.
|
|
7261
|
-
const param = (0, combi_1.
|
|
7265
|
+
const at = (0, combi_1.ver)(version_1.Version.v740sp05, (0, combi_1.seq)((0, combi_1.tok)(tokens_1.WAt), (0, combi_1.altPrio)(simple_source3_1.SimpleSource3, paren)));
|
|
7266
|
+
const param = (0, combi_1.altPrio)(SQLFunction, sql_aggregation_1.SQLAggregation, sql_field_name_1.SQLFieldName, sql_alias_field_1.SQLAliasField, constant_1.Constant, at);
|
|
7262
7267
|
const castTypes = (0, combi_1.altPrio)((0, combi_1.seq)("CHAR", (0, combi_1.tok)(tokens_1.ParenLeftW), integer_1.Integer, (0, combi_1.tok)(tokens_1.WParenRightW)), (0, combi_1.seq)("DEC", (0, combi_1.tok)(tokens_1.ParenLeftW), integer_1.Integer, ",", integer_1.Integer, (0, combi_1.tok)(tokens_1.WParenRightW)), "FLTP", "NUMC", "INT8");
|
|
7268
|
+
const commaParam = (0, combi_1.seq)(",", param);
|
|
7263
7269
|
const abs = (0, combi_1.ver)(version_1.Version.v740sp05, (0, combi_1.seq)("abs", (0, combi_1.tok)(tokens_1.ParenLeftW), param, (0, combi_1.tok)(tokens_1.WParenRightW)));
|
|
7264
7270
|
const cast = (0, combi_1.ver)(version_1.Version.v750, (0, combi_1.seq)("cast", (0, combi_1.tok)(tokens_1.ParenLeftW), param, "AS", castTypes, (0, combi_1.tok)(tokens_1.WParenRightW)));
|
|
7265
7271
|
const ceil = (0, combi_1.ver)(version_1.Version.v740sp05, (0, combi_1.seq)("ceil", (0, combi_1.tok)(tokens_1.ParenLeftW), param, (0, combi_1.tok)(tokens_1.WParenRightW)));
|
|
7266
|
-
const coalesce = (0, combi_1.ver)(version_1.Version.v740sp05, (0, combi_1.seq)("coalesce", (0, combi_1.tok)(tokens_1.ParenLeftW), param,
|
|
7267
|
-
const concat = (0, combi_1.ver)(version_1.Version.v750, (0, combi_1.seq)("concat", (0, combi_1.tok)(tokens_1.ParenLeftW), param,
|
|
7268
|
-
const div = (0, combi_1.ver)(version_1.Version.v740sp05, (0, combi_1.seq)("div", (0, combi_1.tok)(tokens_1.ParenLeftW), param,
|
|
7272
|
+
const coalesce = (0, combi_1.ver)(version_1.Version.v740sp05, (0, combi_1.seq)("coalesce", (0, combi_1.tok)(tokens_1.ParenLeftW), param, commaParam, (0, combi_1.optPrio)(commaParam), (0, combi_1.tok)(tokens_1.WParenRightW)));
|
|
7273
|
+
const concat = (0, combi_1.ver)(version_1.Version.v750, (0, combi_1.seq)("concat", (0, combi_1.tok)(tokens_1.ParenLeftW), param, commaParam, (0, combi_1.tok)(tokens_1.WParenRightW)));
|
|
7274
|
+
const div = (0, combi_1.ver)(version_1.Version.v740sp05, (0, combi_1.seq)("div", (0, combi_1.tok)(tokens_1.ParenLeftW), param, commaParam, (0, combi_1.tok)(tokens_1.WParenRightW)));
|
|
7269
7275
|
const floor = (0, combi_1.ver)(version_1.Version.v740sp05, (0, combi_1.seq)("floor", (0, combi_1.tok)(tokens_1.ParenLeftW), param, (0, combi_1.tok)(tokens_1.WParenRightW)));
|
|
7270
7276
|
const length = (0, combi_1.ver)(version_1.Version.v750, (0, combi_1.seq)("length", (0, combi_1.tok)(tokens_1.ParenLeftW), param, (0, combi_1.tok)(tokens_1.WParenRightW)));
|
|
7271
7277
|
const lower = (0, combi_1.ver)(version_1.Version.v751, (0, combi_1.seq)("lower", (0, combi_1.tok)(tokens_1.ParenLeftW), param, (0, combi_1.tok)(tokens_1.WParenRightW)));
|
|
7272
|
-
const mod = (0, combi_1.ver)(version_1.Version.v740sp05, (0, combi_1.seq)("mod", (0, combi_1.tok)(tokens_1.ParenLeftW), param,
|
|
7273
|
-
const replace = (0, combi_1.ver)(version_1.Version.v750, (0, combi_1.seq)("replace", (0, combi_1.tok)(tokens_1.ParenLeftW), param,
|
|
7274
|
-
const round = (0, combi_1.ver)(version_1.Version.v750, (0, combi_1.seq)("round", (0, combi_1.tok)(tokens_1.ParenLeftW), param,
|
|
7278
|
+
const mod = (0, combi_1.ver)(version_1.Version.v740sp05, (0, combi_1.seq)("mod", (0, combi_1.tok)(tokens_1.ParenLeftW), param, commaParam, (0, combi_1.tok)(tokens_1.WParenRightW)));
|
|
7279
|
+
const replace = (0, combi_1.ver)(version_1.Version.v750, (0, combi_1.seq)("replace", (0, combi_1.tok)(tokens_1.ParenLeftW), param, commaParam, commaParam, (0, combi_1.tok)(tokens_1.WParenRightW)));
|
|
7280
|
+
const round = (0, combi_1.ver)(version_1.Version.v750, (0, combi_1.seq)("round", (0, combi_1.tok)(tokens_1.ParenLeftW), param, commaParam, (0, combi_1.tok)(tokens_1.WParenRightW)));
|
|
7275
7281
|
const upper = (0, combi_1.ver)(version_1.Version.v751, (0, combi_1.seq)("upper", (0, combi_1.tok)(tokens_1.ParenLeftW), param, (0, combi_1.tok)(tokens_1.WParenRightW)));
|
|
7276
7282
|
const uuid = (0, combi_1.ver)(version_1.Version.v754, (0, combi_1.seq)("uuid", (0, combi_1.tok)(tokens_1.ParenLeftW), (0, combi_1.tok)(tokens_1.WParenRightW)));
|
|
7277
7283
|
return (0, combi_1.altPrio)(uuid, abs, ceil, floor, cast, div, mod, coalesce, concat, replace, length, lower, upper, round);
|
|
@@ -8214,7 +8220,7 @@ class TypeTable extends combi_1.Expression {
|
|
|
8214
8220
|
const normal1 = (0, combi_1.seq)((0, combi_1.opt)((0, combi_1.alt)("STANDARD", "HASHED", "INDEX", "SORTED", "ANY")), "TABLE OF", (0, combi_1.optPrio)("REF TO"), _1.TypeName);
|
|
8215
8221
|
const likeType = (0, combi_1.seq)((0, combi_1.opt)((0, combi_1.alt)("STANDARD", "HASHED", "INDEX", "SORTED", "ANY")), "TABLE OF", (0, combi_1.optPrio)("REF TO"), (0, combi_1.opt)(field_chain_1.FieldChain), (0, combi_1.opt)((0, combi_1.per)(header, initial, (0, combi_1.plusPrio)(type_table_key_1.TypeTableKey))));
|
|
8216
8222
|
const rangeType = (0, combi_1.seq)("RANGE OF", _1.TypeName, (0, combi_1.optPrio)(header), (0, combi_1.optPrio)(initial));
|
|
8217
|
-
const rangeLike = (0, combi_1.seq)("RANGE OF",
|
|
8223
|
+
const rangeLike = (0, combi_1.seq)("RANGE OF", field_chain_1.FieldChain, (0, combi_1.optPrio)(header), (0, combi_1.optPrio)(initial));
|
|
8218
8224
|
// a maximum of 15 secondary table keys can be defined
|
|
8219
8225
|
// "WITH" is not allowed as a field name in keys
|
|
8220
8226
|
const typetable = (0, combi_1.alt)(generic, (0, combi_1.seq)(normal1, (0, combi_1.alt)((0, combi_1.opt)((0, combi_1.per)(header, initial, (0, combi_1.plusPrio)(type_table_key_1.TypeTableKey))), (0, combi_1.seq)((0, combi_1.plus)(type_table_key_1.TypeTableKey), (0, combi_1.optPrio)(initial)))));
|
|
@@ -16915,7 +16921,13 @@ StructureParser.singletons = {};
|
|
|
16915
16921
|
"use strict";
|
|
16916
16922
|
|
|
16917
16923
|
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
16918
|
-
exports.
|
|
16924
|
+
exports.seq = seq;
|
|
16925
|
+
exports.alt = alt;
|
|
16926
|
+
exports.beginEnd = beginEnd;
|
|
16927
|
+
exports.opt = opt;
|
|
16928
|
+
exports.star = star;
|
|
16929
|
+
exports.sta = sta;
|
|
16930
|
+
exports.sub = sub;
|
|
16919
16931
|
const nodes_1 = __webpack_require__(/*! ../../nodes */ "./node_modules/@abaplint/core/build/src/abap/nodes/index.js");
|
|
16920
16932
|
const _statement_1 = __webpack_require__(/*! ../../2_statements/statements/_statement */ "./node_modules/@abaplint/core/build/src/abap/2_statements/statements/_statement.js");
|
|
16921
16933
|
class Sequence {
|
|
@@ -17223,27 +17235,21 @@ class SubStatement {
|
|
|
17223
17235
|
function seq(first, ...rest) {
|
|
17224
17236
|
return new Sequence([first].concat(rest));
|
|
17225
17237
|
}
|
|
17226
|
-
exports.seq = seq;
|
|
17227
17238
|
function alt(first, ...rest) {
|
|
17228
17239
|
return new Alternative([first].concat(rest));
|
|
17229
17240
|
}
|
|
17230
|
-
exports.alt = alt;
|
|
17231
17241
|
function beginEnd(begin, body, end) {
|
|
17232
17242
|
return new Sequence([begin, body, end]);
|
|
17233
17243
|
}
|
|
17234
|
-
exports.beginEnd = beginEnd;
|
|
17235
17244
|
function opt(o) {
|
|
17236
17245
|
return new Optional(o);
|
|
17237
17246
|
}
|
|
17238
|
-
exports.opt = opt;
|
|
17239
17247
|
function star(s) {
|
|
17240
17248
|
return new Star(s);
|
|
17241
17249
|
}
|
|
17242
|
-
exports.star = star;
|
|
17243
17250
|
function sta(s) {
|
|
17244
17251
|
return new SubStatement(s);
|
|
17245
17252
|
}
|
|
17246
|
-
exports.sta = sta;
|
|
17247
17253
|
const singletons = {};
|
|
17248
17254
|
function sub(s) {
|
|
17249
17255
|
if (singletons[s.name] === undefined) {
|
|
@@ -17251,7 +17257,6 @@ function sub(s) {
|
|
|
17251
17257
|
}
|
|
17252
17258
|
return singletons[s.name];
|
|
17253
17259
|
}
|
|
17254
|
-
exports.sub = sub;
|
|
17255
17260
|
//# sourceMappingURL=_combi.js.map
|
|
17256
17261
|
|
|
17257
17262
|
/***/ }),
|
|
@@ -17502,10 +17507,9 @@ const _combi_1 = __webpack_require__(/*! ./_combi */ "./node_modules/@abaplint/c
|
|
|
17502
17507
|
const private_section_1 = __webpack_require__(/*! ./private_section */ "./node_modules/@abaplint/core/build/src/abap/3_structures/structures/private_section.js");
|
|
17503
17508
|
const protected_section_1 = __webpack_require__(/*! ./protected_section */ "./node_modules/@abaplint/core/build/src/abap/3_structures/structures/protected_section.js");
|
|
17504
17509
|
const public_section_1 = __webpack_require__(/*! ./public_section */ "./node_modules/@abaplint/core/build/src/abap/3_structures/structures/public_section.js");
|
|
17505
|
-
const statements_1 = __webpack_require__(/*! ../../2_statements/statements */ "./node_modules/@abaplint/core/build/src/abap/2_statements/statements/index.js");
|
|
17506
17510
|
class ClassDefinition {
|
|
17507
17511
|
getMatcher() {
|
|
17508
|
-
const body = (0, _combi_1.seq)((0, _combi_1.opt)((0, _combi_1.sta)(
|
|
17512
|
+
const body = (0, _combi_1.seq)((0, _combi_1.opt)((0, _combi_1.sta)(Statements.SetExtendedCheck)), (0, _combi_1.star)((0, _combi_1.sta)(Statements.TypePools)), (0, _combi_1.opt)((0, _combi_1.sub)(public_section_1.PublicSection)), (0, _combi_1.star)((0, _combi_1.sta)(Statements.Include)), (0, _combi_1.opt)((0, _combi_1.sub)(protected_section_1.ProtectedSection)), (0, _combi_1.opt)((0, _combi_1.sub)(private_section_1.PrivateSection)), (0, _combi_1.opt)((0, _combi_1.sta)(Statements.SetExtendedCheck)));
|
|
17509
17513
|
return (0, _combi_1.beginEnd)((0, _combi_1.sta)(Statements.ClassDefinition), body, (0, _combi_1.sta)(Statements.EndClass));
|
|
17510
17514
|
}
|
|
17511
17515
|
}
|
|
@@ -22227,7 +22231,7 @@ class BasicTypes {
|
|
|
22227
22231
|
return new Types.TableType(structure, options, name);
|
|
22228
22232
|
}
|
|
22229
22233
|
else if (text.startsWith("LIKE RANGE OF ")) {
|
|
22230
|
-
const sub = node.findFirstExpression(Expressions.
|
|
22234
|
+
const sub = node.findFirstExpression(Expressions.FieldChain);
|
|
22231
22235
|
found = this.resolveLikeName(sub);
|
|
22232
22236
|
if (found === undefined) {
|
|
22233
22237
|
return new Types.UnknownType("LIKE RANGE OF, could not resolve type");
|
|
@@ -38784,7 +38788,10 @@ const cds_association_1 = __webpack_require__(/*! ./cds_association */ "./node_m
|
|
|
38784
38788
|
const cds_join_1 = __webpack_require__(/*! ./cds_join */ "./node_modules/@abaplint/core/build/src/cds/expressions/cds_join.js");
|
|
38785
38789
|
class CDSSelect extends combi_1.Expression {
|
|
38786
38790
|
getRunnable() {
|
|
38787
|
-
|
|
38791
|
+
const fields = (0, combi_1.opt)((0, combi_1.seq)((0, combi_1.star)((0, combi_1.seq)(_1.CDSElement, ",")), _1.CDSElement));
|
|
38792
|
+
const distinct = (0, combi_1.str)("DISTINCT");
|
|
38793
|
+
const elements = (0, combi_1.seq)((0, combi_1.str)("{"), (0, combi_1.plus)(_1.CDSElement), (0, combi_1.star)((0, combi_1.seq)(",", _1.CDSElement)), (0, combi_1.str)("}"));
|
|
38794
|
+
return (0, combi_1.seq)("SELECT", (0, combi_1.opt)(distinct), (0, combi_1.opt)(fields), "FROM", _1.CDSSource, (0, combi_1.opt)(_1.CDSParametersSelect), (0, combi_1.opt)(_1.CDSAs), (0, combi_1.star)(cds_join_1.CDSJoin), (0, combi_1.star)(_1.CDSComposition), (0, combi_1.star)(cds_association_1.CDSAssociation), (0, combi_1.star)(_1.CDSComposition), (0, combi_1.opt)(elements), (0, combi_1.opt)(_1.CDSGroupBy), (0, combi_1.opt)(_1.CDSWhere), (0, combi_1.opt)((0, combi_1.seq)("UNION", (0, combi_1.opt)("ALL"), CDSSelect)));
|
|
38788
38795
|
}
|
|
38789
38796
|
}
|
|
38790
38797
|
exports.CDSSelect = CDSSelect;
|
|
@@ -39941,7 +39948,9 @@ __exportStar(__webpack_require__(/*! ./ddl_type */ "./node_modules/@abaplint/cor
|
|
|
39941
39948
|
"use strict";
|
|
39942
39949
|
|
|
39943
39950
|
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
39944
|
-
exports.
|
|
39951
|
+
exports.EditHelper = exports.EditDraft = void 0;
|
|
39952
|
+
exports.applyEditSingle = applyEditSingle;
|
|
39953
|
+
exports.applyEditList = applyEditList;
|
|
39945
39954
|
const position_1 = __webpack_require__(/*! ./position */ "./node_modules/@abaplint/core/build/src/position.js");
|
|
39946
39955
|
const memory_file_1 = __webpack_require__(/*! ./files/memory_file */ "./node_modules/@abaplint/core/build/src/files/memory_file.js");
|
|
39947
39956
|
class EditDraft {
|
|
@@ -40159,7 +40168,6 @@ function applyEditSingle(reg, edit) {
|
|
|
40159
40168
|
reg.updateFile(result);
|
|
40160
40169
|
}
|
|
40161
40170
|
}
|
|
40162
|
-
exports.applyEditSingle = applyEditSingle;
|
|
40163
40171
|
/** returns list of filenames which were changed */
|
|
40164
40172
|
function applyEditList(reg, edits) {
|
|
40165
40173
|
const ret = [];
|
|
@@ -40189,7 +40197,6 @@ function applyEditList(reg, edits) {
|
|
|
40189
40197
|
}
|
|
40190
40198
|
return ret;
|
|
40191
40199
|
}
|
|
40192
|
-
exports.applyEditList = applyEditList;
|
|
40193
40200
|
//# sourceMappingURL=edit_helper.js.map
|
|
40194
40201
|
|
|
40195
40202
|
/***/ }),
|
|
@@ -40286,8 +40293,8 @@ exports.MemoryFile = MemoryFile;
|
|
|
40286
40293
|
"use strict";
|
|
40287
40294
|
|
|
40288
40295
|
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
40289
|
-
exports.
|
|
40290
|
-
exports.LSPEdit = exports.RuleTag = exports.Severity = exports.Visibility = void 0;
|
|
40296
|
+
exports.PrettyPrinter = exports.Position = exports.CurrentScope = exports.ABAPFile = exports.RulesRunner = exports.SpaghettiScope = exports.SyntaxLogic = exports.ABAPObject = exports.Tokens = exports.ExpressionsCDS = exports.CDSParser = exports.LanguageServerTypes = exports.DDLParser = exports.NativeSQL = exports.MacroContent = exports.MacroCall = exports.applyEditList = exports.applyEditSingle = exports.SpaghettiScopeNode = exports.AbstractFile = exports.Token = exports.ScopeType = exports.BasicTypes = exports.TypedIdentifier = exports.AbstractType = exports.VirtualPosition = exports.Comment = exports.Unknown = exports.Empty = exports.Identifier = exports.Nodes = exports.Types = exports.Expressions = exports.Statements = exports.Structures = exports.SkipLogic = exports.Objects = exports.ArtifactsRules = exports.ArtifactsObjects = exports.ArtifactsABAP = exports.BuiltIn = exports.MethodLengthStats = exports.LanguageServer = exports.Registry = exports.CyclomaticComplexityStats = exports.ReferenceType = exports.Version = exports.Config = exports.Issue = exports.MemoryFile = void 0;
|
|
40297
|
+
exports.LSPEdit = exports.RuleTag = exports.Severity = exports.Visibility = exports.Info = exports.Diagnostics = exports.Rename = void 0;
|
|
40291
40298
|
const issue_1 = __webpack_require__(/*! ./issue */ "./node_modules/@abaplint/core/build/src/issue.js");
|
|
40292
40299
|
Object.defineProperty(exports, "Issue", ({ enumerable: true, get: function () { return issue_1.Issue; } }));
|
|
40293
40300
|
const config_1 = __webpack_require__(/*! ./config */ "./node_modules/@abaplint/core/build/src/config.js");
|
|
@@ -40355,6 +40362,9 @@ const _statement_1 = __webpack_require__(/*! ./abap/2_statements/statements/_sta
|
|
|
40355
40362
|
Object.defineProperty(exports, "Empty", ({ enumerable: true, get: function () { return _statement_1.Empty; } }));
|
|
40356
40363
|
Object.defineProperty(exports, "Unknown", ({ enumerable: true, get: function () { return _statement_1.Unknown; } }));
|
|
40357
40364
|
Object.defineProperty(exports, "Comment", ({ enumerable: true, get: function () { return _statement_1.Comment; } }));
|
|
40365
|
+
Object.defineProperty(exports, "MacroCall", ({ enumerable: true, get: function () { return _statement_1.MacroCall; } }));
|
|
40366
|
+
Object.defineProperty(exports, "MacroContent", ({ enumerable: true, get: function () { return _statement_1.MacroContent; } }));
|
|
40367
|
+
Object.defineProperty(exports, "NativeSQL", ({ enumerable: true, get: function () { return _statement_1.NativeSQL; } }));
|
|
40358
40368
|
const edit_helper_1 = __webpack_require__(/*! ./edit_helper */ "./node_modules/@abaplint/core/build/src/edit_helper.js");
|
|
40359
40369
|
Object.defineProperty(exports, "applyEditSingle", ({ enumerable: true, get: function () { return edit_helper_1.applyEditSingle; } }));
|
|
40360
40370
|
Object.defineProperty(exports, "applyEditList", ({ enumerable: true, get: function () { return edit_helper_1.applyEditList; } }));
|
|
@@ -50715,7 +50725,7 @@ class Registry {
|
|
|
50715
50725
|
}
|
|
50716
50726
|
static abaplintVersion() {
|
|
50717
50727
|
// magic, see build script "version.sh"
|
|
50718
|
-
return "2.
|
|
50728
|
+
return "2.110.6";
|
|
50719
50729
|
}
|
|
50720
50730
|
getDDICReferences() {
|
|
50721
50731
|
return this.ddicReferences;
|
|
@@ -61457,7 +61467,6 @@ __exportStar(__webpack_require__(/*! ./cds_legacy_view */ "./node_modules/@abapl
|
|
|
61457
61467
|
__exportStar(__webpack_require__(/*! ./cds_parser_error */ "./node_modules/@abaplint/core/build/src/rules/cds_parser_error.js"), exports);
|
|
61458
61468
|
__exportStar(__webpack_require__(/*! ./chain_mainly_declarations */ "./node_modules/@abaplint/core/build/src/rules/chain_mainly_declarations.js"), exports);
|
|
61459
61469
|
__exportStar(__webpack_require__(/*! ./change_if_to_case */ "./node_modules/@abaplint/core/build/src/rules/change_if_to_case.js"), exports);
|
|
61460
|
-
__exportStar(__webpack_require__(/*! ./unused_macros */ "./node_modules/@abaplint/core/build/src/rules/unused_macros.js"), exports);
|
|
61461
61470
|
__exportStar(__webpack_require__(/*! ./check_abstract */ "./node_modules/@abaplint/core/build/src/rules/check_abstract.js"), exports);
|
|
61462
61471
|
__exportStar(__webpack_require__(/*! ./check_comments */ "./node_modules/@abaplint/core/build/src/rules/check_comments.js"), exports);
|
|
61463
61472
|
__exportStar(__webpack_require__(/*! ./check_ddic */ "./node_modules/@abaplint/core/build/src/rules/check_ddic.js"), exports);
|
|
@@ -61519,6 +61528,7 @@ __exportStar(__webpack_require__(/*! ./line_only_punc */ "./node_modules/@abapli
|
|
|
61519
61528
|
__exportStar(__webpack_require__(/*! ./local_class_naming */ "./node_modules/@abaplint/core/build/src/rules/local_class_naming.js"), exports);
|
|
61520
61529
|
__exportStar(__webpack_require__(/*! ./local_testclass_consistency */ "./node_modules/@abaplint/core/build/src/rules/local_testclass_consistency.js"), exports);
|
|
61521
61530
|
__exportStar(__webpack_require__(/*! ./local_variable_names */ "./node_modules/@abaplint/core/build/src/rules/local_variable_names.js"), exports);
|
|
61531
|
+
__exportStar(__webpack_require__(/*! ./macro_naming */ "./node_modules/@abaplint/core/build/src/rules/macro_naming.js"), exports);
|
|
61522
61532
|
__exportStar(__webpack_require__(/*! ./main_file_contents */ "./node_modules/@abaplint/core/build/src/rules/main_file_contents.js"), exports);
|
|
61523
61533
|
__exportStar(__webpack_require__(/*! ./many_parentheses */ "./node_modules/@abaplint/core/build/src/rules/many_parentheses.js"), exports);
|
|
61524
61534
|
__exportStar(__webpack_require__(/*! ./max_one_method_parameter_per_line */ "./node_modules/@abaplint/core/build/src/rules/max_one_method_parameter_per_line.js"), exports);
|
|
@@ -61596,6 +61606,7 @@ __exportStar(__webpack_require__(/*! ./unnecessary_return */ "./node_modules/@ab
|
|
|
61596
61606
|
__exportStar(__webpack_require__(/*! ./unreachable_code */ "./node_modules/@abaplint/core/build/src/rules/unreachable_code.js"), exports);
|
|
61597
61607
|
__exportStar(__webpack_require__(/*! ./unsecure_fae */ "./node_modules/@abaplint/core/build/src/rules/unsecure_fae.js"), exports);
|
|
61598
61608
|
__exportStar(__webpack_require__(/*! ./unused_ddic */ "./node_modules/@abaplint/core/build/src/rules/unused_ddic.js"), exports);
|
|
61609
|
+
__exportStar(__webpack_require__(/*! ./unused_macros */ "./node_modules/@abaplint/core/build/src/rules/unused_macros.js"), exports);
|
|
61599
61610
|
__exportStar(__webpack_require__(/*! ./unused_methods */ "./node_modules/@abaplint/core/build/src/rules/unused_methods.js"), exports);
|
|
61600
61611
|
__exportStar(__webpack_require__(/*! ./unused_types */ "./node_modules/@abaplint/core/build/src/rules/unused_types.js"), exports);
|
|
61601
61612
|
__exportStar(__webpack_require__(/*! ./unused_variables */ "./node_modules/@abaplint/core/build/src/rules/unused_variables.js"), exports);
|
|
@@ -62932,6 +62943,83 @@ exports.LocalVariableNames = LocalVariableNames;
|
|
|
62932
62943
|
|
|
62933
62944
|
/***/ }),
|
|
62934
62945
|
|
|
62946
|
+
/***/ "./node_modules/@abaplint/core/build/src/rules/macro_naming.js":
|
|
62947
|
+
/*!*********************************************************************!*\
|
|
62948
|
+
!*** ./node_modules/@abaplint/core/build/src/rules/macro_naming.js ***!
|
|
62949
|
+
\*********************************************************************/
|
|
62950
|
+
/***/ ((__unused_webpack_module, exports, __webpack_require__) => {
|
|
62951
|
+
|
|
62952
|
+
"use strict";
|
|
62953
|
+
|
|
62954
|
+
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
62955
|
+
exports.MacroNaming = exports.MacroNamingConf = void 0;
|
|
62956
|
+
const issue_1 = __webpack_require__(/*! ../issue */ "./node_modules/@abaplint/core/build/src/issue.js");
|
|
62957
|
+
const _abap_rule_1 = __webpack_require__(/*! ./_abap_rule */ "./node_modules/@abaplint/core/build/src/rules/_abap_rule.js");
|
|
62958
|
+
const Statements = __webpack_require__(/*! ../abap/2_statements/statements */ "./node_modules/@abaplint/core/build/src/abap/2_statements/statements/index.js");
|
|
62959
|
+
const Expressions = __webpack_require__(/*! ../abap/2_statements/expressions */ "./node_modules/@abaplint/core/build/src/abap/2_statements/expressions/index.js");
|
|
62960
|
+
const _basic_rule_config_1 = __webpack_require__(/*! ./_basic_rule_config */ "./node_modules/@abaplint/core/build/src/rules/_basic_rule_config.js");
|
|
62961
|
+
const _irule_1 = __webpack_require__(/*! ./_irule */ "./node_modules/@abaplint/core/build/src/rules/_irule.js");
|
|
62962
|
+
const objects_1 = __webpack_require__(/*! ../objects */ "./node_modules/@abaplint/core/build/src/objects/index.js");
|
|
62963
|
+
class MacroNamingConf extends _basic_rule_config_1.BasicRuleConfig {
|
|
62964
|
+
constructor() {
|
|
62965
|
+
super(...arguments);
|
|
62966
|
+
/** The pattern for macros, case insensitive */
|
|
62967
|
+
this.pattern = "^_.+$";
|
|
62968
|
+
}
|
|
62969
|
+
}
|
|
62970
|
+
exports.MacroNamingConf = MacroNamingConf;
|
|
62971
|
+
class MacroNaming extends _abap_rule_1.ABAPRule {
|
|
62972
|
+
constructor() {
|
|
62973
|
+
super(...arguments);
|
|
62974
|
+
this.conf = new MacroNamingConf();
|
|
62975
|
+
}
|
|
62976
|
+
getMetadata() {
|
|
62977
|
+
return {
|
|
62978
|
+
key: "macro_naming",
|
|
62979
|
+
title: "Macro naming conventions",
|
|
62980
|
+
shortDescription: `Allows you to enforce a pattern for macro definitions`,
|
|
62981
|
+
extendedInformation: `Use rule "avoid_use" to avoid macros alotogether.`,
|
|
62982
|
+
tags: [_irule_1.RuleTag.Naming, _irule_1.RuleTag.SingleFile],
|
|
62983
|
+
};
|
|
62984
|
+
}
|
|
62985
|
+
getConfig() {
|
|
62986
|
+
return this.conf;
|
|
62987
|
+
}
|
|
62988
|
+
setConfig(conf) {
|
|
62989
|
+
this.conf = conf;
|
|
62990
|
+
}
|
|
62991
|
+
runParsed(file, obj) {
|
|
62992
|
+
const issues = [];
|
|
62993
|
+
const testRegex = new RegExp(this.conf.pattern, "i");
|
|
62994
|
+
if (obj instanceof objects_1.TypePool) {
|
|
62995
|
+
return [];
|
|
62996
|
+
}
|
|
62997
|
+
for (const stat of file.getStatements()) {
|
|
62998
|
+
if (!(stat.get() instanceof Statements.Define)) {
|
|
62999
|
+
continue;
|
|
63000
|
+
}
|
|
63001
|
+
const expr = stat.findDirectExpression(Expressions.MacroName);
|
|
63002
|
+
if (expr === undefined) {
|
|
63003
|
+
continue;
|
|
63004
|
+
}
|
|
63005
|
+
const token = expr.getFirstToken();
|
|
63006
|
+
if (testRegex.exec(token.getStr())) {
|
|
63007
|
+
continue;
|
|
63008
|
+
}
|
|
63009
|
+
else {
|
|
63010
|
+
const message = "Bad macro name naming, expected \"" + this.conf.pattern + "\", got \"" + token.getStr() + "\"";
|
|
63011
|
+
const issue = issue_1.Issue.atToken(file, token, message, this.getMetadata().key, this.conf.severity);
|
|
63012
|
+
issues.push(issue);
|
|
63013
|
+
}
|
|
63014
|
+
}
|
|
63015
|
+
return issues;
|
|
63016
|
+
}
|
|
63017
|
+
}
|
|
63018
|
+
exports.MacroNaming = MacroNaming;
|
|
63019
|
+
//# sourceMappingURL=macro_naming.js.map
|
|
63020
|
+
|
|
63021
|
+
/***/ }),
|
|
63022
|
+
|
|
62935
63023
|
/***/ "./node_modules/@abaplint/core/build/src/rules/main_file_contents.js":
|
|
62936
63024
|
/*!***************************************************************************!*\
|
|
62937
63025
|
!*** ./node_modules/@abaplint/core/build/src/rules/main_file_contents.js ***!
|
|
@@ -65847,7 +65935,7 @@ ENDIF.`,
|
|
|
65847
65935
|
const children = statementNode.getChildren();
|
|
65848
65936
|
const sourceString = children[1].concatTokens();
|
|
65849
65937
|
const targetString = children[3].concatTokens();
|
|
65850
|
-
let operator = children[2].concatTokens();
|
|
65938
|
+
let operator = children[2].concatTokens().toUpperCase();
|
|
65851
65939
|
if (operator === "TO") {
|
|
65852
65940
|
operator = " = ";
|
|
65853
65941
|
}
|
|
@@ -68081,11 +68169,9 @@ class RFCErrorHandling extends _abap_rule_1.ABAPRule {
|
|
|
68081
68169
|
tags: [_irule_1.RuleTag.SingleFile],
|
|
68082
68170
|
shortDescription: `Checks that exceptions 'system_failure' and 'communication_failure' are handled in RFC calls`,
|
|
68083
68171
|
extendedInformation: `https://help.sap.com/doc/abapdocu_750_index_htm/7.50/en-US/abenrfc_exception.htm`,
|
|
68084
|
-
badExample: `
|
|
68085
|
-
CALL FUNCTION 'ZRFC'
|
|
68172
|
+
badExample: `CALL FUNCTION 'ZRFC'
|
|
68086
68173
|
DESTINATION lv_rfc.`,
|
|
68087
|
-
goodExample: `
|
|
68088
|
-
CALL FUNCTION 'ZRFC'
|
|
68174
|
+
goodExample: `CALL FUNCTION 'ZRFC'
|
|
68089
68175
|
DESTINATION lv_rfc
|
|
68090
68176
|
EXCEPTIONS
|
|
68091
68177
|
system_failure = 1 MESSAGE msg
|
|
@@ -70192,7 +70278,7 @@ const objects_1 = __webpack_require__(/*! ../objects */ "./node_modules/@abaplin
|
|
|
70192
70278
|
class TypesNamingConf extends _basic_rule_config_1.BasicRuleConfig {
|
|
70193
70279
|
constructor() {
|
|
70194
70280
|
super(...arguments);
|
|
70195
|
-
/** The pattern for TYPES */
|
|
70281
|
+
/** The pattern for TYPES, case insensitive */
|
|
70196
70282
|
this.pattern = "^TY_.+$";
|
|
70197
70283
|
}
|
|
70198
70284
|
}
|
|
@@ -73557,7 +73643,8 @@ exports.NameValidator = NameValidator;
|
|
|
73557
73643
|
"use strict";
|
|
73558
73644
|
|
|
73559
73645
|
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
73560
|
-
exports.
|
|
73646
|
+
exports.defaultVersion = exports.Version = void 0;
|
|
73647
|
+
exports.getPreviousVersion = getPreviousVersion;
|
|
73561
73648
|
var Version;
|
|
73562
73649
|
(function (Version) {
|
|
73563
73650
|
Version["OpenABAP"] = "open-abap";
|
|
@@ -73592,7 +73679,6 @@ function getPreviousVersion(v) {
|
|
|
73592
73679
|
}
|
|
73593
73680
|
return all[found - 1];
|
|
73594
73681
|
}
|
|
73595
|
-
exports.getPreviousVersion = getPreviousVersion;
|
|
73596
73682
|
//# sourceMappingURL=version.js.map
|
|
73597
73683
|
|
|
73598
73684
|
/***/ }),
|
|
@@ -73637,7 +73723,8 @@ exports.VirtualPosition = VirtualPosition;
|
|
|
73637
73723
|
"use strict";
|
|
73638
73724
|
|
|
73639
73725
|
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
73640
|
-
exports.
|
|
73726
|
+
exports.xmlToArray = xmlToArray;
|
|
73727
|
+
exports.unescape = unescape;
|
|
73641
73728
|
function xmlToArray(data) {
|
|
73642
73729
|
if (data === undefined) {
|
|
73643
73730
|
return [];
|
|
@@ -73649,7 +73736,6 @@ function xmlToArray(data) {
|
|
|
73649
73736
|
return [data];
|
|
73650
73737
|
}
|
|
73651
73738
|
}
|
|
73652
|
-
exports.xmlToArray = xmlToArray;
|
|
73653
73739
|
function unescape(str) {
|
|
73654
73740
|
if (str === undefined) {
|
|
73655
73741
|
return "";
|
|
@@ -73661,7 +73747,6 @@ function unescape(str) {
|
|
|
73661
73747
|
str = str.replace(/'/g, "'");
|
|
73662
73748
|
return str;
|
|
73663
73749
|
}
|
|
73664
|
-
exports.unescape = unescape;
|
|
73665
73750
|
//# sourceMappingURL=xml_utils.js.map
|
|
73666
73751
|
|
|
73667
73752
|
/***/ }),
|
|
@@ -75879,7 +75964,7 @@ class MethodSourceTranspiler {
|
|
|
75879
75964
|
else if (call.endsWith(".") === false) {
|
|
75880
75965
|
call += ".";
|
|
75881
75966
|
}
|
|
75882
|
-
call += second.getFirstToken().getStr().replace(
|
|
75967
|
+
call += second.getFirstToken().getStr().replace(/[\'\`]/g, "").toLowerCase().replace("~", "$").trimEnd();
|
|
75883
75968
|
}
|
|
75884
75969
|
else {
|
|
75885
75970
|
ret.appendString("MethodSourceTranspiler-Unexpected");
|
|
@@ -77955,7 +78040,12 @@ class Keywords {
|
|
|
77955
78040
|
for (const f of o.getABAPFiles()) {
|
|
77956
78041
|
const tokens = [];
|
|
77957
78042
|
for (const s of f.getStatements()) {
|
|
77958
|
-
|
|
78043
|
+
if (s.get() instanceof abaplint.MacroCall) {
|
|
78044
|
+
tokens.push(...this.handleMacro(s));
|
|
78045
|
+
}
|
|
78046
|
+
else {
|
|
78047
|
+
tokens.push(...this.traverse(s, f));
|
|
78048
|
+
}
|
|
77959
78049
|
}
|
|
77960
78050
|
if (tokens.length === 0) {
|
|
77961
78051
|
continue;
|
|
@@ -77971,6 +78061,20 @@ class Keywords {
|
|
|
77971
78061
|
}
|
|
77972
78062
|
reg.parse();
|
|
77973
78063
|
}
|
|
78064
|
+
handleMacro(node) {
|
|
78065
|
+
const tokens = [];
|
|
78066
|
+
for (const token of node.getTokens()) {
|
|
78067
|
+
for (const k of this.keywords) {
|
|
78068
|
+
const lower = token.getStr().toLowerCase();
|
|
78069
|
+
if (k === lower
|
|
78070
|
+
|| "!" + k === lower
|
|
78071
|
+
|| lower.endsWith("~" + k)) {
|
|
78072
|
+
tokens.push(token);
|
|
78073
|
+
}
|
|
78074
|
+
}
|
|
78075
|
+
}
|
|
78076
|
+
return tokens;
|
|
78077
|
+
}
|
|
77974
78078
|
traverse(node, file) {
|
|
77975
78079
|
const ret = [];
|
|
77976
78080
|
for (const c of node.getChildren()) {
|
|
@@ -81081,7 +81185,8 @@ exports.InitializationTranspiler = InitializationTranspiler;
|
|
|
81081
81185
|
"use strict";
|
|
81082
81186
|
|
|
81083
81187
|
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
81084
|
-
exports.
|
|
81188
|
+
exports.InsertDatabaseTranspiler = void 0;
|
|
81189
|
+
exports.findConnection = findConnection;
|
|
81085
81190
|
const abaplint = __webpack_require__(/*! @abaplint/core */ "./node_modules/@abaplint/core/build/src/index.js");
|
|
81086
81191
|
const chunk_1 = __webpack_require__(/*! ../chunk */ "./node_modules/@abaplint/transpiler/build/src/chunk.js");
|
|
81087
81192
|
const expressions_1 = __webpack_require__(/*! ../expressions */ "./node_modules/@abaplint/transpiler/build/src/expressions/index.js");
|
|
@@ -81125,7 +81230,6 @@ function findConnection(connection) {
|
|
|
81125
81230
|
}
|
|
81126
81231
|
return con;
|
|
81127
81232
|
}
|
|
81128
|
-
exports.findConnection = findConnection;
|
|
81129
81233
|
//# sourceMappingURL=insert_database.js.map
|
|
81130
81234
|
|
|
81131
81235
|
/***/ }),
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@abaplint/transpiler-cli",
|
|
3
|
-
"version": "2.8.
|
|
3
|
+
"version": "2.8.29",
|
|
4
4
|
"description": "Transpiler - Command Line Interface",
|
|
5
5
|
"funding": "https://github.com/sponsors/larshp",
|
|
6
6
|
"bin": {
|
|
@@ -26,15 +26,15 @@
|
|
|
26
26
|
"author": "abaplint",
|
|
27
27
|
"license": "MIT",
|
|
28
28
|
"devDependencies": {
|
|
29
|
-
"@abaplint/transpiler": "^2.8.
|
|
29
|
+
"@abaplint/transpiler": "^2.8.29",
|
|
30
30
|
"@types/glob": "^8.1.0",
|
|
31
31
|
"glob": "=7.2.0",
|
|
32
32
|
"@types/progress": "^2.0.7",
|
|
33
|
-
"@types/node": "^20.14.
|
|
34
|
-
"@abaplint/core": "^2.
|
|
33
|
+
"@types/node": "^20.14.10",
|
|
34
|
+
"@abaplint/core": "^2.110.6",
|
|
35
35
|
"progress": "^2.0.3",
|
|
36
|
-
"webpack": "^5.
|
|
36
|
+
"webpack": "^5.92.1",
|
|
37
37
|
"webpack-cli": "^5.1.4",
|
|
38
|
-
"typescript": "^5.
|
|
38
|
+
"typescript": "^5.5.3"
|
|
39
39
|
}
|
|
40
40
|
}
|