@abaplint/cli 2.105.20 → 2.105.21

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 +9 -2
  2. package/package.json +4 -4
package/build/cli.js CHANGED
@@ -22318,6 +22318,7 @@ class TypeUtils {
22318
22318
  }
22319
22319
  else if (type instanceof basic_1.StringType
22320
22320
  || type instanceof basic_1.AnyType
22321
+ || type instanceof basic_1.DataType
22321
22322
  || type instanceof basic_1.CharacterType
22322
22323
  || type instanceof basic_1.SimpleType
22323
22324
  || type instanceof cgeneric_type_1.CGenericType
@@ -26274,7 +26275,7 @@ class NewObject {
26274
26275
  new method_parameters_1.MethodParameters().checkExporting(parameters, scope, method, filename);
26275
26276
  }
26276
26277
  else if (requiredParameters.length > 0) {
26277
- throw new Error(`constructor parameter "${requiredParameters[0].getName()}" must be supplied` + name);
26278
+ throw new Error(`constructor parameter "${requiredParameters[0].getName()}" must be supplied, ` + name);
26278
26279
  }
26279
26280
  }
26280
26281
  defaultImportingType(method) {
@@ -29395,6 +29396,7 @@ class CreateObject {
29395
29396
  }
29396
29397
  else if (!(found instanceof basic_1.ObjectReferenceType)
29397
29398
  && !(found instanceof basic_1.AnyType)
29399
+ && !(found instanceof basic_1.DataType)
29398
29400
  && !(found instanceof basic_1.GenericObjectReferenceType)) {
29399
29401
  throw new Error("Target must be an object reference, " + t.concatTokens());
29400
29402
  }
@@ -51295,7 +51297,7 @@ class Registry {
51295
51297
  }
51296
51298
  static abaplintVersion() {
51297
51299
  // magic, see build script "version.sh"
51298
- return "2.105.20";
51300
+ return "2.105.21";
51299
51301
  }
51300
51302
  getDDICReferences() {
51301
51303
  return this.ddicReferences;
@@ -62098,6 +62100,11 @@ class KeepSingleParameterCallsOnOneLine extends _abap_rule_1.ABAPRule {
62098
62100
  }
62099
62101
  isSingleParameter(c) {
62100
62102
  if (c.findDirectExpression(Expressions.Source)) {
62103
+ for (const params of c.findAllExpressions(Expressions.ParameterListS)) {
62104
+ if (params.getChildren().length > 1) {
62105
+ return false;
62106
+ }
62107
+ }
62101
62108
  return true;
62102
62109
  }
62103
62110
  const list = c.findDirectExpression(Expressions.ParameterListS);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@abaplint/cli",
3
- "version": "2.105.20",
3
+ "version": "2.105.21",
4
4
  "description": "abaplint - Command Line Interface",
5
5
  "funding": "https://github.com/sponsors/larshp",
6
6
  "bin": {
@@ -38,19 +38,19 @@
38
38
  },
39
39
  "homepage": "https://abaplint.org",
40
40
  "devDependencies": {
41
- "@abaplint/core": "^2.105.20",
41
+ "@abaplint/core": "^2.105.21",
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.19",
46
+ "@types/node": "^20.11.20",
47
47
  "@types/progress": "^2.0.7",
48
48
  "chai": "^4.4.1",
49
49
  "chalk": "^5.3.0",
50
50
  "eslint": "^8.56.0",
51
51
  "glob": "^7.2.3",
52
52
  "json5": "^2.2.3",
53
- "memfs": "^4.7.6",
53
+ "memfs": "^4.7.7",
54
54
  "minimist": "^1.2.8",
55
55
  "mocha": "^10.3.0",
56
56
  "progress": "^2.0.3",