@abaplint/core 2.103.2 → 2.103.4

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.
@@ -2234,7 +2234,7 @@ declare namespace Expressions {
2234
2234
  StringTemplateSource,
2235
2235
  StringTemplate,
2236
2236
  SuperClassName,
2237
- TypeHierarchy,
2237
+ TypeStructure,
2238
2238
  SwitchBody,
2239
2239
  TableBody,
2240
2240
  TableExpression,
@@ -6533,10 +6533,6 @@ declare class TypeEnumEnd implements IStatement {
6533
6533
  getMatcher(): IStatementRunnable;
6534
6534
  }
6535
6535
 
6536
- declare class TypeHierarchy extends Expression {
6537
- getRunnable(): IStatementRunnable;
6538
- }
6539
-
6540
6536
  declare class TypeMesh implements IStructure {
6541
6537
  getMatcher(): IStructureRunnable;
6542
6538
  }
@@ -6608,6 +6604,10 @@ declare class Types_2 implements IStructure {
6608
6604
  getMatcher(): IStructureRunnable;
6609
6605
  }
6610
6606
 
6607
+ declare class TypeStructure extends Expression {
6608
+ getRunnable(): IStatementRunnable;
6609
+ }
6610
+
6611
6611
  declare class TypeTable extends Expression {
6612
6612
  getRunnable(): IStatementRunnable;
6613
6613
  }
@@ -7,7 +7,7 @@ class DataDefinition extends combi_1.Expression {
7
7
  getRunnable() {
8
8
  const simple = (0, combi_1.opt)((0, combi_1.per)("READ-ONLY", Expressions.Type, Expressions.Length, Expressions.Decimals, Expressions.Value));
9
9
  const table = (0, combi_1.seq)(Expressions.TypeTable, (0, combi_1.optPrio)("READ-ONLY"));
10
- return (0, combi_1.seq)(Expressions.DefinitionName, (0, combi_1.optPrio)(Expressions.ConstantFieldLength), (0, combi_1.alt)(simple, table, Expressions.TypeHierarchy));
10
+ return (0, combi_1.seq)(Expressions.DefinitionName, (0, combi_1.optPrio)(Expressions.ConstantFieldLength), (0, combi_1.alt)(simple, table, Expressions.TypeStructure));
11
11
  }
12
12
  }
13
13
  exports.DataDefinition = DataDefinition;
@@ -206,7 +206,7 @@ __exportStar(require("./string_template_formatting"), exports);
206
206
  __exportStar(require("./string_template_source"), exports);
207
207
  __exportStar(require("./string_template"), exports);
208
208
  __exportStar(require("./super_class_name"), exports);
209
- __exportStar(require("./type_hierarchy"), exports);
209
+ __exportStar(require("./type_structure"), exports);
210
210
  __exportStar(require("./switch_body"), exports);
211
211
  __exportStar(require("./table_body"), exports);
212
212
  __exportStar(require("./table_expression"), exports);
@@ -0,0 +1,15 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.TypeStructure = void 0;
4
+ const combi_1 = require("../combi");
5
+ const _1 = require(".");
6
+ class TypeStructure extends combi_1.Expression {
7
+ getRunnable() {
8
+ // todo, add version,
9
+ const hier = (0, combi_1.seq)("HIERARCHY", _1.NamespaceSimpleName);
10
+ const evt = (0, combi_1.seq)("EVENT", _1.EventName);
11
+ return (0, combi_1.seq)("TYPE STRUCTURE FOR", (0, combi_1.altPrio)(hier, evt));
12
+ }
13
+ }
14
+ exports.TypeStructure = TypeStructure;
15
+ //# sourceMappingURL=type_structure.js.map
@@ -7,7 +7,7 @@ const version_1 = require("../../../version");
7
7
  class Type {
8
8
  getMatcher() {
9
9
  const simple = (0, combi_1.per)(Expressions.Type, Expressions.Decimals, Expressions.Length);
10
- const def = (0, combi_1.seq)(Expressions.NamespaceSimpleName, (0, combi_1.opt)(Expressions.ConstantFieldLength), (0, combi_1.opt)((0, combi_1.alt)(simple, Expressions.TypeTable, Expressions.TypeHierarchy)));
10
+ const def = (0, combi_1.seq)(Expressions.NamespaceSimpleName, (0, combi_1.opt)(Expressions.ConstantFieldLength), (0, combi_1.opt)((0, combi_1.alt)(simple, Expressions.TypeTable, Expressions.TypeStructure)));
11
11
  // todo, BOXED is only allowed with structures inside structures?
12
12
  const boxed = (0, combi_1.ver)(version_1.Version.v702, "BOXED");
13
13
  const ret = (0, combi_1.seq)("TYPES", def, (0, combi_1.opt)(boxed));
@@ -17,6 +17,11 @@ class DataDefinition {
17
17
  if (valueNode) {
18
18
  value = new basic_types_1.BasicTypes(filename, scope).findValue(node);
19
19
  }
20
+ const name = node.findFirstExpression(Expressions.DefinitionName);
21
+ const typeStructure = node.findFirstExpression(Expressions.TypeStructure);
22
+ if (typeStructure && name) {
23
+ return new _typed_identifier_1.TypedIdentifier(name.getFirstToken(), filename, new basic_1.VoidType("DataDefinition, TypeStructure"));
24
+ }
20
25
  const bfound = new basic_types_1.BasicTypes(filename, scope).simpleType(node);
21
26
  if (bfound) {
22
27
  if (value) {
@@ -26,8 +31,8 @@ class DataDefinition {
26
31
  return bfound;
27
32
  }
28
33
  }
29
- const name = node.findFirstExpression(Expressions.DefinitionName);
30
34
  if (name) {
35
+ console.dir("undef");
31
36
  return new _typed_identifier_1.TypedIdentifier(name.getFirstToken(), filename, new basic_1.UnknownType("DataDefinition, fallback"));
32
37
  }
33
38
  return undefined;
@@ -65,7 +65,7 @@ class Registry {
65
65
  }
66
66
  static abaplintVersion() {
67
67
  // magic, see build script "version.sh"
68
- return "2.103.2";
68
+ return "2.103.4";
69
69
  }
70
70
  getDDICReferences() {
71
71
  return this.ddicReferences;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@abaplint/core",
3
- "version": "2.103.2",
3
+ "version": "2.103.4",
4
4
  "description": "abaplint - Core API",
5
5
  "main": "build/src/index.js",
6
6
  "typings": "build/abaplint.d.ts",
@@ -1,14 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.TypeHierarchy = void 0;
4
- const combi_1 = require("../combi");
5
- const _1 = require(".");
6
- class TypeHierarchy extends combi_1.Expression {
7
- getRunnable() {
8
- // todo, add version,
9
- const hier = (0, combi_1.seq)("TYPE STRUCTURE FOR HIERARCHY", _1.NamespaceSimpleName);
10
- return hier;
11
- }
12
- }
13
- exports.TypeHierarchy = TypeHierarchy;
14
- //# sourceMappingURL=type_hierarchy.js.map