@abaplint/core 2.83.5 → 2.83.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.
@@ -105,10 +105,13 @@ class MethodParameters {
105
105
  const nameToken = (_a = node.findFirstExpression(Expressions.ClassName)) === null || _a === void 0 ? void 0 : _a.getFirstToken();
106
106
  const ooName = nameToken === null || nameToken === void 0 ? void 0 : nameToken.getStr();
107
107
  const def = scope.findObjectDefinition(ooName);
108
+ const doVoid = def ? false : !scope.getDDIC().inErrorNamespace(ooName);
108
109
  if (def) {
109
110
  scope.addReference(nameToken, def, _reference_1.ReferenceType.ObjectOrientedReference, filename);
110
111
  }
111
- const doVoid = def ? false : !scope.getDDIC().inErrorNamespace(ooName);
112
+ else if (doVoid && ooName) {
113
+ scope.addReference(nameToken, undefined, _reference_1.ReferenceType.ObjectOrientedVoidReference, this.filename, { ooName: ooName.toUpperCase() });
114
+ }
112
115
  const eventName = (_b = node.findFirstExpression(Expressions.Field)) === null || _b === void 0 ? void 0 : _b.getFirstToken().getStr();
113
116
  const event = new _object_oriented_1.ObjectOriented(scope).searchEvent(def, eventName);
114
117
  for (const p of handler.findAllExpressions(Expressions.MethodParamName)) {
@@ -90,7 +90,8 @@ class DataDefinition extends _abstract_object_1.AbstractObject {
90
90
  for (const e of tree.findAllExpressions(expressions_1.CDSElement)) {
91
91
  let found = (_a = e.findDirectExpression(expressions_1.CDSAs)) === null || _a === void 0 ? void 0 : _a.findDirectExpression(expressions_1.CDSName);
92
92
  if (found === undefined) {
93
- found = e.findDirectExpression(expressions_1.CDSName);
93
+ const list = e.findDirectExpressions(expressions_1.CDSName);
94
+ found = list[list.length - 1];
94
95
  }
95
96
  if (found === undefined) {
96
97
  continue;
@@ -68,7 +68,7 @@ class Registry {
68
68
  }
69
69
  static abaplintVersion() {
70
70
  // magic, see build script "version.sh"
71
- return "2.83.5";
71
+ return "2.83.6";
72
72
  }
73
73
  getDDICReferences() {
74
74
  return this.references;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@abaplint/core",
3
- "version": "2.83.5",
3
+ "version": "2.83.6",
4
4
  "description": "abaplint - Core API",
5
5
  "main": "build/src/index.js",
6
6
  "typings": "build/abaplint.d.ts",