@abaplint/cli 2.105.11 → 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 +29 -4
  2. package/package.json +5 -5
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);
@@ -26799,6 +26804,9 @@ class Source {
26799
26804
  while (children.length >= 0) {
26800
26805
  if (first instanceof nodes_1.ExpressionNode && first.get() instanceof Expressions.MethodCallChain) {
26801
26806
  context = new method_call_chain_1.MethodCallChain().runSyntax(first, scope, filename, targetType);
26807
+ if (context === undefined) {
26808
+ throw new Error("Method has no RETURNING value");
26809
+ }
26802
26810
  }
26803
26811
  else if (first instanceof nodes_1.ExpressionNode && first.get() instanceof Expressions.FieldChain) {
26804
26812
  context = new field_chain_1.FieldChain().runSyntax(first, scope, filename, type);
@@ -27003,6 +27011,19 @@ class SQLCompare {
27003
27011
  }
27004
27012
  sourceType = new sql_source_1.SQLSource().runSyntax(s, scope, filename);
27005
27013
  }
27014
+ const sqlin = node.findDirectExpression(Expressions.SQLIn);
27015
+ if (sqlin && sqlin.getChildren().length === 2) {
27016
+ const insource = node.findFirstExpression(Expressions.SQLSource);
27017
+ if (insource) {
27018
+ const intype = new sql_source_1.SQLSource().runSyntax(insource, scope, filename);
27019
+ if (intype &&
27020
+ !(intype instanceof basic_1.VoidType) &&
27021
+ !(intype instanceof basic_1.UnknownType) &&
27022
+ !(intype instanceof basic_1.TableType)) {
27023
+ throw new Error("IN, not a table");
27024
+ }
27025
+ }
27026
+ }
27006
27027
  const fieldName = (_a = node.findDirectExpression(Expressions.SQLFieldName)) === null || _a === void 0 ? void 0 : _a.concatTokens();
27007
27028
  if (fieldName && sourceType && token) {
27008
27029
  // check compatibility for rule sql_value_conversion
@@ -51126,7 +51147,7 @@ class Registry {
51126
51147
  }
51127
51148
  static abaplintVersion() {
51128
51149
  // magic, see build script "version.sh"
51129
- return "2.105.11";
51150
+ return "2.105.13";
51130
51151
  }
51131
51152
  getDDICReferences() {
51132
51153
  return this.ddicReferences;
@@ -57299,6 +57320,10 @@ LOOP AT ${groupTargetName}tab ${groupTarget}.`;
57299
57320
  if (valueBody === undefined) {
57300
57321
  return;
57301
57322
  }
57323
+ const type = source.findDirectExpression(Expressions.TypeNameOrInfer);
57324
+ if (type === undefined || (type === null || type === void 0 ? void 0 : type.concatTokens()) !== "#") {
57325
+ return;
57326
+ }
57302
57327
  const fieldAssignments = valueBody.findDirectExpressions(Expressions.FieldAssignment);
57303
57328
  if (fieldAssignments.length === 0) {
57304
57329
  return;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@abaplint/cli",
3
- "version": "2.105.11",
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.11",
41
+ "@abaplint/core": "^2.105.13",
42
42
  "@types/chai": "^4.3.11",
43
- "@types/glob": "^7.2.0",
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
  },