@abaplint/core 2.113.104 → 2.113.106

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.
@@ -1879,6 +1879,7 @@ declare type DynproHeader = {
1879
1879
  number: string;
1880
1880
  description: string;
1881
1881
  nextScreen: string;
1882
+ type: string;
1882
1883
  fields: DynproField[];
1883
1884
  };
1884
1885
 
@@ -6,7 +6,7 @@ const source_1 = require("./source");
6
6
  const let_1 = require("./let");
7
7
  const cond_1 = require("./cond");
8
8
  class CondBody {
9
- runSyntax(node, input) {
9
+ runSyntax(node, input, targetType) {
10
10
  if (node === undefined) {
11
11
  return undefined;
12
12
  }
@@ -21,10 +21,10 @@ class CondBody {
21
21
  let type = undefined;
22
22
  for (const s of node.findDirectExpressions(Expressions.Source)) {
23
23
  if (type === undefined) {
24
- type = new source_1.Source().runSyntax(s, input);
24
+ type = new source_1.Source().runSyntax(s, input, targetType);
25
25
  }
26
26
  else {
27
- new source_1.Source().runSyntax(s, input);
27
+ new source_1.Source().runSyntax(s, input, targetType);
28
28
  }
29
29
  }
30
30
  if (scoped === true) {
@@ -93,7 +93,7 @@ class Source {
93
93
  case "COND":
94
94
  {
95
95
  const foundType = this.determineType(node, input, targetType);
96
- const bodyType = new cond_body_1.CondBody().runSyntax(node.findDirectExpression(Expressions.CondBody), input);
96
+ const bodyType = new cond_body_1.CondBody().runSyntax(node.findDirectExpression(Expressions.CondBody), input, foundType);
97
97
  if (foundType === undefined || foundType.isGeneric()) {
98
98
  this.addIfInferred(node, input, bodyType);
99
99
  }
@@ -20,6 +20,7 @@ function parseDynpros(parsed) {
20
20
  number: d.HEADER.SCREEN,
21
21
  description: d.HEADER.DESCRIPT,
22
22
  nextScreen: d.HEADER.NEXTSCREEN,
23
+ type: d.HEADER.TYPE,
23
24
  fields: fields,
24
25
  });
25
26
  }
@@ -67,7 +67,7 @@ class Registry {
67
67
  }
68
68
  static abaplintVersion() {
69
69
  // magic, see build script "version.sh"
70
- return "2.113.104";
70
+ return "2.113.106";
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.104",
3
+ "version": "2.113.106",
4
4
  "description": "abaplint - Core API",
5
5
  "main": "build/src/index.js",
6
6
  "typings": "build/abaplint.d.ts",
@@ -50,20 +50,20 @@
50
50
  },
51
51
  "homepage": "https://abaplint.org",
52
52
  "devDependencies": {
53
- "@microsoft/api-extractor": "^7.50.0",
53
+ "@microsoft/api-extractor": "^7.52.1",
54
54
  "@types/chai": "^4.3.20",
55
55
  "@types/mocha": "^10.0.10",
56
- "@types/node": "^22.13.4",
56
+ "@types/node": "^22.13.10",
57
57
  "chai": "^4.5.0",
58
- "eslint": "^9.20.1",
58
+ "eslint": "^9.22.0",
59
59
  "mocha": "^11.1.0",
60
60
  "c8": "^10.1.3",
61
61
  "source-map-support": "^0.5.21",
62
62
  "ts-json-schema-generator": "^2.3.0",
63
- "typescript": "^5.7.3"
63
+ "typescript": "^5.8.2"
64
64
  },
65
65
  "dependencies": {
66
- "fast-xml-parser": "^4.5.2",
66
+ "fast-xml-parser": "^5.0.9",
67
67
  "json5": "^2.2.3",
68
68
  "vscode-languageserver-types": "^3.17.5"
69
69
  }