@abaplint/cli 2.105.18 → 2.105.19

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 +16 -4
  2. package/package.json +2 -2
package/build/cli.js CHANGED
@@ -7196,7 +7196,7 @@ const combi_1 = __webpack_require__(/*! ../combi */ "./node_modules/@abaplint/co
7196
7196
  const _1 = __webpack_require__(/*! . */ "./node_modules/@abaplint/core/build/src/abap/2_statements/expressions/index.js");
7197
7197
  class RaiseWith extends combi_1.Expression {
7198
7198
  getRunnable() {
7199
- const wit = (0, combi_1.seq)("WITH", _1.SimpleSource3, (0, combi_1.opt)(_1.SimpleSource3), (0, combi_1.opt)(_1.SimpleSource3), (0, combi_1.opt)(_1.SimpleSource3));
7199
+ const wit = (0, combi_1.seq)("WITH", _1.SimpleSource1, (0, combi_1.opt)(_1.SimpleSource1), (0, combi_1.opt)(_1.SimpleSource1), (0, combi_1.opt)(_1.SimpleSource1));
7200
7200
  return wit;
7201
7201
  }
7202
7202
  }
@@ -26302,7 +26302,7 @@ const Expressions = __webpack_require__(/*! ../../2_statements/expressions */ ".
26302
26302
  const source_1 = __webpack_require__(/*! ./source */ "./node_modules/@abaplint/core/build/src/abap/5_syntax/expressions/source.js");
26303
26303
  class RaiseWith {
26304
26304
  runSyntax(node, scope, filename) {
26305
- for (const f of node.findDirectExpressions(Expressions.SimpleSource3)) {
26305
+ for (const f of node.findDirectExpressions(Expressions.SimpleSource1)) {
26306
26306
  new source_1.Source().runSyntax(f, scope, filename);
26307
26307
  }
26308
26308
  }
@@ -51249,7 +51249,7 @@ class Registry {
51249
51249
  }
51250
51250
  static abaplintVersion() {
51251
51251
  // magic, see build script "version.sh"
51252
- return "2.105.18";
51252
+ return "2.105.19";
51253
51253
  }
51254
51254
  getDDICReferences() {
51255
51255
  return this.ddicReferences;
@@ -57059,7 +57059,7 @@ ${indentation}CATCH ${className} INTO ${targetName}.`;
57059
57059
  }
57060
57060
  startToken = node.getFirstToken();
57061
57061
  }
57062
- const withs = ((_f = node.findDirectExpression(Expressions.RaiseWith)) === null || _f === void 0 ? void 0 : _f.findDirectExpressions(Expressions.SimpleSource3)) || [];
57062
+ const withs = ((_f = node.findDirectExpression(Expressions.RaiseWith)) === null || _f === void 0 ? void 0 : _f.findDirectExpressions(Expressions.SimpleSource1)) || [];
57063
57063
  const className = ((_g = node.findDirectExpression(Expressions.ClassName)) === null || _g === void 0 ? void 0 : _g.concatTokens()) || "ERROR";
57064
57064
  const uniqueName1 = this.uniqueName(node.getFirstToken().getStart(), lowFile.getFilename(), highSyntax);
57065
57065
  const uniqueName2 = this.uniqueName(node.getFirstToken().getStart(), lowFile.getFilename(), highSyntax);
@@ -59147,6 +59147,7 @@ const Structures = __webpack_require__(/*! ../abap/3_structures/structures */ ".
59147
59147
  const _abap_rule_1 = __webpack_require__(/*! ./_abap_rule */ "./node_modules/@abaplint/core/build/src/rules/_abap_rule.js");
59148
59148
  const _basic_rule_config_1 = __webpack_require__(/*! ./_basic_rule_config */ "./node_modules/@abaplint/core/build/src/rules/_basic_rule_config.js");
59149
59149
  const _irule_1 = __webpack_require__(/*! ./_irule */ "./node_modules/@abaplint/core/build/src/rules/_irule.js");
59150
+ const _statement_1 = __webpack_require__(/*! ../abap/2_statements/statements/_statement */ "./node_modules/@abaplint/core/build/src/abap/2_statements/statements/_statement.js");
59150
59151
  class EmptyStructureConf extends _basic_rule_config_1.BasicRuleConfig {
59151
59152
  constructor() {
59152
59153
  super(...arguments);
@@ -59201,6 +59202,11 @@ class EmptyStructure extends _abap_rule_1.ABAPRule {
59201
59202
  if (stru === undefined) {
59202
59203
  return [];
59203
59204
  }
59205
+ for (const statement of file.getStatements()) {
59206
+ if (statement.get() instanceof _statement_1.Unknown) {
59207
+ return []; // contains parser errors
59208
+ }
59209
+ }
59204
59210
  const candidates = [];
59205
59211
  if (this.getConfig().loop === true) {
59206
59212
  candidates.push(...stru.findAllStructuresRecursive(Structures.Loop));
@@ -60610,6 +60616,7 @@ const _basic_rule_config_1 = __webpack_require__(/*! ./_basic_rule_config */ "./
60610
60616
  const _abap_rule_1 = __webpack_require__(/*! ./_abap_rule */ "./node_modules/@abaplint/core/build/src/rules/_abap_rule.js");
60611
60617
  const _irule_1 = __webpack_require__(/*! ./_irule */ "./node_modules/@abaplint/core/build/src/rules/_irule.js");
60612
60618
  const nodes_1 = __webpack_require__(/*! ../abap/nodes */ "./node_modules/@abaplint/core/build/src/abap/nodes/index.js");
60619
+ const _statement_1 = __webpack_require__(/*! ../abap/2_statements/statements/_statement */ "./node_modules/@abaplint/core/build/src/abap/2_statements/statements/_statement.js");
60613
60620
  class IdenticalContentsConf extends _basic_rule_config_1.BasicRuleConfig {
60614
60621
  }
60615
60622
  exports.IdenticalContentsConf = IdenticalContentsConf;
@@ -60655,6 +60662,11 @@ WRITE 'world'.`,
60655
60662
  if (structure === undefined) {
60656
60663
  return [];
60657
60664
  }
60665
+ for (const statement of file.getStatements()) {
60666
+ if (statement.get() instanceof _statement_1.Unknown) {
60667
+ return []; // contains parser errors
60668
+ }
60669
+ }
60658
60670
  for (const i of structure.findAllStructuresRecursive(Structures.If)) {
60659
60671
  issues = issues.concat(this.analyzeIf(file, i));
60660
60672
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@abaplint/cli",
3
- "version": "2.105.18",
3
+ "version": "2.105.19",
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.105.18",
41
+ "@abaplint/core": "^2.105.19",
42
42
  "@types/chai": "^4.3.11",
43
43
  "@types/glob": "^8.1.0",
44
44
  "@types/minimist": "^1.2.5",