@abaplint/core 2.113.220 → 2.113.221

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.
@@ -5,7 +5,7 @@ const combi_1 = require("../combi");
5
5
  const tokens_1 = require("../../1_lexer/tokens");
6
6
  class ReportName extends combi_1.Expression {
7
7
  getRunnable() {
8
- 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+$/))));
8
+ 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+$/))));
9
9
  }
10
10
  }
11
11
  exports.ReportName = ReportName;
@@ -11,13 +11,14 @@ const sql_field_name_1 = require("./sql_field_name");
11
11
  const sql_source_1 = require("./sql_source");
12
12
  class SQLCase extends combi_1.Expression {
13
13
  getRunnable() {
14
+ const abap = (0, combi_1.seq)((0, combi_1.tok)(tokens_1.WAt), _1.SimpleFieldChain2);
14
15
  const field = (0, combi_1.altPrio)(_1.SQLAggregation, SQLCase, _1.SQLFunction, _1.SQLPath, sql_field_name_1.SQLFieldName, constant_1.Constant);
15
16
  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)));
16
17
  const sourc = (0, combi_1.altPrio)(SQLCase, _1.SQLAggregation, _1.SQLFunction, sql_source_1.SQLSource, constant_1.Constant);
17
- 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));
18
+ const val = (0, combi_1.altPrio)(sql_cond_1.SQLCond, constant_1.Constant, abap);
18
19
  const when = (0, combi_1.seq)("WHEN", val, "THEN", sourc, (0, combi_1.starPrio)(sub));
19
20
  const els = (0, combi_1.seq)("ELSE", sourc);
20
- 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"));
21
+ 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"));
21
22
  }
22
23
  }
23
24
  exports.SQLCase = SQLCase;
@@ -29,11 +29,13 @@ class Submit {
29
29
  const cover = (0, combi_1.seq)("SAP COVER PAGE", expressions_1.Source);
30
30
  const copies = (0, combi_1.seq)("COPIES", expressions_1.Source);
31
31
  const datasetExpiration = (0, combi_1.seq)("DATASET EXPIRATION", expressions_1.Source);
32
+ const coverText = (0, combi_1.seq)("COVER TEXT", expressions_1.Source);
33
+ const listName = (0, combi_1.seq)("LIST NAME", expressions_1.Source);
32
34
  const keep = (0, combi_1.seq)("KEEP IN SPOOL", expressions_1.Source);
33
35
  const imm = (0, combi_1.seq)("IMMEDIATELY", expressions_1.Source);
34
36
  const dest = (0, combi_1.seq)("DESTINATION", expressions_1.Source);
35
37
  const language = (0, combi_1.seq)("LANGUAGE", expressions_1.Source);
36
- 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);
38
+ 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);
37
39
  const ret = (0, combi_1.seq)("SUBMIT", prog, (0, combi_1.opt)(perm));
38
40
  return (0, combi_1.verNot)(version_1.Version.Cloud, ret);
39
41
  }
@@ -7,7 +7,7 @@ const cds_integer_1 = require("./cds_integer");
7
7
  class CDSArithmetics extends combi_1.Expression {
8
8
  getRunnable() {
9
9
  const name = (0, combi_1.seq)(_1.CDSName, (0, combi_1.optPrio)((0, combi_1.seq)(".", _1.CDSName)));
10
- const val = (0, combi_1.altPrio)(cds_integer_1.CDSInteger, _1.CDSFunction, _1.CDSCase, _1.CDSCast, _1.CDSString, name);
10
+ const val = (0, combi_1.altPrio)(cds_integer_1.CDSInteger, _1.CDSFunction, _1.CDSCase, _1.CDSCast, _1.CDSString, _1.CDSAggregate, name);
11
11
  const operator = (0, combi_1.altPrio)("+", "-", "*", "/");
12
12
  const operatorValue = (0, combi_1.seq)(operator, val);
13
13
  const paren = (0, combi_1.seq)("(", val, (0, combi_1.plusPrio)(operatorValue), ")");
@@ -6,7 +6,8 @@ const combi_1 = require("../../abap/2_statements/combi");
6
6
  class CDSCast extends combi_1.Expression {
7
7
  getRunnable() {
8
8
  const name = (0, combi_1.seq)(_1.CDSName, (0, combi_1.starPrio)((0, combi_1.seq)(".", _1.CDSName)));
9
- 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")), ")");
9
+ const first = (0, combi_1.altPrio)(_1.CDSFunction, _1.CDSCase, _1.CDSAggregate, _1.CDSArithmetics, CDSCast, _1.CDSString, _1.CDSInteger, name);
10
+ return (0, combi_1.seq)("CAST", "(", first, "AS", _1.CDSType, (0, combi_1.optPrio)((0, combi_1.seq)("PRESERVING", "TYPE")), ")");
10
11
  }
11
12
  }
12
13
  exports.CDSCast = CDSCast;
@@ -8,7 +8,7 @@ class CDSJoin extends combi_1.Expression {
8
8
  getRunnable() {
9
9
  const cond = (0, combi_1.seq)(_1.CDSSource, "ON", cds_condition_1.CDSCondition);
10
10
  const foo = (0, combi_1.altPrio)((0, combi_1.seq)("(", cond, ")"), cond);
11
- return (0, combi_1.seq)((0, combi_1.optPrio)((0, combi_1.altPrio)("LEFT OUTER TO ONE", "LEFT OUTER", "INNER", "CROSS")), "JOIN", foo);
11
+ 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);
12
12
  }
13
13
  }
14
14
  exports.CDSJoin = CDSJoin;
@@ -67,7 +67,7 @@ class Registry {
67
67
  }
68
68
  static abaplintVersion() {
69
69
  // magic, see build script "version.sh"
70
- return "2.113.220";
70
+ return "2.113.221";
71
71
  }
72
72
  getDDICReferences() {
73
73
  return this.ddicReferences;
@@ -58,6 +58,7 @@ class CloudTypes {
58
58
  || obj instanceof Objects.ApplicationLogObject
59
59
  || obj instanceof Objects.CommunicationScenario
60
60
  || obj instanceof Objects.DataControl
61
+ || obj instanceof Objects.Namespace
61
62
  || obj instanceof Objects.KnowledgeTransferDocument
62
63
  || obj instanceof Objects.DataDefinition
63
64
  || obj instanceof Objects.DataElement
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@abaplint/core",
3
- "version": "2.113.220",
3
+ "version": "2.113.221",
4
4
  "description": "abaplint - Core API",
5
5
  "main": "build/src/index.js",
6
6
  "typings": "build/abaplint.d.ts",