@abaplint/transpiler-cli 2.7.149 → 2.7.151

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/bundle.js +13 -4
  2. package/package.json +5 -5
package/build/bundle.js CHANGED
@@ -11002,9 +11002,10 @@ exports.EndTestInjection = EndTestInjection;
11002
11002
  Object.defineProperty(exports, "__esModule", ({ value: true }));
11003
11003
  exports.EndTestSeam = void 0;
11004
11004
  const combi_1 = __webpack_require__(/*! ../combi */ "./node_modules/@abaplint/core/build/src/abap/2_statements/combi.js");
11005
+ const version_1 = __webpack_require__(/*! ../../../version */ "./node_modules/@abaplint/core/build/src/version.js");
11005
11006
  class EndTestSeam {
11006
11007
  getMatcher() {
11007
- return (0, combi_1.str)("END-TEST-SEAM");
11008
+ return (0, combi_1.ver)(version_1.Version.v750, (0, combi_1.str)("END-TEST-SEAM"));
11008
11009
  }
11009
11010
  }
11010
11011
  exports.EndTestSeam = EndTestSeam;
@@ -16072,9 +16073,10 @@ Object.defineProperty(exports, "__esModule", ({ value: true }));
16072
16073
  exports.TestSeam = void 0;
16073
16074
  const combi_1 = __webpack_require__(/*! ../combi */ "./node_modules/@abaplint/core/build/src/abap/2_statements/combi.js");
16074
16075
  const expressions_1 = __webpack_require__(/*! ../expressions */ "./node_modules/@abaplint/core/build/src/abap/2_statements/expressions/index.js");
16076
+ const version_1 = __webpack_require__(/*! ../../../version */ "./node_modules/@abaplint/core/build/src/version.js");
16075
16077
  class TestSeam {
16076
16078
  getMatcher() {
16077
- return (0, combi_1.seq)("TEST-SEAM", expressions_1.TestSeamName);
16079
+ return (0, combi_1.ver)(version_1.Version.v750, (0, combi_1.seq)("TEST-SEAM", expressions_1.TestSeamName));
16078
16080
  }
16079
16081
  }
16080
16082
  exports.TestSeam = TestSeam;
@@ -23999,9 +24001,12 @@ class InlineData {
23999
24001
  var _a;
24000
24002
  const token = (_a = node.findFirstExpression(Expressions.TargetField)) === null || _a === void 0 ? void 0 : _a.getFirstToken();
24001
24003
  if (token && type) {
24002
- if (type instanceof basic_1.CSequenceType) {
24004
+ if (type instanceof basic_1.CSequenceType || type instanceof basic_1.CLikeType) {
24003
24005
  type = basic_1.StringType.get();
24004
24006
  }
24007
+ else if (type instanceof basic_1.CGenericType) {
24008
+ throw new Error("InlineData, generic type C cannot be used for inferred type");
24009
+ }
24005
24010
  const identifier = new _typed_identifier_1.TypedIdentifier(token, filename, type, ["inline" /* IdentifierMeta.InlineDefinition */]);
24006
24011
  scope.addIdentifier(identifier);
24007
24012
  scope.addReference(token, identifier, _reference_1.ReferenceType.DataWriteReference, filename);
@@ -50091,7 +50096,7 @@ class Registry {
50091
50096
  }
50092
50097
  static abaplintVersion() {
50093
50098
  // magic, see build script "version.sh"
50094
- return "2.105.12";
50099
+ return "2.105.13";
50095
50100
  }
50096
50101
  getDDICReferences() {
50097
50102
  return this.ddicReferences;
@@ -56264,6 +56269,10 @@ LOOP AT ${groupTargetName}tab ${groupTarget}.`;
56264
56269
  if (valueBody === undefined) {
56265
56270
  return;
56266
56271
  }
56272
+ const type = source.findDirectExpression(Expressions.TypeNameOrInfer);
56273
+ if (type === undefined || (type === null || type === void 0 ? void 0 : type.concatTokens()) !== "#") {
56274
+ return;
56275
+ }
56267
56276
  const fieldAssignments = valueBody.findDirectExpressions(Expressions.FieldAssignment);
56268
56277
  if (fieldAssignments.length === 0) {
56269
56278
  return;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@abaplint/transpiler-cli",
3
- "version": "2.7.149",
3
+ "version": "2.7.151",
4
4
  "description": "Transpiler - Command Line Interface",
5
5
  "funding": "https://github.com/sponsors/larshp",
6
6
  "bin": {
@@ -26,14 +26,14 @@
26
26
  "author": "abaplint",
27
27
  "license": "MIT",
28
28
  "devDependencies": {
29
- "@abaplint/transpiler": "^2.7.149",
29
+ "@abaplint/transpiler": "^2.7.151",
30
30
  "@types/glob": "^8.1.0",
31
31
  "glob": "=7.2.0",
32
32
  "@types/progress": "^2.0.7",
33
- "@types/node": "^20.11.6",
34
- "@abaplint/core": "^2.105.12",
33
+ "@types/node": "^20.11.8",
34
+ "@abaplint/core": "^2.105.13",
35
35
  "progress": "^2.0.3",
36
- "webpack": "^5.89.0",
36
+ "webpack": "^5.90.0",
37
37
  "webpack-cli": "^5.1.4",
38
38
  "typescript": "^5.3.3"
39
39
  }