@abaplint/cli 2.110.0 → 2.110.2

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.
Files changed (2) hide show
  1. package/build/cli.js +42 -41
  2. package/package.json +8 -8
package/build/cli.js CHANGED
@@ -824,7 +824,8 @@ exports.Total = Total;
824
824
  "use strict";
825
825
 
826
826
  Object.defineProperty(exports, "__esModule", ({ value: true }));
827
- exports.run = exports.GENERIC_ERROR = void 0;
827
+ exports.GENERIC_ERROR = void 0;
828
+ exports.run = run;
828
829
  const fs = __webpack_require__(/*! fs */ "fs");
829
830
  const os = __webpack_require__(/*! os */ "os");
830
831
  const path = __webpack_require__(/*! path */ "path");
@@ -1033,7 +1034,6 @@ async function run(arg) {
1033
1034
  }
1034
1035
  return { output, issues, reg };
1035
1036
  }
1036
- exports.run = run;
1037
1037
  //# sourceMappingURL=index.js.map
1038
1038
 
1039
1039
  /***/ }),
@@ -2711,7 +2711,24 @@ exports.WStaticArrowW = WStaticArrowW;
2711
2711
  "use strict";
2712
2712
 
2713
2713
  Object.defineProperty(exports, "__esModule", ({ value: true }));
2714
- exports.failStar = exports.failCombinator = exports.verNot = exports.ver = exports.plusPrio = exports.plus = exports.starPrio = exports.star = exports.per = exports.optPrio = exports.opt = exports.altPrio = exports.alt = exports.seq = exports.tok = exports.regex = exports.str = exports.Combi = exports.Expression = void 0;
2714
+ exports.Combi = exports.Expression = void 0;
2715
+ exports.str = str;
2716
+ exports.regex = regex;
2717
+ exports.tok = tok;
2718
+ exports.seq = seq;
2719
+ exports.alt = alt;
2720
+ exports.altPrio = altPrio;
2721
+ exports.opt = opt;
2722
+ exports.optPrio = optPrio;
2723
+ exports.per = per;
2724
+ exports.star = star;
2725
+ exports.starPrio = starPrio;
2726
+ exports.plus = plus;
2727
+ exports.plusPrio = plusPrio;
2728
+ exports.ver = ver;
2729
+ exports.verNot = verNot;
2730
+ exports.failCombinator = failCombinator;
2731
+ exports.failStar = failStar;
2715
2732
  const Tokens = __webpack_require__(/*! ../1_lexer/tokens */ "./node_modules/@abaplint/core/build/src/abap/1_lexer/tokens/index.js");
2716
2733
  const nodes_1 = __webpack_require__(/*! ../nodes */ "./node_modules/@abaplint/core/build/src/abap/nodes/index.js");
2717
2734
  const version_1 = __webpack_require__(/*! ../../version */ "./node_modules/@abaplint/core/build/src/version.js");
@@ -3524,15 +3541,12 @@ function str(s) {
3524
3541
  return new Word(s);
3525
3542
  }
3526
3543
  }
3527
- exports.str = str;
3528
3544
  function regex(r) {
3529
3545
  return new Regex(r);
3530
3546
  }
3531
- exports.regex = regex;
3532
3547
  function tok(t) {
3533
3548
  return new Token(t.name);
3534
3549
  }
3535
- exports.tok = tok;
3536
3550
  const expressionSingletons = {};
3537
3551
  const stringSingletons = {};
3538
3552
  function map(s) {
@@ -3561,65 +3575,51 @@ function seq(first, second, ...rest) {
3561
3575
  list.push(...rest.map(map));
3562
3576
  return new Sequence(list);
3563
3577
  }
3564
- exports.seq = seq;
3565
3578
  function alt(first, second, ...rest) {
3566
3579
  const list = [map(first), map(second)];
3567
3580
  list.push(...rest.map(map));
3568
3581
  return new Alternative(list);
3569
3582
  }
3570
- exports.alt = alt;
3571
3583
  function altPrio(first, second, ...rest) {
3572
3584
  const list = [map(first), map(second)];
3573
3585
  list.push(...rest.map(map));
3574
3586
  return new AlternativePriority(list);
3575
3587
  }
3576
- exports.altPrio = altPrio;
3577
3588
  function opt(first) {
3578
3589
  return new Optional(map(first));
3579
3590
  }
3580
- exports.opt = opt;
3581
3591
  function optPrio(first) {
3582
3592
  return new OptionalPriority(map(first));
3583
3593
  }
3584
- exports.optPrio = optPrio;
3585
3594
  function per(first, second, ...rest) {
3586
3595
  const list = [map(first), map(second)];
3587
3596
  list.push(...rest.map(map));
3588
3597
  return new Permutation(list);
3589
3598
  }
3590
- exports.per = per;
3591
3599
  function star(first) {
3592
3600
  return new Star(map(first));
3593
3601
  }
3594
- exports.star = star;
3595
3602
  function starPrio(first) {
3596
3603
  return new StarPriority(map(first));
3597
3604
  }
3598
- exports.starPrio = starPrio;
3599
3605
  function plus(first) {
3600
3606
  return new Plus(map(first));
3601
3607
  }
3602
- exports.plus = plus;
3603
3608
  function plusPrio(first) {
3604
3609
  return new PlusPriority(map(first));
3605
3610
  }
3606
- exports.plusPrio = plusPrio;
3607
3611
  function ver(version, first, or) {
3608
3612
  return new Vers(version, map(first), or);
3609
3613
  }
3610
- exports.ver = ver;
3611
3614
  function verNot(version, first) {
3612
3615
  return new VersNot(version, map(first));
3613
3616
  }
3614
- exports.verNot = verNot;
3615
3617
  function failCombinator() {
3616
3618
  return new FailCombinator();
3617
3619
  }
3618
- exports.failCombinator = failCombinator;
3619
3620
  function failStar() {
3620
3621
  return new FailStar();
3621
3622
  }
3622
- exports.failStar = failStar;
3623
3623
  //# sourceMappingURL=combi.js.map
3624
3624
 
3625
3625
  /***/ }),
@@ -3708,6 +3708,7 @@ class ExpandMacros {
3708
3708
  else if (type instanceof Statements.Include) {
3709
3709
  const includeName = (_b = statement.findDirectExpression(Expressions.IncludeName)) === null || _b === void 0 ? void 0 : _b.concatTokens();
3710
3710
  // todo, this does not take function module includes into account
3711
+ // todo, workaround for cyclic includes?
3711
3712
  const prog = (_c = this.reg) === null || _c === void 0 ? void 0 : _c.getObject("PROG", includeName);
3712
3713
  if (prog) {
3713
3714
  prog.parse(this.version, this.globalMacros, this.reg);
@@ -17974,7 +17975,13 @@ StructureParser.singletons = {};
17974
17975
  "use strict";
17975
17976
 
17976
17977
  Object.defineProperty(exports, "__esModule", ({ value: true }));
17977
- exports.sub = exports.sta = exports.star = exports.opt = exports.beginEnd = exports.alt = exports.seq = void 0;
17978
+ exports.seq = seq;
17979
+ exports.alt = alt;
17980
+ exports.beginEnd = beginEnd;
17981
+ exports.opt = opt;
17982
+ exports.star = star;
17983
+ exports.sta = sta;
17984
+ exports.sub = sub;
17978
17985
  const nodes_1 = __webpack_require__(/*! ../../nodes */ "./node_modules/@abaplint/core/build/src/abap/nodes/index.js");
17979
17986
  const _statement_1 = __webpack_require__(/*! ../../2_statements/statements/_statement */ "./node_modules/@abaplint/core/build/src/abap/2_statements/statements/_statement.js");
17980
17987
  class Sequence {
@@ -18282,27 +18289,21 @@ class SubStatement {
18282
18289
  function seq(first, ...rest) {
18283
18290
  return new Sequence([first].concat(rest));
18284
18291
  }
18285
- exports.seq = seq;
18286
18292
  function alt(first, ...rest) {
18287
18293
  return new Alternative([first].concat(rest));
18288
18294
  }
18289
- exports.alt = alt;
18290
18295
  function beginEnd(begin, body, end) {
18291
18296
  return new Sequence([begin, body, end]);
18292
18297
  }
18293
- exports.beginEnd = beginEnd;
18294
18298
  function opt(o) {
18295
18299
  return new Optional(o);
18296
18300
  }
18297
- exports.opt = opt;
18298
18301
  function star(s) {
18299
18302
  return new Star(s);
18300
18303
  }
18301
- exports.star = star;
18302
18304
  function sta(s) {
18303
18305
  return new SubStatement(s);
18304
18306
  }
18305
- exports.sta = sta;
18306
18307
  const singletons = {};
18307
18308
  function sub(s) {
18308
18309
  if (singletons[s.name] === undefined) {
@@ -18310,7 +18311,6 @@ function sub(s) {
18310
18311
  }
18311
18312
  return singletons[s.name];
18312
18313
  }
18313
- exports.sub = sub;
18314
18314
  //# sourceMappingURL=_combi.js.map
18315
18315
 
18316
18316
  /***/ }),
@@ -18561,10 +18561,9 @@ const _combi_1 = __webpack_require__(/*! ./_combi */ "./node_modules/@abaplint/c
18561
18561
  const private_section_1 = __webpack_require__(/*! ./private_section */ "./node_modules/@abaplint/core/build/src/abap/3_structures/structures/private_section.js");
18562
18562
  const protected_section_1 = __webpack_require__(/*! ./protected_section */ "./node_modules/@abaplint/core/build/src/abap/3_structures/structures/protected_section.js");
18563
18563
  const public_section_1 = __webpack_require__(/*! ./public_section */ "./node_modules/@abaplint/core/build/src/abap/3_structures/structures/public_section.js");
18564
- const statements_1 = __webpack_require__(/*! ../../2_statements/statements */ "./node_modules/@abaplint/core/build/src/abap/2_statements/statements/index.js");
18565
18564
  class ClassDefinition {
18566
18565
  getMatcher() {
18567
- const body = (0, _combi_1.seq)((0, _combi_1.opt)((0, _combi_1.sta)(statements_1.SetExtendedCheck)), (0, _combi_1.star)((0, _combi_1.sta)(statements_1.TypePools)), (0, _combi_1.opt)((0, _combi_1.sub)(public_section_1.PublicSection)), (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_1.SetExtendedCheck)));
18566
+ 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)));
18568
18567
  return (0, _combi_1.beginEnd)((0, _combi_1.sta)(Statements.ClassDefinition), body, (0, _combi_1.sta)(Statements.EndClass));
18569
18568
  }
18570
18569
  }
@@ -39843,7 +39842,10 @@ const cds_association_1 = __webpack_require__(/*! ./cds_association */ "./node_m
39843
39842
  const cds_join_1 = __webpack_require__(/*! ./cds_join */ "./node_modules/@abaplint/core/build/src/cds/expressions/cds_join.js");
39844
39843
  class CDSSelect extends combi_1.Expression {
39845
39844
  getRunnable() {
39846
- return (0, combi_1.seq)("SELECT", (0, combi_1.opt)("DISTINCT"), "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.str)("{"), (0, combi_1.plus)(_1.CDSElement), (0, combi_1.star)((0, combi_1.seq)(",", _1.CDSElement)), (0, combi_1.str)("}"), (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)));
39845
+ const fields = (0, combi_1.opt)((0, combi_1.seq)((0, combi_1.star)((0, combi_1.seq)(_1.CDSElement, ",")), _1.CDSElement));
39846
+ const distinct = (0, combi_1.str)("DISTINCT");
39847
+ 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)("}"));
39848
+ 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)));
39847
39849
  }
39848
39850
  }
39849
39851
  exports.CDSSelect = CDSSelect;
@@ -41000,7 +41002,9 @@ __exportStar(__webpack_require__(/*! ./ddl_type */ "./node_modules/@abaplint/cor
41000
41002
  "use strict";
41001
41003
 
41002
41004
  Object.defineProperty(exports, "__esModule", ({ value: true }));
41003
- exports.applyEditList = exports.applyEditSingle = exports.EditHelper = exports.EditDraft = void 0;
41005
+ exports.EditHelper = exports.EditDraft = void 0;
41006
+ exports.applyEditSingle = applyEditSingle;
41007
+ exports.applyEditList = applyEditList;
41004
41008
  const position_1 = __webpack_require__(/*! ./position */ "./node_modules/@abaplint/core/build/src/position.js");
41005
41009
  const memory_file_1 = __webpack_require__(/*! ./files/memory_file */ "./node_modules/@abaplint/core/build/src/files/memory_file.js");
41006
41010
  class EditDraft {
@@ -41218,7 +41222,6 @@ function applyEditSingle(reg, edit) {
41218
41222
  reg.updateFile(result);
41219
41223
  }
41220
41224
  }
41221
- exports.applyEditSingle = applyEditSingle;
41222
41225
  /** returns list of filenames which were changed */
41223
41226
  function applyEditList(reg, edits) {
41224
41227
  const ret = [];
@@ -41248,7 +41251,6 @@ function applyEditList(reg, edits) {
41248
41251
  }
41249
41252
  return ret;
41250
41253
  }
41251
- exports.applyEditList = applyEditList;
41252
41254
  //# sourceMappingURL=edit_helper.js.map
41253
41255
 
41254
41256
  /***/ }),
@@ -51774,7 +51776,7 @@ class Registry {
51774
51776
  }
51775
51777
  static abaplintVersion() {
51776
51778
  // magic, see build script "version.sh"
51777
- return "2.110.0";
51779
+ return "2.110.2";
51778
51780
  }
51779
51781
  getDDICReferences() {
51780
51782
  return this.ddicReferences;
@@ -66984,7 +66986,7 @@ ENDIF.`,
66984
66986
  const children = statementNode.getChildren();
66985
66987
  const sourceString = children[1].concatTokens();
66986
66988
  const targetString = children[3].concatTokens();
66987
- let operator = children[2].concatTokens();
66989
+ let operator = children[2].concatTokens().toUpperCase();
66988
66990
  if (operator === "TO") {
66989
66991
  operator = " = ";
66990
66992
  }
@@ -74692,7 +74694,8 @@ exports.NameValidator = NameValidator;
74692
74694
  "use strict";
74693
74695
 
74694
74696
  Object.defineProperty(exports, "__esModule", ({ value: true }));
74695
- exports.getPreviousVersion = exports.defaultVersion = exports.Version = void 0;
74697
+ exports.defaultVersion = exports.Version = void 0;
74698
+ exports.getPreviousVersion = getPreviousVersion;
74696
74699
  var Version;
74697
74700
  (function (Version) {
74698
74701
  Version["OpenABAP"] = "open-abap";
@@ -74727,7 +74730,6 @@ function getPreviousVersion(v) {
74727
74730
  }
74728
74731
  return all[found - 1];
74729
74732
  }
74730
- exports.getPreviousVersion = getPreviousVersion;
74731
74733
  //# sourceMappingURL=version.js.map
74732
74734
 
74733
74735
  /***/ }),
@@ -74772,7 +74774,8 @@ exports.VirtualPosition = VirtualPosition;
74772
74774
  "use strict";
74773
74775
 
74774
74776
  Object.defineProperty(exports, "__esModule", ({ value: true }));
74775
- exports.unescape = exports.xmlToArray = void 0;
74777
+ exports.xmlToArray = xmlToArray;
74778
+ exports.unescape = unescape;
74776
74779
  function xmlToArray(data) {
74777
74780
  if (data === undefined) {
74778
74781
  return [];
@@ -74784,7 +74787,6 @@ function xmlToArray(data) {
74784
74787
  return [data];
74785
74788
  }
74786
74789
  }
74787
- exports.xmlToArray = xmlToArray;
74788
74790
  function unescape(str) {
74789
74791
  if (str === undefined) {
74790
74792
  return "";
@@ -74796,7 +74798,6 @@ function unescape(str) {
74796
74798
  str = str.replace(/'/g, "'");
74797
74799
  return str;
74798
74800
  }
74799
- exports.unescape = unescape;
74800
74801
  //# sourceMappingURL=xml_utils.js.map
74801
74802
 
74802
74803
  /***/ }),
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@abaplint/cli",
3
- "version": "2.110.0",
3
+ "version": "2.110.2",
4
4
  "description": "abaplint - Command Line Interface",
5
5
  "funding": "https://github.com/sponsors/larshp",
6
6
  "bin": {
@@ -38,24 +38,24 @@
38
38
  },
39
39
  "homepage": "https://abaplint.org",
40
40
  "devDependencies": {
41
- "@abaplint/core": "^2.110.0",
41
+ "@abaplint/core": "^2.110.2",
42
42
  "@types/chai": "^4.3.16",
43
43
  "@types/glob": "^8.1.0",
44
44
  "@types/minimist": "^1.2.5",
45
- "@types/mocha": "^10.0.6",
46
- "@types/node": "^20.14.2",
45
+ "@types/mocha": "^10.0.7",
46
+ "@types/node": "^20.14.9",
47
47
  "@types/progress": "^2.0.7",
48
48
  "chai": "^4.4.1",
49
49
  "chalk": "^5.3.0",
50
50
  "eslint": "^8.57.0",
51
51
  "glob": "^7.2.3",
52
52
  "json5": "^2.2.3",
53
- "memfs": "^4.9.2",
53
+ "memfs": "^4.9.3",
54
54
  "minimist": "^1.2.8",
55
- "mocha": "^10.4.0",
55
+ "mocha": "^10.5.2",
56
56
  "progress": "^2.0.3",
57
- "typescript": "^5.4.5",
58
- "webpack": "^5.92.0",
57
+ "typescript": "^5.5.2",
58
+ "webpack": "^5.92.1",
59
59
  "webpack-cli": "^5.1.4",
60
60
  "xml-js": "^1.6.11"
61
61
  },