@abaplint/cli 2.119.5 → 2.119.6

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 +11 -8
  2. package/package.json +2 -2
package/build/cli.js CHANGED
@@ -35885,6 +35885,7 @@ const Expressions = __webpack_require__(/*! ../../2_statements/expressions */ ".
35885
35885
  const basic_1 = __webpack_require__(/*! ../../types/basic */ "./node_modules/@abaplint/core/build/src/abap/types/basic/index.js");
35886
35886
  const inline_data_1 = __webpack_require__(/*! ../expressions/inline_data */ "./node_modules/@abaplint/core/build/src/abap/5_syntax/expressions/inline_data.js");
35887
35887
  const target_1 = __webpack_require__(/*! ../expressions/target */ "./node_modules/@abaplint/core/build/src/abap/5_syntax/expressions/target.js");
35888
+ const _reference_1 = __webpack_require__(/*! ../_reference */ "./node_modules/@abaplint/core/build/src/abap/5_syntax/_reference.js");
35888
35889
  const _syntax_input_1 = __webpack_require__(/*! ../_syntax_input */ "./node_modules/@abaplint/core/build/src/abap/5_syntax/_syntax_input.js");
35889
35890
  class WhenType {
35890
35891
  runSyntax(node, input) {
@@ -35894,19 +35895,21 @@ class WhenType {
35894
35895
  return undefined;
35895
35896
  }
35896
35897
  let type = undefined;
35897
- const className = nameToken.getStr();
35898
- const found = input.scope.findObjectDefinition(className);
35899
- if (found === undefined && input.scope.getDDIC().inErrorNamespace(className) === false) {
35898
+ const className = nameToken.getStr().toUpperCase();
35899
+ const found = input.scope.existsObject(className);
35900
+ if (found === null || found === void 0 ? void 0 : found.id) {
35901
+ type = new basic_1.ObjectReferenceType(found.id);
35902
+ input.scope.addReference(nameToken, found.id, _reference_1.ReferenceType.ObjectOrientedReference, input.filename);
35903
+ }
35904
+ else if (input.scope.getDDIC().inErrorNamespace(className) === false) {
35900
35905
  type = basic_1.VoidType.get(className);
35906
+ input.scope.addReference(nameToken, undefined, _reference_1.ReferenceType.ObjectOrientedVoidReference, input.filename, { ooName: className, ooType: "Void" });
35901
35907
  }
35902
- else if (found === undefined) {
35908
+ else {
35903
35909
  const message = "Class " + className + " not found";
35904
35910
  input.issues.push((0, _syntax_input_1.syntaxIssue)(input, nameToken, message));
35905
35911
  return;
35906
35912
  }
35907
- else {
35908
- type = new basic_1.ObjectReferenceType(found);
35909
- }
35910
35913
  const target = node === null || node === void 0 ? void 0 : node.findDirectExpression(Expressions.Target);
35911
35914
  const inline = target === null || target === void 0 ? void 0 : target.findDirectExpression(Expressions.InlineData);
35912
35915
  if (inline) {
@@ -56216,7 +56219,7 @@ class Registry {
56216
56219
  }
56217
56220
  static abaplintVersion() {
56218
56221
  // magic, see build script "version.sh"
56219
- return "2.119.5";
56222
+ return "2.119.6";
56220
56223
  }
56221
56224
  getDDICReferences() {
56222
56225
  return this.ddicReferences;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@abaplint/cli",
3
- "version": "2.119.5",
3
+ "version": "2.119.6",
4
4
  "description": "abaplint - Command Line Interface",
5
5
  "funding": "https://github.com/sponsors/larshp",
6
6
  "bin": {
@@ -38,7 +38,7 @@
38
38
  },
39
39
  "homepage": "https://abaplint.org",
40
40
  "devDependencies": {
41
- "@abaplint/core": "^2.119.5",
41
+ "@abaplint/core": "^2.119.6",
42
42
  "@types/chai": "^4.3.20",
43
43
  "@types/minimist": "^1.2.5",
44
44
  "@types/mocha": "^10.0.10",