@abaplint/cli 2.113.220 → 2.113.222

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 +20 -12
  2. package/package.json +2 -2
package/build/cli.js CHANGED
@@ -7608,7 +7608,7 @@ const combi_1 = __webpack_require__(/*! ../combi */ "./node_modules/@abaplint/co
7608
7608
  const tokens_1 = __webpack_require__(/*! ../../1_lexer/tokens */ "./node_modules/@abaplint/core/build/src/abap/1_lexer/tokens/index.js");
7609
7609
  class ReportName extends combi_1.Expression {
7610
7610
  getRunnable() {
7611
- return (0, combi_1.seq)((0, combi_1.regex)(/^[\w/$%]+$/), (0, combi_1.star)((0, combi_1.seq)((0, combi_1.tok)(tokens_1.Dash), (0, combi_1.regex)(/^\w+$/))));
7611
+ return (0, combi_1.seq)((0, combi_1.regex)(/^[\w/$%&]+$/), (0, combi_1.star)((0, combi_1.seq)((0, combi_1.tok)(tokens_1.Dash), (0, combi_1.regex)(/^\w+$/))));
7612
7612
  }
7613
7613
  }
7614
7614
  exports.ReportName = ReportName;
@@ -8166,13 +8166,14 @@ const sql_field_name_1 = __webpack_require__(/*! ./sql_field_name */ "./node_mod
8166
8166
  const sql_source_1 = __webpack_require__(/*! ./sql_source */ "./node_modules/@abaplint/core/build/src/abap/2_statements/expressions/sql_source.js");
8167
8167
  class SQLCase extends combi_1.Expression {
8168
8168
  getRunnable() {
8169
+ const abap = (0, combi_1.seq)((0, combi_1.tok)(tokens_1.WAt), _1.SimpleFieldChain2);
8169
8170
  const field = (0, combi_1.altPrio)(_1.SQLAggregation, SQLCase, _1.SQLFunction, _1.SQLPath, sql_field_name_1.SQLFieldName, constant_1.Constant);
8170
8171
  const sub = (0, combi_1.seq)((0, combi_1.altPrio)("+", "-", "*", "/", "&&"), (0, combi_1.optPrio)((0, combi_1.tok)(tokens_1.WParenLeftW)), field, (0, combi_1.optPrio)((0, combi_1.tok)(tokens_1.WParenRightW)));
8171
8172
  const sourc = (0, combi_1.altPrio)(SQLCase, _1.SQLAggregation, _1.SQLFunction, sql_source_1.SQLSource, constant_1.Constant);
8172
- const val = (0, combi_1.altPrio)(sql_cond_1.SQLCond, constant_1.Constant, (0, combi_1.seq)((0, combi_1.tok)(tokens_1.WAt), _1.SimpleSource3));
8173
+ const val = (0, combi_1.altPrio)(sql_cond_1.SQLCond, constant_1.Constant, abap);
8173
8174
  const when = (0, combi_1.seq)("WHEN", val, "THEN", sourc, (0, combi_1.starPrio)(sub));
8174
8175
  const els = (0, combi_1.seq)("ELSE", sourc);
8175
- return (0, combi_1.ver)(version_1.Version.v740sp05, (0, combi_1.seq)("CASE", (0, combi_1.opt)(sql_field_name_1.SQLFieldName), (0, combi_1.plusPrio)(when), (0, combi_1.optPrio)(els), "END"));
8176
+ return (0, combi_1.ver)(version_1.Version.v740sp05, (0, combi_1.seq)("CASE", (0, combi_1.opt)((0, combi_1.altPrio)(sql_field_name_1.SQLFieldName, abap)), (0, combi_1.plusPrio)(when), (0, combi_1.optPrio)(els), "END"));
8176
8177
  }
8177
8178
  }
8178
8179
  exports.SQLCase = SQLCase;
@@ -17606,11 +17607,13 @@ class Submit {
17606
17607
  const cover = (0, combi_1.seq)("SAP COVER PAGE", expressions_1.Source);
17607
17608
  const copies = (0, combi_1.seq)("COPIES", expressions_1.Source);
17608
17609
  const datasetExpiration = (0, combi_1.seq)("DATASET EXPIRATION", expressions_1.Source);
17610
+ const coverText = (0, combi_1.seq)("COVER TEXT", expressions_1.Source);
17611
+ const listName = (0, combi_1.seq)("LIST NAME", expressions_1.Source);
17609
17612
  const keep = (0, combi_1.seq)("KEEP IN SPOOL", expressions_1.Source);
17610
17613
  const imm = (0, combi_1.seq)("IMMEDIATELY", expressions_1.Source);
17611
17614
  const dest = (0, combi_1.seq)("DESTINATION", expressions_1.Source);
17612
17615
  const language = (0, combi_1.seq)("LANGUAGE", expressions_1.Source);
17613
- const perm = (0, combi_1.per)((0, combi_1.plus)(awith), selectionTable, (0, combi_1.plus)(awith), spool, lineSize, lineCount, archive, user, sset, ssetp, keep, cover, imm, layout, dest, language, free, newList, uss, copies, datasetExpiration, "TO SAP-SPOOL", "WITHOUT SPOOL DYNPRO", "VIA SELECTION-SCREEN", exporting, expressions_1.AndReturn, job);
17616
+ const perm = (0, combi_1.per)((0, combi_1.plus)(awith), selectionTable, (0, combi_1.plus)(awith), spool, lineSize, lineCount, archive, user, sset, ssetp, keep, cover, imm, layout, dest, coverText, listName, language, free, newList, uss, copies, datasetExpiration, "TO SAP-SPOOL", "WITHOUT SPOOL DYNPRO", "VIA SELECTION-SCREEN", exporting, expressions_1.AndReturn, job);
17614
17617
  const ret = (0, combi_1.seq)("SUBMIT", prog, (0, combi_1.opt)(perm));
17615
17618
  return (0, combi_1.verNot)(version_1.Version.Cloud, ret);
17616
17619
  }
@@ -41149,7 +41152,7 @@ const cds_integer_1 = __webpack_require__(/*! ./cds_integer */ "./node_modules/@
41149
41152
  class CDSArithmetics extends combi_1.Expression {
41150
41153
  getRunnable() {
41151
41154
  const name = (0, combi_1.seq)(_1.CDSName, (0, combi_1.optPrio)((0, combi_1.seq)(".", _1.CDSName)));
41152
- const val = (0, combi_1.altPrio)(cds_integer_1.CDSInteger, _1.CDSFunction, _1.CDSCase, _1.CDSCast, _1.CDSString, name);
41155
+ const val = (0, combi_1.altPrio)(cds_integer_1.CDSInteger, _1.CDSFunction, _1.CDSCase, _1.CDSCast, _1.CDSString, _1.CDSAggregate, name);
41153
41156
  const operator = (0, combi_1.altPrio)("+", "-", "*", "/");
41154
41157
  const operatorValue = (0, combi_1.seq)(operator, val);
41155
41158
  const paren = (0, combi_1.seq)("(", val, (0, combi_1.plusPrio)(operatorValue), ")");
@@ -41274,7 +41277,8 @@ const combi_1 = __webpack_require__(/*! ../../abap/2_statements/combi */ "./node
41274
41277
  class CDSCast extends combi_1.Expression {
41275
41278
  getRunnable() {
41276
41279
  const name = (0, combi_1.seq)(_1.CDSName, (0, combi_1.starPrio)((0, combi_1.seq)(".", _1.CDSName)));
41277
- return (0, combi_1.seq)("CAST", "(", (0, combi_1.altPrio)(_1.CDSFunction, _1.CDSCase, _1.CDSAggregate, _1.CDSArithmetics, CDSCast, _1.CDSString, name), "AS", _1.CDSType, (0, combi_1.optPrio)((0, combi_1.seq)("PRESERVING", "TYPE")), ")");
41280
+ const first = (0, combi_1.altPrio)(_1.CDSFunction, _1.CDSCase, _1.CDSAggregate, _1.CDSArithmetics, CDSCast, _1.CDSString, _1.CDSInteger, name);
41281
+ return (0, combi_1.seq)("CAST", "(", first, "AS", _1.CDSType, (0, combi_1.optPrio)((0, combi_1.seq)("PRESERVING", "TYPE")), ")");
41278
41282
  }
41279
41283
  }
41280
41284
  exports.CDSCast = CDSCast;
@@ -41682,7 +41686,7 @@ class CDSJoin extends combi_1.Expression {
41682
41686
  getRunnable() {
41683
41687
  const cond = (0, combi_1.seq)(_1.CDSSource, "ON", cds_condition_1.CDSCondition);
41684
41688
  const foo = (0, combi_1.altPrio)((0, combi_1.seq)("(", cond, ")"), cond);
41685
- return (0, combi_1.seq)((0, combi_1.optPrio)((0, combi_1.altPrio)("LEFT OUTER TO ONE", "LEFT OUTER", "INNER", "CROSS")), "JOIN", foo);
41689
+ return (0, combi_1.seq)((0, combi_1.optPrio)((0, combi_1.altPrio)("LEFT OUTER TO ONE", "LEFT OUTER", "INNER", "CROSS", "RIGHT OUTER")), "JOIN", foo);
41686
41690
  }
41687
41691
  }
41688
41692
  exports.CDSJoin = CDSJoin;
@@ -54553,7 +54557,7 @@ class Registry {
54553
54557
  }
54554
54558
  static abaplintVersion() {
54555
54559
  // magic, see build script "version.sh"
54556
- return "2.113.220";
54560
+ return "2.113.222";
54557
54561
  }
54558
54562
  getDDICReferences() {
54559
54563
  return this.ddicReferences;
@@ -58241,6 +58245,7 @@ class CloudTypes {
58241
58245
  || obj instanceof Objects.ApplicationLogObject
58242
58246
  || obj instanceof Objects.CommunicationScenario
58243
58247
  || obj instanceof Objects.DataControl
58248
+ || obj instanceof Objects.Namespace
58244
58249
  || obj instanceof Objects.KnowledgeTransferDocument
58245
58250
  || obj instanceof Objects.DataDefinition
58246
58251
  || obj instanceof Objects.DataElement
@@ -65201,8 +65206,8 @@ class ImplementMethods extends _abap_rule_1.ABAPRule {
65201
65206
  continue;
65202
65207
  }
65203
65208
  else {
65204
- const message = "Abstract methods can only be defined in abstract classes.";
65205
- const issue = issue_1.Issue.atIdentifier(def.identifier, message, this.getMetadata().key, this.conf.severity);
65209
+ const message = "Abstract methods can only be defined in abstract classes, " + md.name;
65210
+ const issue = issue_1.Issue.atIdentifier(md.identifier, message, this.getMetadata().key, this.conf.severity);
65206
65211
  ret.push(issue);
65207
65212
  break;
65208
65213
  }
@@ -65313,10 +65318,13 @@ class ImplementMethods extends _abap_rule_1.ABAPRule {
65313
65318
  continue;
65314
65319
  }
65315
65320
  else {
65316
- const message = "Abstract methods can only be defined in abstract classes.";
65317
- const issue = issue_1.Issue.atIdentifier(def.identifier, message, this.getMetadata().key, this.conf.severity);
65321
+ // there is some bug here, which I cannot reproduce right now
65322
+ /*
65323
+ const message = "Abstract methods can only be defined in abstract classes, " + m.method.name;
65324
+ const issue = Issue.atIdentifier(m.method.identifier, message, this.getMetadata().key, this.conf.severity);
65318
65325
  ret.push(issue);
65319
65326
  break;
65327
+ */
65320
65328
  }
65321
65329
  }
65322
65330
  if (this.isImplemented(m, def, impl) === false) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@abaplint/cli",
3
- "version": "2.113.220",
3
+ "version": "2.113.222",
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.113.220",
41
+ "@abaplint/core": "^2.113.222",
42
42
  "@types/chai": "^4.3.20",
43
43
  "@types/minimist": "^1.2.5",
44
44
  "@types/mocha": "^10.0.10",