@abaplint/core 2.85.28 → 2.85.29

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.
@@ -36,10 +36,11 @@ class MethodSource {
36
36
  ooType: "CLAS"
37
37
  };
38
38
  scope.addReference(last.getFirstToken(), foundMethod, _reference_1.ReferenceType.MethodReference, filename, extra);
39
+ return foundMethod;
39
40
  }
40
41
  }
41
42
  else if (context instanceof basic_1.VoidType) {
42
- return;
43
+ return context;
43
44
  }
44
45
  else {
45
46
  throw new Error("MethodSource, not a object reference, " + node.concatTokens());
@@ -61,6 +62,7 @@ class MethodSource {
61
62
  new Dynamic().runSyntax(d, scope, filename);
62
63
  }
63
64
  */
65
+ return undefined;
64
66
  }
65
67
  }
66
68
  exports.MethodSource = MethodSource;
@@ -17,11 +17,11 @@ class Call {
17
17
  if (methodSource === undefined) {
18
18
  throw new Error("Call, child MethodSource not found");
19
19
  }
20
- new method_source_1.MethodSource().runSyntax(methodSource, scope, filename);
20
+ const methodDef = new method_source_1.MethodSource().runSyntax(methodSource, scope, filename);
21
21
  const body = node.findDirectExpression(Expressions.MethodCallBody);
22
22
  if (body) {
23
23
  // todo, resolve the method definition above and pass, if possible, in case of dynamic pass void
24
- new method_call_body_1.MethodCallBody().runSyntax(body, scope, filename, new void_type_1.VoidType("CallTODO"));
24
+ new method_call_body_1.MethodCallBody().runSyntax(body, scope, filename, methodDef || new void_type_1.VoidType("CallTODO"));
25
25
  }
26
26
  }
27
27
  }
@@ -68,7 +68,7 @@ class Registry {
68
68
  }
69
69
  static abaplintVersion() {
70
70
  // magic, see build script "version.sh"
71
- return "2.85.28";
71
+ return "2.85.29";
72
72
  }
73
73
  getDDICReferences() {
74
74
  return this.references;
@@ -338,6 +338,9 @@ Only one transformation is applied to a statement at a time, so multiple steps m
338
338
  else if (fieldList.concatTokens() === "*") {
339
339
  fieldDefinition = `DATA ${name} TYPE ${tableName}.`;
340
340
  }
341
+ else if (fieldList.concatTokens().toUpperCase() === "COUNT( * )") {
342
+ fieldDefinition = `DATA ${name} TYPE i.`;
343
+ }
341
344
  else {
342
345
  for (const f of fields) {
343
346
  const fieldName = f.concatTokens();
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@abaplint/core",
3
- "version": "2.85.28",
3
+ "version": "2.85.29",
4
4
  "description": "abaplint - Core API",
5
5
  "main": "build/src/index.js",
6
6
  "typings": "build/abaplint.d.ts",