@abaplint/core 2.85.19 → 2.85.20

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 _1 = require(".");
6
6
  class CondBody extends combi_1.Expression {
7
7
  getRunnable() {
8
- const when = (0, combi_1.seq)("WHEN", _1.Cond, "THEN", (0, combi_1.alt)(_1.Source, _1.Throw));
8
+ const when = (0, combi_1.seq)("WHEN", (0, combi_1.alt)(_1.Cond, _1.Source), "THEN", (0, combi_1.alt)(_1.Source, _1.Throw));
9
9
  const elsee = (0, combi_1.seq)("ELSE", (0, combi_1.alt)(_1.Source, _1.Throw));
10
10
  return (0, combi_1.seq)((0, combi_1.opt)(_1.Let), (0, combi_1.plus)(when), (0, combi_1.opt)(elsee));
11
11
  }
@@ -3,9 +3,10 @@ Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.ReduceNext = void 0;
4
4
  const combi_1 = require("../combi");
5
5
  const _1 = require(".");
6
+ const tokens_1 = require("../../1_lexer/tokens");
6
7
  class ReduceNext extends combi_1.Expression {
7
8
  getRunnable() {
8
- const fields = (0, combi_1.seq)(_1.Field, "=", _1.Source);
9
+ const fields = (0, combi_1.seq)(_1.Field, (0, combi_1.altPrio)("=", (0, combi_1.seq)((0, combi_1.tok)(tokens_1.WPlus), "=")), _1.Source);
9
10
  return (0, combi_1.seq)("NEXT", (0, combi_1.plus)(fields));
10
11
  }
11
12
  }
@@ -19,7 +19,7 @@ class Select extends combi_1.Expression {
19
19
  const fields = (0, combi_1.seq)("FIELDS", _1.SQLFieldList);
20
20
  const perm = (0, combi_1.per)(_1.SQLFrom, into, _1.SQLForAllEntries, where, _1.SQLOrderBy, up, offset, client, _1.SQLHaving, bypass, sql_group_by_1.SQLGroupBy, fields, _1.DatabaseConnection);
21
21
  const paren = (0, combi_1.seq)((0, combi_1.tok)(tokens_1.WParenLeftW), sql_field_name_1.SQLFieldName, (0, combi_1.tok)(tokens_1.WParenRightW));
22
- const ret = (0, combi_1.seq)("SELECT", (0, combi_1.altPrio)("DISTINCT", (0, combi_1.optPrio)((0, combi_1.seq)("SINGLE", (0, combi_1.optPrio)("FOR UPDATE")))), (0, combi_1.optPrio)((0, combi_1.altPrio)(_1.SQLFieldList, paren)), perm);
22
+ const ret = (0, combi_1.seq)("SELECT", (0, combi_1.altPrio)("DISTINCT", (0, combi_1.optPrio)((0, combi_1.seq)("SINGLE", (0, combi_1.optPrio)("FOR UPDATE")))), (0, combi_1.optPrio)((0, combi_1.altPrio)(_1.SQLFieldList, paren)), perm, (0, combi_1.optPrio)(_1.SQLHints));
23
23
  return ret;
24
24
  }
25
25
  }
@@ -13,7 +13,7 @@ class TypeTable extends combi_1.Expression {
13
13
  const likeType = (0, combi_1.seq)((0, combi_1.opt)((0, combi_1.alt)("STANDARD", "HASHED", "INDEX", "SORTED", "ANY")), "TABLE OF", (0, combi_1.optPrio)("REF TO"), (0, combi_1.opt)(field_chain_1.FieldChain), (0, combi_1.opt)((0, combi_1.per)(header, initial, (0, combi_1.plusPrio)(type_table_key_1.TypeTableKey))));
14
14
  const rangeType = (0, combi_1.seq)("RANGE OF", _1.TypeName, (0, combi_1.opt)(header), (0, combi_1.opt)(initial));
15
15
  const rangeLike = (0, combi_1.seq)("RANGE OF", _1.SimpleFieldChain, (0, combi_1.opt)(header), (0, combi_1.opt)(initial));
16
- const typetable = (0, combi_1.seq)(normal1, (0, combi_1.opt)((0, combi_1.per)(header, initial, (0, combi_1.plusPrio)(type_table_key_1.TypeTableKey))));
16
+ const typetable = (0, combi_1.seq)(normal1, (0, combi_1.alt)((0, combi_1.opt)((0, combi_1.per)(header, initial, (0, combi_1.plusPrio)(type_table_key_1.TypeTableKey))), (0, combi_1.seq)((0, combi_1.plus)(type_table_key_1.TypeTableKey), (0, combi_1.optPrio)(initial))));
17
17
  const occurs = (0, combi_1.seq)("OCCURS", _1.Integer);
18
18
  const oldType = (0, combi_1.seq)((0, combi_1.opt)("REF TO"), _1.TypeName, (0, combi_1.alt)((0, combi_1.seq)(occurs, (0, combi_1.opt)(header)), header));
19
19
  const oldLike = (0, combi_1.seq)((0, combi_1.opt)("REF TO"), field_chain_1.FieldChain, (0, combi_1.alt)((0, combi_1.seq)(occurs, (0, combi_1.opt)(header)), header));
@@ -7,7 +7,7 @@ const version_1 = require("../../../version");
7
7
  class Select {
8
8
  getMatcher() {
9
9
  const union = (0, combi_1.ver)(version_1.Version.v750, (0, combi_1.seq)("UNION", (0, combi_1.optPrio)((0, combi_1.altPrio)("DISTINCT", "ALL")), expressions_1.Select));
10
- return (0, combi_1.seq)(expressions_1.Select, (0, combi_1.starPrio)(union), (0, combi_1.optPrio)(expressions_1.SQLHints));
10
+ return (0, combi_1.seq)(expressions_1.Select, (0, combi_1.starPrio)(union));
11
11
  }
12
12
  }
13
13
  exports.Select = Select;
@@ -169,9 +169,9 @@ class BuiltIn {
169
169
  components.push({ name: "folen", type: new basic_1.IntegerType() });
170
170
  components.push({ name: "host", type: new basic_1.CharacterType(32, "sy-host") });
171
171
  components.push({ name: "index", type: new basic_1.IntegerType() });
172
+ components.push({ name: "input", type: new basic_1.CharacterType(1, "sy-input") });
172
173
  components.push({ name: "langu", type: new basic_1.CharacterType(1, "sy-langu") });
173
174
  components.push({ name: "ldbpg", type: new basic_1.CharacterType(40, "sy-ldbpg") });
174
- components.push({ name: "pdest", type: new basic_1.CharacterType(4, "sy-pdest") });
175
175
  components.push({ name: "lilli", type: new basic_1.IntegerType() });
176
176
  components.push({ name: "linct", type: new basic_1.IntegerType() });
177
177
  components.push({ name: "linno", type: new basic_1.IntegerType() });
@@ -194,6 +194,7 @@ class BuiltIn {
194
194
  components.push({ name: "msgv4", type: new basic_1.CharacterType(50, "sy-msgv4") });
195
195
  components.push({ name: "opsys", type: new basic_1.CharacterType(10, "sy-opsys") });
196
196
  components.push({ name: "pagno", type: new basic_1.IntegerType() });
197
+ components.push({ name: "pdest", type: new basic_1.CharacterType(4, "sy-pdest") });
197
198
  components.push({ name: "pfkey", type: new basic_1.CharacterType(20, "sy-pfkey") });
198
199
  components.push({ name: "repid", type: new basic_1.CharacterType(40, "sy-repid") });
199
200
  components.push({ name: "saprl", type: new basic_1.CharacterType(4, "sy-saprl") });
@@ -68,7 +68,7 @@ class Registry {
68
68
  }
69
69
  static abaplintVersion() {
70
70
  // magic, see build script "version.sh"
71
- return "2.85.19";
71
+ return "2.85.20";
72
72
  }
73
73
  getDDICReferences() {
74
74
  return this.references;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@abaplint/core",
3
- "version": "2.85.19",
3
+ "version": "2.85.20",
4
4
  "description": "abaplint - Core API",
5
5
  "main": "build/src/index.js",
6
6
  "typings": "build/abaplint.d.ts",
@@ -51,7 +51,7 @@
51
51
  "@types/node": "^17.0.18",
52
52
  "chai": "^4.3.6",
53
53
  "eslint": "^8.9.0",
54
- "mocha": "^9.2.0",
54
+ "mocha": "^9.2.1",
55
55
  "c8": "^7.11.0",
56
56
  "source-map-support": "^0.5.21",
57
57
  "ts-json-schema-generator": "^0.98.0",