@abaplint/transpiler-cli 2.4.9 → 2.4.10

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 +9 -4
  2. package/package.json +3 -3
package/build/bundle.js CHANGED
@@ -7631,13 +7631,13 @@ Object.defineProperty(exports, "__esModule", ({ value: true }));
7631
7631
  exports.WriteOffsetLength = void 0;
7632
7632
  const combi_1 = __webpack_require__(/*! ../combi */ "./node_modules/@abaplint/core/build/src/abap/2_statements/combi.js");
7633
7633
  const tokens_1 = __webpack_require__(/*! ../../1_lexer/tokens */ "./node_modules/@abaplint/core/build/src/abap/1_lexer/tokens/index.js");
7634
- const field_chain_1 = __webpack_require__(/*! ./field_chain */ "./node_modules/@abaplint/core/build/src/abap/2_statements/expressions/field_chain.js");
7634
+ const simple_field_chain2_1 = __webpack_require__(/*! ./simple_field_chain2 */ "./node_modules/@abaplint/core/build/src/abap/2_statements/expressions/simple_field_chain2.js");
7635
7635
  class WriteOffsetLength extends combi_1.Expression {
7636
7636
  getRunnable() {
7637
- const post = (0, combi_1.seq)((0, combi_1.alt)(field_chain_1.FieldChain, (0, combi_1.regex)(/^[\d]+$/), (0, combi_1.regex)(/^\*$/)), (0, combi_1.alt)((0, combi_1.tok)(tokens_1.ParenRightW), (0, combi_1.tok)(tokens_1.ParenRight)));
7637
+ const post = (0, combi_1.seq)((0, combi_1.alt)(simple_field_chain2_1.SimpleFieldChain2, (0, combi_1.regex)(/^[\d]+$/), (0, combi_1.regex)(/^\*$/)), (0, combi_1.alt)((0, combi_1.tok)(tokens_1.ParenRightW), (0, combi_1.tok)(tokens_1.ParenRight)));
7638
7638
  const wlength = (0, combi_1.seq)((0, combi_1.tok)(tokens_1.WParenLeft), post);
7639
7639
  const length = (0, combi_1.seq)((0, combi_1.tok)(tokens_1.ParenLeft), post);
7640
- const complex = (0, combi_1.alt)(wlength, (0, combi_1.seq)((0, combi_1.alt)(field_chain_1.FieldChain, (0, combi_1.regex)(/^\/?[\w\d]+$/), "/"), (0, combi_1.opt)(length)));
7640
+ const complex = (0, combi_1.alt)(wlength, (0, combi_1.seq)((0, combi_1.alt)(simple_field_chain2_1.SimpleFieldChain2, (0, combi_1.regex)(/^\/?[\w\d]+$/), "/"), (0, combi_1.opt)(length)));
7641
7641
  const at = (0, combi_1.seq)((0, combi_1.opt)("AT"), complex);
7642
7642
  return at;
7643
7643
  }
@@ -29649,6 +29649,8 @@ const source_1 = __webpack_require__(/*! ../expressions/source */ "./node_module
29649
29649
  const target_1 = __webpack_require__(/*! ../expressions/target */ "./node_modules/@abaplint/core/build/src/abap/5_syntax/expressions/target.js");
29650
29650
  const dynamic_1 = __webpack_require__(/*! ../expressions/dynamic */ "./node_modules/@abaplint/core/build/src/abap/5_syntax/expressions/dynamic.js");
29651
29651
  const _type_utils_1 = __webpack_require__(/*! ../_type_utils */ "./node_modules/@abaplint/core/build/src/abap/5_syntax/_type_utils.js");
29652
+ const field_chain_1 = __webpack_require__(/*! ../expressions/field_chain */ "./node_modules/@abaplint/core/build/src/abap/5_syntax/expressions/field_chain.js");
29653
+ const _reference_1 = __webpack_require__(/*! ../_reference */ "./node_modules/@abaplint/core/build/src/abap/5_syntax/_reference.js");
29652
29654
  class Write {
29653
29655
  runSyntax(node, scope, filename) {
29654
29656
  // todo, more
@@ -29661,6 +29663,9 @@ class Write {
29661
29663
  throw new Error("Source not character like");
29662
29664
  }
29663
29665
  }
29666
+ for (const s of node.findAllExpressions(Expressions.SimpleFieldChain2)) {
29667
+ new field_chain_1.FieldChain().runSyntax(s, scope, filename, _reference_1.ReferenceType.DataReadReference);
29668
+ }
29664
29669
  for (const s of node.findAllExpressions(Expressions.Dynamic)) {
29665
29670
  new dynamic_1.Dynamic().runSyntax(s, scope, filename);
29666
29671
  }
@@ -45850,7 +45855,7 @@ class Registry {
45850
45855
  }
45851
45856
  static abaplintVersion() {
45852
45857
  // magic, see build script "version.sh"
45853
- return "2.95.13";
45858
+ return "2.95.14";
45854
45859
  }
45855
45860
  getDDICReferences() {
45856
45861
  return this.references;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@abaplint/transpiler-cli",
3
- "version": "2.4.9",
3
+ "version": "2.4.10",
4
4
  "description": "Transpiler - Command Line Interface",
5
5
  "bin": {
6
6
  "abap_transpile": "./abap_transpile"
@@ -25,11 +25,11 @@
25
25
  "author": "abaplint",
26
26
  "license": "MIT",
27
27
  "devDependencies": {
28
- "@abaplint/transpiler": "^2.4.9",
28
+ "@abaplint/transpiler": "^2.4.10",
29
29
  "@types/glob": "^7.2.0",
30
30
  "glob": "=7.2.0",
31
31
  "@types/progress": "^2.0.5",
32
- "@abaplint/core": "^2.95.13",
32
+ "@abaplint/core": "^2.95.14",
33
33
  "progress": "^2.0.3",
34
34
  "webpack": "^5.75.0",
35
35
  "webpack-cli": "^5.0.1",