@abaplint/transpiler-cli 2.14.21 → 2.14.23

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 +10 -8
  2. package/package.json +3 -3
package/build/bundle.js CHANGED
@@ -9630,15 +9630,15 @@ class SQLField extends combi_1.Expression {
9630
9630
  const parenField = (0, combi_1.seq)((0, combi_1.tok)(tokens_1.WParenLeftW), field, (0, combi_1.tok)(tokens_1.WParenRightW));
9631
9631
  const parenFieldNoAgg = (0, combi_1.seq)((0, combi_1.tok)(tokens_1.WParenLeftW), fieldNoAgg, (0, combi_1.tok)(tokens_1.WParenRightW));
9632
9632
  const subNoAgg = (0, combi_1.plusPrio)((0, combi_1.seq)((0, combi_1.altPrio)("+", "-", "*", "/", "&&"), (0, combi_1.altPrio)(parenFieldNoAgg, fieldNoAgg)));
9633
- const arithNoAgg = (0, combi_1.ver)(version_1.Release.v740sp05, subNoAgg);
9633
+ const arithNoAgg = (0, combi_1.ver)(version_1.Release.v740sp05, subNoAgg, { also: combi_1.AlsoIn.OpenABAP });
9634
9634
  const subWithAgg = (0, combi_1.plusPrio)((0, combi_1.seq)((0, combi_1.altPrio)("+", "-", "*", "/", "&&"), (0, combi_1.altPrio)(parenField, field)));
9635
- const arithWithAgg = (0, combi_1.ver)(version_1.Release.v754, subWithAgg);
9635
+ const arithWithAgg = (0, combi_1.ver)(version_1.Release.v754, subWithAgg, { also: combi_1.AlsoIn.OpenABAP });
9636
9636
  const arith = (0, combi_1.altPrio)(arithWithAgg, arithNoAgg);
9637
9637
  const arithSequence = (0, combi_1.seq)((0, combi_1.optPrio)("-"), field, (0, combi_1.optPrio)(arith));
9638
9638
  const parenArithSequence = (0, combi_1.seq)((0, combi_1.tok)(tokens_1.WParenLeftW), (0, combi_1.optPrio)("-"), arithSequence, (0, combi_1.tok)(tokens_1.WParenRightW));
9639
9639
  const subExtWithAgg = (0, combi_1.plusPrio)((0, combi_1.seq)((0, combi_1.altPrio)("+", "-", "*", "/", "&&"), (0, combi_1.altPrio)(parenArithSequence, parenField, field)));
9640
9640
  const subExtNoAgg = (0, combi_1.plusPrio)((0, combi_1.seq)((0, combi_1.altPrio)("+", "-", "*", "/", "&&"), (0, combi_1.altPrio)(parenArithSequence, parenFieldNoAgg, fieldNoAgg)));
9641
- const arithExt = (0, combi_1.altPrio)((0, combi_1.ver)(version_1.Release.v754, subExtWithAgg), (0, combi_1.ver)(version_1.Release.v740sp05, subExtNoAgg));
9641
+ const arithExt = (0, combi_1.altPrio)((0, combi_1.ver)(version_1.Release.v754, subExtWithAgg, { also: combi_1.AlsoIn.OpenABAP }), (0, combi_1.ver)(version_1.Release.v740sp05, subExtNoAgg, { also: combi_1.AlsoIn.OpenABAP }));
9642
9642
  return (0, combi_1.seq)((0, combi_1.altPrio)((0, combi_1.seq)(parenArithSequence, (0, combi_1.optPrio)(arithExt)), arithSequence), (0, combi_1.optPrio)(as));
9643
9643
  }
9644
9644
  }
@@ -10351,7 +10351,7 @@ const sql_case_1 = __webpack_require__(/*! ./sql_case */ "./node_modules/@abapli
10351
10351
  class SQLFunctionInput extends combi_1.Expression {
10352
10352
  getRunnable() {
10353
10353
  const hostParen = (0, combi_1.seq)((0, combi_1.tok)(tokens_1.ParenLeftW), source_1.Source, (0, combi_1.tok)(tokens_1.WParenRightW));
10354
- const at = (0, combi_1.ver)(version_1.Release.v740sp05, (0, combi_1.seq)((0, combi_1.tok)(tokens_1.WAt), (0, combi_1.altPrio)(simple_source3_1.SimpleSource3, hostParen)));
10354
+ const at = (0, combi_1.ver)(version_1.Release.v740sp05, (0, combi_1.seq)((0, combi_1.tok)(tokens_1.WAt), (0, combi_1.altPrio)(simple_source3_1.SimpleSource3, hostParen)), { also: combi_1.AlsoIn.OpenABAP });
10355
10355
  const parenInput = (0, combi_1.seq)("(", SQLFunctionInput, ")");
10356
10356
  const param = (0, combi_1.altPrio)(parenInput, sql_case_1.SQLCase, sql_function_1.SQLFunction, sql_aggregation_1.SQLAggregation, sql_field_name_1.SQLFieldName, sql_alias_field_1.SQLAliasField, constant_1.Constant, at);
10357
10357
  const operator = (0, combi_1.altPrio)("+", "-", "*", "/", "&&");
@@ -35741,12 +35741,13 @@ class MethodParameters {
35741
35741
  }
35742
35742
  parameterType = parameter.getType();
35743
35743
  }
35744
+ // the parameter is supplied, even if its type is wrong
35745
+ (_a = this.requiredParameters) === null || _a === void 0 ? void 0 : _a.delete(item.name);
35744
35746
  if (item.targetType && new _type_utils_1.TypeUtils(input.scope).isAssignableStrict(parameterType, item.targetType) === false) {
35745
35747
  const message = "Method parameter type not compatible, " + item.name;
35746
35748
  input.issues.push((0, _syntax_input_1.syntaxIssue)(input, node.getFirstToken(), message));
35747
35749
  return;
35748
35750
  }
35749
- (_a = this.requiredParameters) === null || _a === void 0 ? void 0 : _a.delete(item.name);
35750
35751
  }
35751
35752
  }
35752
35753
  checkExporting(node, input, method, errors = true) {
@@ -35769,7 +35770,9 @@ class MethodParameters {
35769
35770
  input.issues.push((0, _syntax_input_1.syntaxIssue)(input, node.getFirstToken(), message));
35770
35771
  continue;
35771
35772
  }
35772
- else if ((0, _check_text_symbol_1.checkTextSymbol)(item.source, parameter.getType(), input)) {
35773
+ // the parameter is supplied, even if its type is wrong
35774
+ this.requiredParameters.delete(item.name);
35775
+ if ((0, _check_text_symbol_1.checkTextSymbol)(item.source, parameter.getType(), input)) {
35773
35776
  return;
35774
35777
  }
35775
35778
  else if (assignable(item.sourceType, parameter.getType(), item.source) === false) {
@@ -35777,7 +35780,6 @@ class MethodParameters {
35777
35780
  input.issues.push((0, _syntax_input_1.syntaxIssue)(input, node.getFirstToken(), message));
35778
35781
  return;
35779
35782
  }
35780
- this.requiredParameters.delete(item.name);
35781
35783
  }
35782
35784
  if (errors === true) {
35783
35785
  this.reportErrors(node, input);
@@ -74261,7 +74263,7 @@ class Registry {
74261
74263
  }
74262
74264
  static abaplintVersion() {
74263
74265
  // magic, see build script "version.js"
74264
- return "2.120.96";
74266
+ return "2.120.98";
74265
74267
  }
74266
74268
  getDDICReferences() {
74267
74269
  return this.ddicReferences;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@abaplint/transpiler-cli",
3
- "version": "2.14.21",
3
+ "version": "2.14.23",
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.120.96",
31
- "@abaplint/transpiler": "^2.14.21",
30
+ "@abaplint/core": "^2.120.98",
31
+ "@abaplint/transpiler": "^2.14.23",
32
32
  "@types/glob": "^9.0.0",
33
33
  "@types/node": "^26.6.6",
34
34
  "@types/progress": "^2.0.7",