@abaplint/core 2.113.194 → 2.113.196

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.
@@ -1457,6 +1457,10 @@ declare class CorrespondingBodyBase extends Expression {
1457
1457
  getRunnable(): IStatementRunnable;
1458
1458
  }
1459
1459
 
1460
+ declare class CorrespondingBodyMapping extends Expression {
1461
+ getRunnable(): IStatementRunnable;
1462
+ }
1463
+
1460
1464
  declare class CreateData implements IStatement {
1461
1465
  getMatcher(): IStatementRunnable;
1462
1466
  }
@@ -2310,9 +2314,7 @@ declare namespace Expressions {
2310
2314
  ComponentChainSimple,
2311
2315
  ComponentChain,
2312
2316
  ComponentCompareSimple,
2313
- ValueBase,
2314
2317
  ComponentCompareSingle,
2315
- CorrespondingBodyBase,
2316
2318
  ComponentCompare,
2317
2319
  ComponentCondSub,
2318
2320
  ComponentCond,
@@ -2325,6 +2327,8 @@ declare namespace Expressions {
2325
2327
  ConstantString,
2326
2328
  Constant_2 as Constant,
2327
2329
  ConvBody,
2330
+ CorrespondingBodyBase,
2331
+ CorrespondingBodyMapping,
2328
2332
  CorrespondingBody,
2329
2333
  DataDefinition_2 as DataDefinition,
2330
2334
  DatabaseConnection,
@@ -2504,6 +2508,7 @@ declare namespace Expressions {
2504
2508
  TypeTableKey,
2505
2509
  TypeTable,
2506
2510
  Type_2 as Type,
2511
+ ValueBase,
2507
2512
  ValueBodyLine,
2508
2513
  ValueBodyLines,
2509
2514
  ValueBody,
@@ -4,12 +4,10 @@ exports.CorrespondingBody = void 0;
4
4
  const combi_1 = require("../combi");
5
5
  const _1 = require(".");
6
6
  const version_1 = require("../../../version");
7
- const component_chain_1 = require("./component_chain");
8
7
  class CorrespondingBody extends combi_1.Expression {
9
8
  getRunnable() {
10
- const mapping = (0, combi_1.seq)("MAPPING", (0, combi_1.plus)((0, combi_1.seq)(_1.ComponentName, "=", component_chain_1.ComponentChain)));
11
9
  const discarding = (0, combi_1.ver)(version_1.Version.v751, "DISCARDING DUPLICATES");
12
- return (0, combi_1.seq)((0, combi_1.optPrio)("DEEP"), (0, combi_1.optPrio)(_1.CorrespondingBodyBase), _1.Source, (0, combi_1.optPrio)(discarding), (0, combi_1.optPrio)(mapping), (0, combi_1.optPrio)("CHANGING CONTROL"), (0, combi_1.optPrio)((0, combi_1.seq)("MAPPING FROM ENTITY", (0, combi_1.optPrio)("USING CONTROL"))), // todo, version something?
10
+ return (0, combi_1.seq)((0, combi_1.optPrio)("DEEP"), (0, combi_1.optPrio)(_1.CorrespondingBodyBase), _1.Source, (0, combi_1.optPrio)(discarding), (0, combi_1.optPrio)(_1.CorrespondingBodyMapping), (0, combi_1.optPrio)("CHANGING CONTROL"), (0, combi_1.optPrio)((0, combi_1.seq)("MAPPING FROM ENTITY", (0, combi_1.optPrio)("USING CONTROL"))), // todo, version something?
13
11
  (0, combi_1.optPrio)((0, combi_1.seq)("EXCEPT", (0, combi_1.alt)((0, combi_1.plus)(_1.Field), "*"))));
14
12
  }
15
13
  }
@@ -0,0 +1,13 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.CorrespondingBodyMapping = void 0;
4
+ const combi_1 = require("../combi");
5
+ const _1 = require(".");
6
+ class CorrespondingBodyMapping extends combi_1.Expression {
7
+ getRunnable() {
8
+ const mapping = (0, combi_1.seq)("MAPPING", (0, combi_1.plus)((0, combi_1.seq)(_1.ComponentName, "=", _1.ComponentChain)));
9
+ return mapping;
10
+ }
11
+ }
12
+ exports.CorrespondingBodyMapping = CorrespondingBodyMapping;
13
+ //# sourceMappingURL=corresponding_body_mapping.js.map
@@ -39,9 +39,7 @@ __exportStar(require("./compare"), exports);
39
39
  __exportStar(require("./component_chain_simple"), exports);
40
40
  __exportStar(require("./component_chain"), exports);
41
41
  __exportStar(require("./component_compare_simple"), exports);
42
- __exportStar(require("./value_base"), exports);
43
42
  __exportStar(require("./component_compare_single"), exports);
44
- __exportStar(require("./corresponding_body_base"), exports);
45
43
  __exportStar(require("./component_compare"), exports);
46
44
  __exportStar(require("./component_cond_sub"), exports);
47
45
  __exportStar(require("./component_cond"), exports);
@@ -54,6 +52,8 @@ __exportStar(require("./constant_field_length"), exports);
54
52
  __exportStar(require("./constant_string"), exports);
55
53
  __exportStar(require("./constant"), exports);
56
54
  __exportStar(require("./conv_body"), exports);
55
+ __exportStar(require("./corresponding_body_base"), exports);
56
+ __exportStar(require("./corresponding_body_mapping"), exports);
57
57
  __exportStar(require("./corresponding_body"), exports);
58
58
  __exportStar(require("./data_definition"), exports);
59
59
  __exportStar(require("./database_connection"), exports);
@@ -234,6 +234,7 @@ __exportStar(require("./type_structure"), exports);
234
234
  __exportStar(require("./type_table_key"), exports);
235
235
  __exportStar(require("./type_table"), exports);
236
236
  __exportStar(require("./type"), exports);
237
+ __exportStar(require("./value_base"), exports);
237
238
  __exportStar(require("./value_body_line"), exports);
238
239
  __exportStar(require("./value_body_lines"), exports);
239
240
  __exportStar(require("./value_body"), exports);
@@ -26,6 +26,13 @@ class AbstractObject {
26
26
  }
27
27
  addFile(file) {
28
28
  this.setDirty();
29
+ // update if it already exists
30
+ for (let i = 0; i < this.files.length; i++) {
31
+ if (this.files[i].getFilename() === file.getFilename()) {
32
+ this.files[i] = file;
33
+ return;
34
+ }
35
+ }
29
36
  this.files.push(file);
30
37
  }
31
38
  getFiles() {
@@ -67,7 +67,7 @@ class Registry {
67
67
  }
68
68
  static abaplintVersion() {
69
69
  // magic, see build script "version.sh"
70
- return "2.113.194";
70
+ return "2.113.196";
71
71
  }
72
72
  getDDICReferences() {
73
73
  return this.ddicReferences;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@abaplint/core",
3
- "version": "2.113.194",
3
+ "version": "2.113.196",
4
4
  "description": "abaplint - Core API",
5
5
  "main": "build/src/index.js",
6
6
  "typings": "build/abaplint.d.ts",