@abaplint/core 2.120.97 → 2.120.98

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.
@@ -15,7 +15,7 @@ const sql_case_1 = require("./sql_case");
15
15
  class SQLFunctionInput extends combi_1.Expression {
16
16
  getRunnable() {
17
17
  const hostParen = (0, combi_1.seq)((0, combi_1.tok)(tokens_1.ParenLeftW), source_1.Source, (0, combi_1.tok)(tokens_1.WParenRightW));
18
- 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)));
18
+ 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 });
19
19
  const parenInput = (0, combi_1.seq)("(", SQLFunctionInput, ")");
20
20
  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);
21
21
  const operator = (0, combi_1.altPrio)("+", "-", "*", "/", "&&");
@@ -178,12 +178,13 @@ class MethodParameters {
178
178
  }
179
179
  parameterType = parameter.getType();
180
180
  }
181
+ // the parameter is supplied, even if its type is wrong
182
+ (_a = this.requiredParameters) === null || _a === void 0 ? void 0 : _a.delete(item.name);
181
183
  if (item.targetType && new _type_utils_1.TypeUtils(input.scope).isAssignableStrict(parameterType, item.targetType) === false) {
182
184
  const message = "Method parameter type not compatible, " + item.name;
183
185
  input.issues.push((0, _syntax_input_1.syntaxIssue)(input, node.getFirstToken(), message));
184
186
  return;
185
187
  }
186
- (_a = this.requiredParameters) === null || _a === void 0 ? void 0 : _a.delete(item.name);
187
188
  }
188
189
  }
189
190
  checkExporting(node, input, method, errors = true) {
@@ -206,7 +207,9 @@ class MethodParameters {
206
207
  input.issues.push((0, _syntax_input_1.syntaxIssue)(input, node.getFirstToken(), message));
207
208
  continue;
208
209
  }
209
- else if ((0, _check_text_symbol_1.checkTextSymbol)(item.source, parameter.getType(), input)) {
210
+ // the parameter is supplied, even if its type is wrong
211
+ this.requiredParameters.delete(item.name);
212
+ if ((0, _check_text_symbol_1.checkTextSymbol)(item.source, parameter.getType(), input)) {
210
213
  return;
211
214
  }
212
215
  else if (assignable(item.sourceType, parameter.getType(), item.source) === false) {
@@ -214,7 +217,6 @@ class MethodParameters {
214
217
  input.issues.push((0, _syntax_input_1.syntaxIssue)(input, node.getFirstToken(), message));
215
218
  return;
216
219
  }
217
- this.requiredParameters.delete(item.name);
218
220
  }
219
221
  if (errors === true) {
220
222
  this.reportErrors(node, input);
@@ -75,7 +75,7 @@ class Registry {
75
75
  }
76
76
  static abaplintVersion() {
77
77
  // magic, see build script "version.js"
78
- return "2.120.97";
78
+ return "2.120.98";
79
79
  }
80
80
  getDDICReferences() {
81
81
  return this.ddicReferences;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@abaplint/core",
3
- "version": "2.120.97",
3
+ "version": "2.120.98",
4
4
  "description": "abaplint - Core API",
5
5
  "main": "build/src/index.js",
6
6
  "typings": "build/abaplint.d.ts",