@abaplint/transpiler-cli 2.11.77 → 2.11.79

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 +18 -6
  2. package/package.json +3 -3
package/build/bundle.js CHANGED
@@ -39,7 +39,7 @@ class TranspilerConfig {
39
39
  input_filter: [],
40
40
  output_folder: "output",
41
41
  libs: [
42
- { "url": "https://github.com/open-abap/open-abap" },
42
+ { "url": "https://github.com/open-abap/open-abap-core" },
43
43
  ],
44
44
  write_unit_tests: true,
45
45
  write_source_map: true,
@@ -2985,7 +2985,7 @@ const simple_source3_1 = __webpack_require__(/*! ./simple_source3 */ "./node_mod
2985
2985
  const version_1 = __webpack_require__(/*! ../../../version */ "./node_modules/@abaplint/core/build/src/version.js");
2986
2986
  class AssignSource extends combi_1.Expression {
2987
2987
  getRunnable() {
2988
- const component = (0, combi_1.seq)("COMPONENT", (0, combi_1.alt)(simple_source3_1.SimpleSource3, (0, combi_1.ver)(version_1.Version.v740sp02, source_1.Source)), "OF STRUCTURE", source_1.Source);
2988
+ const component = (0, combi_1.seq)("COMPONENT", (0, combi_1.alt)(simple_source3_1.SimpleSource3, (0, combi_1.ver)(version_1.Version.v740sp02, source_1.Source, version_1.Version.OpenABAP)), "OF STRUCTURE", source_1.Source);
2989
2989
  const tableField = (0, combi_1.seq)("TABLE FIELD", (0, combi_1.alt)(source_1.Source, dynamic_1.Dynamic));
2990
2990
  const arrow = (0, combi_1.alt)((0, combi_1.tok)(tokens_1.InstanceArrow), (0, combi_1.tok)(tokens_1.StaticArrow));
2991
2991
  const source = (0, combi_1.alt)((0, combi_1.seq)(source_1.Source, (0, combi_1.opt)((0, combi_1.seq)(arrow, dynamic_1.Dynamic))), component, tableField, (0, combi_1.seq)(dynamic_1.Dynamic, (0, combi_1.opt)((0, combi_1.seq)(arrow, (0, combi_1.alt)(field_1.Field, dynamic_1.Dynamic)))));
@@ -7856,7 +7856,7 @@ const _1 = __webpack_require__(/*! . */ "./node_modules/@abaplint/core/build/src
7856
7856
  class SQLSourceNoSpace extends combi_1.Expression {
7857
7857
  getRunnable() {
7858
7858
  const paren = (0, combi_1.seq)((0, combi_1.tok)(tokens_1.ParenLeftW), _1.Source, (0, combi_1.tok)(tokens_1.WParenRightW));
7859
- const at = (0, combi_1.ver)(version_1.Version.v740sp05, (0, combi_1.seq)((0, combi_1.tok)(tokens_1.At), (0, combi_1.altPrio)(_1.SimpleSource3, paren)));
7859
+ const at = (0, combi_1.ver)(version_1.Version.v740sp05, (0, combi_1.seq)((0, combi_1.tok)(tokens_1.At), (0, combi_1.altPrio)(_1.SimpleSource3, paren)), version_1.Version.OpenABAP);
7860
7860
  return (0, combi_1.alt)(_1.SQLAliasField, _1.SimpleSource3, at);
7861
7861
  }
7862
7862
  }
@@ -24181,9 +24181,9 @@ class ComponentCompare {
24181
24181
  input.issues.push((0, _syntax_input_1.syntaxIssue)(input, node.getFirstToken(), message));
24182
24182
  return;
24183
24183
  }
24184
- component_chain_1.ComponentChain.runSyntax(type, chain, input);
24184
+ const fieldType = component_chain_1.ComponentChain.runSyntax(type, chain, input);
24185
24185
  for (const s of node.findDirectExpressions(Expressions.Source)) {
24186
- source_1.Source.runSyntax(s, input);
24186
+ source_1.Source.runSyntax(s, input, fieldType);
24187
24187
  }
24188
24188
  }
24189
24189
  }
@@ -25035,6 +25035,8 @@ Object.defineProperty(exports, "__esModule", ({ value: true }));
25035
25035
  exports.FilterBody = void 0;
25036
25036
  const Expressions = __webpack_require__(/*! ../../2_statements/expressions */ "./node_modules/@abaplint/core/build/src/abap/2_statements/expressions/index.js");
25037
25037
  const source_1 = __webpack_require__(/*! ./source */ "./node_modules/@abaplint/core/build/src/abap/5_syntax/expressions/source.js");
25038
+ const component_cond_1 = __webpack_require__(/*! ./component_cond */ "./node_modules/@abaplint/core/build/src/abap/5_syntax/expressions/component_cond.js");
25039
+ const basic_1 = __webpack_require__(/*! ../../types/basic */ "./node_modules/@abaplint/core/build/src/abap/types/basic/index.js");
25038
25040
  class FilterBody {
25039
25041
  static runSyntax(node, input, targetType) {
25040
25042
  if (node === undefined) {
@@ -25049,6 +25051,8 @@ class FilterBody {
25049
25051
  source_1.Source.runSyntax(s, input);
25050
25052
  }
25051
25053
  }
25054
+ const rowType = type instanceof basic_1.TableType ? type.getRowType() : undefined;
25055
+ component_cond_1.ComponentCond.runSyntax(node.findDirectExpression(Expressions.ComponentCond), input, rowType);
25052
25056
  return type ? type : targetType;
25053
25057
  }
25054
25058
  }
@@ -53886,7 +53890,7 @@ class Registry {
53886
53890
  }
53887
53891
  static abaplintVersion() {
53888
53892
  // magic, see build script "version.sh"
53889
- return "2.113.198";
53893
+ return "2.113.199";
53890
53894
  }
53891
53895
  getDDICReferences() {
53892
53896
  return this.ddicReferences;
@@ -88615,6 +88619,12 @@ function escapeRegExp(string) {
88615
88619
  // TODO: currently SELECT into are always handled as CORRESPONDING
88616
88620
  class SelectTranspiler {
88617
88621
  transpile(node, traversal, targetOverride) {
88622
+ if (node.findDirectTokenByText("ALL") !== undefined) {
88623
+ throw new Error("SelectTranspiler, UNION ALL todo");
88624
+ }
88625
+ else if (node.findDirectTokenByText("DISTINCT") !== undefined) {
88626
+ throw new Error("SelectTranspiler, UNION DISTINCT todo");
88627
+ }
88618
88628
  let target = "undefined";
88619
88629
  if (targetOverride) {
88620
88630
  // SelectLoop structure uses override
@@ -92545,6 +92555,7 @@ exports.config = {
92545
92555
  "DEVC",
92546
92556
  "DOMA",
92547
92557
  "DTEL",
92558
+ "ENHO",
92548
92559
  "ENHS",
92549
92560
  "ENQU",
92550
92561
  "FUGR",
@@ -92571,6 +92582,7 @@ exports.config = {
92571
92582
  "SUSC",
92572
92583
  "SUSH",
92573
92584
  "SUSO",
92585
+ "SXCI",
92574
92586
  "TABL",
92575
92587
  "TOBJ",
92576
92588
  "TRAN",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@abaplint/transpiler-cli",
3
- "version": "2.11.77",
3
+ "version": "2.11.79",
4
4
  "description": "Transpiler - Command Line Interface",
5
5
  "funding": "https://github.com/sponsors/larshp",
6
6
  "bin": {
@@ -27,8 +27,8 @@
27
27
  "author": "abaplint",
28
28
  "license": "MIT",
29
29
  "devDependencies": {
30
- "@abaplint/core": "^2.113.198",
31
- "@abaplint/transpiler": "^2.11.77",
30
+ "@abaplint/core": "^2.113.199",
31
+ "@abaplint/transpiler": "^2.11.79",
32
32
  "@types/glob": "^8.1.0",
33
33
  "@types/node": "^24.3.1",
34
34
  "@types/progress": "^2.0.7",