@abaplint/cli 2.105.12 → 2.105.13

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 +13 -4
  2. package/package.json +4 -4
package/build/cli.js CHANGED
@@ -12053,9 +12053,10 @@ exports.EndTestInjection = EndTestInjection;
12053
12053
  Object.defineProperty(exports, "__esModule", ({ value: true }));
12054
12054
  exports.EndTestSeam = void 0;
12055
12055
  const combi_1 = __webpack_require__(/*! ../combi */ "./node_modules/@abaplint/core/build/src/abap/2_statements/combi.js");
12056
+ const version_1 = __webpack_require__(/*! ../../../version */ "./node_modules/@abaplint/core/build/src/version.js");
12056
12057
  class EndTestSeam {
12057
12058
  getMatcher() {
12058
- return (0, combi_1.str)("END-TEST-SEAM");
12059
+ return (0, combi_1.ver)(version_1.Version.v750, (0, combi_1.str)("END-TEST-SEAM"));
12059
12060
  }
12060
12061
  }
12061
12062
  exports.EndTestSeam = EndTestSeam;
@@ -17123,9 +17124,10 @@ Object.defineProperty(exports, "__esModule", ({ value: true }));
17123
17124
  exports.TestSeam = void 0;
17124
17125
  const combi_1 = __webpack_require__(/*! ../combi */ "./node_modules/@abaplint/core/build/src/abap/2_statements/combi.js");
17125
17126
  const expressions_1 = __webpack_require__(/*! ../expressions */ "./node_modules/@abaplint/core/build/src/abap/2_statements/expressions/index.js");
17127
+ const version_1 = __webpack_require__(/*! ../../../version */ "./node_modules/@abaplint/core/build/src/version.js");
17126
17128
  class TestSeam {
17127
17129
  getMatcher() {
17128
- return (0, combi_1.seq)("TEST-SEAM", expressions_1.TestSeamName);
17130
+ return (0, combi_1.ver)(version_1.Version.v750, (0, combi_1.seq)("TEST-SEAM", expressions_1.TestSeamName));
17129
17131
  }
17130
17132
  }
17131
17133
  exports.TestSeam = TestSeam;
@@ -25050,9 +25052,12 @@ class InlineData {
25050
25052
  var _a;
25051
25053
  const token = (_a = node.findFirstExpression(Expressions.TargetField)) === null || _a === void 0 ? void 0 : _a.getFirstToken();
25052
25054
  if (token && type) {
25053
- if (type instanceof basic_1.CSequenceType) {
25055
+ if (type instanceof basic_1.CSequenceType || type instanceof basic_1.CLikeType) {
25054
25056
  type = basic_1.StringType.get();
25055
25057
  }
25058
+ else if (type instanceof basic_1.CGenericType) {
25059
+ throw new Error("InlineData, generic type C cannot be used for inferred type");
25060
+ }
25056
25061
  const identifier = new _typed_identifier_1.TypedIdentifier(token, filename, type, ["inline" /* IdentifierMeta.InlineDefinition */]);
25057
25062
  scope.addIdentifier(identifier);
25058
25063
  scope.addReference(token, identifier, _reference_1.ReferenceType.DataWriteReference, filename);
@@ -51142,7 +51147,7 @@ class Registry {
51142
51147
  }
51143
51148
  static abaplintVersion() {
51144
51149
  // magic, see build script "version.sh"
51145
- return "2.105.12";
51150
+ return "2.105.13";
51146
51151
  }
51147
51152
  getDDICReferences() {
51148
51153
  return this.ddicReferences;
@@ -57315,6 +57320,10 @@ LOOP AT ${groupTargetName}tab ${groupTarget}.`;
57315
57320
  if (valueBody === undefined) {
57316
57321
  return;
57317
57322
  }
57323
+ const type = source.findDirectExpression(Expressions.TypeNameOrInfer);
57324
+ if (type === undefined || (type === null || type === void 0 ? void 0 : type.concatTokens()) !== "#") {
57325
+ return;
57326
+ }
57318
57327
  const fieldAssignments = valueBody.findDirectExpressions(Expressions.FieldAssignment);
57319
57328
  if (fieldAssignments.length === 0) {
57320
57329
  return;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@abaplint/cli",
3
- "version": "2.105.12",
3
+ "version": "2.105.13",
4
4
  "description": "abaplint - Command Line Interface",
5
5
  "funding": "https://github.com/sponsors/larshp",
6
6
  "bin": {
@@ -38,12 +38,12 @@
38
38
  },
39
39
  "homepage": "https://abaplint.org",
40
40
  "devDependencies": {
41
- "@abaplint/core": "^2.105.12",
41
+ "@abaplint/core": "^2.105.13",
42
42
  "@types/chai": "^4.3.11",
43
43
  "@types/glob": "^8.1.0",
44
44
  "@types/minimist": "^1.2.5",
45
45
  "@types/mocha": "^10.0.6",
46
- "@types/node": "^20.11.5",
46
+ "@types/node": "^20.11.6",
47
47
  "@types/progress": "^2.0.7",
48
48
  "chai": "^4.4.1",
49
49
  "chalk": "^5.3.0",
@@ -55,7 +55,7 @@
55
55
  "mocha": "^10.2.0",
56
56
  "progress": "^2.0.3",
57
57
  "typescript": "^5.3.3",
58
- "webpack": "^5.89.0",
58
+ "webpack": "^5.90.0",
59
59
  "webpack-cli": "^5.1.4",
60
60
  "xml-js": "^1.6.11"
61
61
  },