@abaplint/transpiler-cli 2.13.10 → 2.13.12

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/bundle.js +31 -22
  2. package/package.json +5 -5
package/build/bundle.js CHANGED
@@ -646,6 +646,7 @@ class AbstractToken {
646
646
  constructor(start, str) {
647
647
  this.start = start;
648
648
  this.str = str;
649
+ this.strUpper = str.toUpperCase();
649
650
  }
650
651
  // special function, for debugging purposes, see https://github.com/abaplint/abaplint/pull/3137
651
652
  [Symbol.for("debug.description")]() {
@@ -654,6 +655,9 @@ class AbstractToken {
654
655
  getStr() {
655
656
  return this.str;
656
657
  }
658
+ getUpperStr() {
659
+ return this.strUpper;
660
+ }
657
661
  getRow() {
658
662
  return this.start.getRow();
659
663
  }
@@ -1759,7 +1763,7 @@ class Word {
1759
1763
  const result = [];
1760
1764
  for (const input of r) {
1761
1765
  if (input.remainingLength() !== 0
1762
- && input.peek().getStr().toUpperCase() === this.s) {
1766
+ && input.peek().getUpperStr() === this.s) {
1763
1767
  // console.log("match, " + this.s + result.length);
1764
1768
  result.push(input.shift(new nodes_1.TokenNode(input.peek())));
1765
1769
  }
@@ -1778,7 +1782,7 @@ class Word {
1778
1782
  }
1779
1783
  class Token {
1780
1784
  constructor(s) {
1781
- this.name = s.toUpperCase();
1785
+ this.name = s;
1782
1786
  }
1783
1787
  listKeywords() {
1784
1788
  return [];
@@ -1790,7 +1794,7 @@ class Token {
1790
1794
  const result = [];
1791
1795
  for (const input of r) {
1792
1796
  if (input.remainingLength() !== 0
1793
- && input.peek().constructor.name.toUpperCase() === this.name) {
1797
+ && input.peek().constructor.name === this.name) {
1794
1798
  result.push(input.shift(new nodes_1.TokenNode(input.peek())));
1795
1799
  }
1796
1800
  }
@@ -2528,7 +2532,7 @@ function tok(t) {
2528
2532
  }
2529
2533
  const expressionSingletons = {};
2530
2534
  const stringSingletons = {};
2531
- function map(s) {
2535
+ function mapInput(s) {
2532
2536
  const type = typeof s;
2533
2537
  if (type === "string") {
2534
2538
  if (stringSingletons[s] === undefined) {
@@ -2550,48 +2554,48 @@ function map(s) {
2550
2554
  }
2551
2555
  }
2552
2556
  function seq(first, second, ...rest) {
2553
- const list = [map(first), map(second)];
2554
- list.push(...rest.map(map));
2557
+ const list = [mapInput(first), mapInput(second)];
2558
+ list.push(...rest.map(mapInput));
2555
2559
  return new Sequence(list);
2556
2560
  }
2557
2561
  function alt(first, second, ...rest) {
2558
- const list = [map(first), map(second)];
2559
- list.push(...rest.map(map));
2562
+ const list = [mapInput(first), mapInput(second)];
2563
+ list.push(...rest.map(mapInput));
2560
2564
  return new Alternative(list);
2561
2565
  }
2562
2566
  function altPrio(first, second, ...rest) {
2563
- const list = [map(first), map(second)];
2564
- list.push(...rest.map(map));
2567
+ const list = [mapInput(first), mapInput(second)];
2568
+ list.push(...rest.map(mapInput));
2565
2569
  return new AlternativePriority(list);
2566
2570
  }
2567
2571
  function opt(first) {
2568
- return new Optional(map(first));
2572
+ return new Optional(mapInput(first));
2569
2573
  }
2570
2574
  function optPrio(first) {
2571
- return new OptionalPriority(map(first));
2575
+ return new OptionalPriority(mapInput(first));
2572
2576
  }
2573
2577
  function per(first, second, ...rest) {
2574
- const list = [map(first), map(second)];
2575
- list.push(...rest.map(map));
2578
+ const list = [mapInput(first), mapInput(second)];
2579
+ list.push(...rest.map(mapInput));
2576
2580
  return new Permutation(list);
2577
2581
  }
2578
2582
  function star(first) {
2579
- return new Star(map(first));
2583
+ return new Star(mapInput(first));
2580
2584
  }
2581
2585
  function starPrio(first) {
2582
- return new StarPriority(map(first));
2586
+ return new StarPriority(mapInput(first));
2583
2587
  }
2584
2588
  function plus(first) {
2585
- return new Plus(map(first));
2589
+ return new Plus(mapInput(first));
2586
2590
  }
2587
2591
  function plusPrio(first) {
2588
- return new PlusPriority(map(first));
2592
+ return new PlusPriority(mapInput(first));
2589
2593
  }
2590
2594
  function ver(version, first, or) {
2591
- return new Vers(version, map(first), or);
2595
+ return new Vers(version, mapInput(first), or);
2592
2596
  }
2593
2597
  function verNot(version, first) {
2594
- return new VersNot(version, map(first));
2598
+ return new VersNot(version, mapInput(first));
2595
2599
  }
2596
2600
  function failCombinator() {
2597
2601
  return new FailCombinator();
@@ -35027,6 +35031,7 @@ Object.defineProperty(exports, "__esModule", ({ value: true }));
35027
35031
  exports.Data = void 0;
35028
35032
  const data_1 = __webpack_require__(/*! ../statements/data */ "./node_modules/@abaplint/core/build/src/abap/5_syntax/statements/data.js");
35029
35033
  const nodes_1 = __webpack_require__(/*! ../../nodes */ "./node_modules/@abaplint/core/build/src/abap/nodes/index.js");
35034
+ const identifier_1 = __webpack_require__(/*! ../../1_lexer/tokens/identifier */ "./node_modules/@abaplint/core/build/src/abap/1_lexer/tokens/identifier.js");
35030
35035
  const type_1 = __webpack_require__(/*! ../statements/type */ "./node_modules/@abaplint/core/build/src/abap/5_syntax/statements/type.js");
35031
35036
  const _typed_identifier_1 = __webpack_require__(/*! ../../types/_typed_identifier */ "./node_modules/@abaplint/core/build/src/abap/types/_typed_identifier.js");
35032
35037
  const types_1 = __webpack_require__(/*! ./types */ "./node_modules/@abaplint/core/build/src/abap/5_syntax/structures/types.js");
@@ -35049,7 +35054,11 @@ class Data {
35049
35054
  this.runCommonPartSyntax(node, input);
35050
35055
  return undefined;
35051
35056
  }
35052
- const name = node.findFirstExpression(Expressions.DefinitionName).getFirstToken();
35057
+ const nameExpr = node.findFirstExpression(Expressions.DefinitionName);
35058
+ let name = nameExpr.getFirstToken();
35059
+ if (nameExpr.countTokens() > 1) { // workaround for names with dashes
35060
+ name = new identifier_1.Identifier(name.getStart(), nameExpr.concatTokens());
35061
+ }
35053
35062
  let table = false;
35054
35063
  const values = {};
35055
35064
  const components = [];
@@ -55038,7 +55047,7 @@ class Registry {
55038
55047
  }
55039
55048
  static abaplintVersion() {
55040
55049
  // magic, see build script "version.sh"
55041
- return "2.118.10";
55050
+ return "2.118.11";
55042
55051
  }
55043
55052
  getDDICReferences() {
55044
55053
  return this.ddicReferences;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@abaplint/transpiler-cli",
3
- "version": "2.13.10",
3
+ "version": "2.13.12",
4
4
  "description": "Transpiler - Command Line Interface",
5
5
  "funding": "https://github.com/sponsors/larshp",
6
6
  "bin": {
@@ -27,10 +27,10 @@
27
27
  "author": "abaplint",
28
28
  "license": "MIT",
29
29
  "devDependencies": {
30
- "@abaplint/core": "^2.118.10",
31
- "@abaplint/transpiler": "^2.13.10",
30
+ "@abaplint/core": "^2.118.11",
31
+ "@abaplint/transpiler": "^2.13.12",
32
32
  "@types/glob": "^8.1.0",
33
- "@types/node": "^24.12.0",
33
+ "@types/node": "^24.12.2",
34
34
  "@types/progress": "^2.0.7",
35
35
  "glob": "=7.2.0",
36
36
  "progress": "^2.0.3",
@@ -38,6 +38,6 @@
38
38
  "typescript": "^5.9.3",
39
39
  "p-limit": "^3.1.0",
40
40
  "webpack-cli": "^7.0.2",
41
- "webpack": "^5.105.4"
41
+ "webpack": "^5.106.1"
42
42
  }
43
43
  }