@abaplint/cli 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.
Files changed (2) hide show
  1. package/build/cli.js +8 -3
  2. package/package.json +2 -2
package/build/cli.js CHANGED
@@ -28216,7 +28216,7 @@ const dynamic_1 = __webpack_require__(/*! ../expressions/dynamic */ "./node_modu
28216
28216
  const _type_utils_1 = __webpack_require__(/*! ../_type_utils */ "./node_modules/@abaplint/core/build/src/abap/5_syntax/_type_utils.js");
28217
28217
  class Assign {
28218
28218
  runSyntax(node, scope, filename) {
28219
- var _a;
28219
+ var _a, _b;
28220
28220
  const assignSource = node.findDirectExpression(Expressions.AssignSource);
28221
28221
  const sources = (assignSource === null || assignSource === void 0 ? void 0 : assignSource.findDirectExpressionsMulti([Expressions.Source, Expressions.SimpleSource3])) || [];
28222
28222
  const theSource = sources[sources.length - 1];
@@ -28251,7 +28251,12 @@ class Assign {
28251
28251
  }
28252
28252
  const target = node.findDirectExpression(Expressions.FSTarget);
28253
28253
  if (target) {
28254
- new fstarget_1.FSTarget().runSyntax(target, scope, filename, sourceType);
28254
+ if (((_b = assignSource === null || assignSource === void 0 ? void 0 : assignSource.getFirstChild()) === null || _b === void 0 ? void 0 : _b.concatTokens().toUpperCase()) === "COMPONENT") {
28255
+ new fstarget_1.FSTarget().runSyntax(target, scope, filename, new basic_1.AnyType());
28256
+ }
28257
+ else {
28258
+ new fstarget_1.FSTarget().runSyntax(target, scope, filename, sourceType);
28259
+ }
28255
28260
  }
28256
28261
  for (const s of node.findAllExpressions(Expressions.Source)) {
28257
28262
  if (s === theSource) {
@@ -51037,7 +51042,7 @@ class Registry {
51037
51042
  }
51038
51043
  static abaplintVersion() {
51039
51044
  // magic, see build script "version.sh"
51040
- return "2.104.5";
51045
+ return "2.104.6";
51041
51046
  }
51042
51047
  getDDICReferences() {
51043
51048
  return this.ddicReferences;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@abaplint/cli",
3
- "version": "2.104.5",
3
+ "version": "2.104.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.104.5",
41
+ "@abaplint/core": "^2.104.6",
42
42
  "@types/chai": "^4.3.11",
43
43
  "@types/glob": "^7.2.0",
44
44
  "@types/minimist": "^1.2.5",