@abaplint/core 2.104.5 → 2.104.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.
@@ -9,7 +9,7 @@ const dynamic_1 = require("../expressions/dynamic");
9
9
  const _type_utils_1 = require("../_type_utils");
10
10
  class Assign {
11
11
  runSyntax(node, scope, filename) {
12
- var _a;
12
+ var _a, _b;
13
13
  const assignSource = node.findDirectExpression(Expressions.AssignSource);
14
14
  const sources = (assignSource === null || assignSource === void 0 ? void 0 : assignSource.findDirectExpressionsMulti([Expressions.Source, Expressions.SimpleSource3])) || [];
15
15
  const theSource = sources[sources.length - 1];
@@ -44,7 +44,12 @@ class Assign {
44
44
  }
45
45
  const target = node.findDirectExpression(Expressions.FSTarget);
46
46
  if (target) {
47
- new fstarget_1.FSTarget().runSyntax(target, scope, filename, sourceType);
47
+ if (((_b = assignSource === null || assignSource === void 0 ? void 0 : assignSource.getFirstChild()) === null || _b === void 0 ? void 0 : _b.concatTokens().toUpperCase()) === "COMPONENT") {
48
+ new fstarget_1.FSTarget().runSyntax(target, scope, filename, new basic_1.AnyType());
49
+ }
50
+ else {
51
+ new fstarget_1.FSTarget().runSyntax(target, scope, filename, sourceType);
52
+ }
48
53
  }
49
54
  for (const s of node.findAllExpressions(Expressions.Source)) {
50
55
  if (s === theSource) {
@@ -65,7 +65,7 @@ class Registry {
65
65
  }
66
66
  static abaplintVersion() {
67
67
  // magic, see build script "version.sh"
68
- return "2.104.5";
68
+ return "2.104.6";
69
69
  }
70
70
  getDDICReferences() {
71
71
  return this.ddicReferences;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@abaplint/core",
3
- "version": "2.104.5",
3
+ "version": "2.104.6",
4
4
  "description": "abaplint - Core API",
5
5
  "main": "build/src/index.js",
6
6
  "typings": "build/abaplint.d.ts",