@abaplint/cli 2.119.64 → 2.119.65

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/cli.js +8 -4
  2. package/package.json +2 -2
package/build/cli.js CHANGED
@@ -27597,7 +27597,7 @@ class TypeUtils {
27597
27597
  }
27598
27598
  else if (target instanceof basic_1.XStringType) {
27599
27599
  if (((_c = source.getAbstractTypeData()) === null || _c === void 0 ? void 0 : _c.derivedFromConstant) === true) {
27600
- return true;
27600
+ return (node === null || node === void 0 ? void 0 : node.concatTokens()) !== "''";
27601
27601
  }
27602
27602
  return false;
27603
27603
  }
@@ -32289,6 +32289,7 @@ const Expressions = __importStar(__webpack_require__(/*! ../../2_statements/expr
32289
32289
  const _typed_identifier_1 = __webpack_require__(/*! ../../types/_typed_identifier */ "../core/build/src/abap/types/_typed_identifier.js");
32290
32290
  const basic_1 = __webpack_require__(/*! ../../types/basic */ "../core/build/src/abap/types/basic/index.js");
32291
32291
  const basic_types_1 = __webpack_require__(/*! ../basic_types */ "../core/build/src/abap/5_syntax/basic_types.js");
32292
+ const _syntax_input_1 = __webpack_require__(/*! ../_syntax_input */ "../core/build/src/abap/5_syntax/_syntax_input.js");
32292
32293
  const assert_error_1 = __webpack_require__(/*! ../assert_error */ "../core/build/src/abap/5_syntax/assert_error.js");
32293
32294
  class MethodDefReturning {
32294
32295
  static runSyntax(node, input, meta) {
@@ -32301,8 +32302,11 @@ class MethodDefReturning {
32301
32302
  throw new assert_error_1.AssertError("method_parameter.ts, unexpected structure");
32302
32303
  }
32303
32304
  let found = new basic_types_1.BasicTypes(input).parseType(type);
32304
- if ((found === null || found === void 0 ? void 0 : found.isGeneric()) === true) {
32305
- found = new basic_1.UnknownType("RETURNING parameter must be fully specified");
32305
+ const message = "RETURNING parameter must be fully specified";
32306
+ const typeText = type.concatTokens().toUpperCase();
32307
+ if ((found === null || found === void 0 ? void 0 : found.isGeneric()) === true || typeText === "TYPE X" || typeText === "TYPE C") {
32308
+ input.issues.push((0, _syntax_input_1.syntaxIssue)(input, type.getFirstToken(), message));
32309
+ found = new basic_1.UnknownType(message);
32306
32310
  }
32307
32311
  if (found) {
32308
32312
  return new _typed_identifier_1.TypedIdentifier(name.getFirstToken(), input.filename, found, meta);
@@ -68823,7 +68827,7 @@ class Registry {
68823
68827
  }
68824
68828
  static abaplintVersion() {
68825
68829
  // magic, see build script "version.js"
68826
- return "2.119.64";
68830
+ return "2.119.65";
68827
68831
  }
68828
68832
  getDDICReferences() {
68829
68833
  return this.ddicReferences;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@abaplint/cli",
3
- "version": "2.119.64",
3
+ "version": "2.119.65",
4
4
  "description": "abaplint - Command Line Interface",
5
5
  "funding": "https://github.com/sponsors/larshp",
6
6
  "bin": {
@@ -39,7 +39,7 @@
39
39
  },
40
40
  "homepage": "https://abaplint.org",
41
41
  "devDependencies": {
42
- "@abaplint/core": "^2.119.64",
42
+ "@abaplint/core": "^2.119.65",
43
43
  "@types/chai": "^4.3.20",
44
44
  "@types/minimist": "^1.2.5",
45
45
  "@types/mocha": "^10.0.10",