@abaplint/transpiler-cli 2.5.52 → 2.5.53

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.
Files changed (2) hide show
  1. package/build/bundle.js +15 -5
  2. package/package.json +4 -4
package/build/bundle.js CHANGED
@@ -24096,7 +24096,7 @@ class Source {
24096
24096
  {
24097
24097
  const foundType = this.determineType(node, scope, filename, targetType);
24098
24098
  const bodyType = new reduce_body_1.ReduceBody().runSyntax(node.findDirectExpression(Expressions.ReduceBody), scope, filename, foundType);
24099
- if (foundType === undefined) {
24099
+ if (foundType === undefined || foundType.isGeneric() === true) {
24100
24100
  this.addIfInferred(node, scope, filename, bodyType);
24101
24101
  }
24102
24102
  return foundType ? foundType : bodyType;
@@ -24105,7 +24105,7 @@ class Source {
24105
24105
  {
24106
24106
  const foundType = this.determineType(node, scope, filename, targetType);
24107
24107
  const bodyType = new switch_body_1.SwitchBody().runSyntax(node.findDirectExpression(Expressions.SwitchBody), scope, filename);
24108
- if (foundType === undefined) {
24108
+ if (foundType === undefined || foundType.isGeneric() === true) {
24109
24109
  this.addIfInferred(node, scope, filename, bodyType);
24110
24110
  }
24111
24111
  return foundType ? foundType : bodyType;
@@ -24114,7 +24114,7 @@ class Source {
24114
24114
  {
24115
24115
  const foundType = this.determineType(node, scope, filename, targetType);
24116
24116
  const bodyType = new cond_body_1.CondBody().runSyntax(node.findDirectExpression(Expressions.CondBody), scope, filename, foundType);
24117
- if (foundType === undefined) {
24117
+ if (foundType === undefined || foundType.isGeneric() === true) {
24118
24118
  this.addIfInferred(node, scope, filename, bodyType);
24119
24119
  }
24120
24120
  return foundType ? foundType : bodyType;
@@ -24434,7 +24434,7 @@ class StringTemplate {
24434
24434
  for (const s of node.findAllExpressions(Expressions.Source)) {
24435
24435
  new source_1.Source().runSyntax(s, scope, filename, new basic_1.StringType({ qualifiedName: "STRING" }));
24436
24436
  }
24437
- return new basic_1.StringType();
24437
+ return new basic_1.StringType({ qualifiedName: "STRING" });
24438
24438
  }
24439
24439
  }
24440
24440
  exports.StringTemplate = StringTemplate;
@@ -46211,7 +46211,7 @@ class Registry {
46211
46211
  }
46212
46212
  static abaplintVersion() {
46213
46213
  // magic, see build script "version.sh"
46214
- return "2.95.47";
46214
+ return "2.95.48";
46215
46215
  }
46216
46216
  getDDICReferences() {
46217
46217
  return this.references;
@@ -51033,6 +51033,16 @@ Only one transformation is applied to a statement at a time, so multiple steps m
51033
51033
  }
51034
51034
  }
51035
51035
  }
51036
+ else if (ret.length === 0 && / xsdbool\(/i.test(lowFile.getRaw())) {
51037
+ for (let i = 0; i < lowStatements.length; i++) {
51038
+ const high = highStatements[i];
51039
+ const issue = this.replaceXsdBool(high, lowFile, highSyntax);
51040
+ if (issue) {
51041
+ ret.push(issue);
51042
+ break;
51043
+ }
51044
+ }
51045
+ }
51036
51046
  }
51037
51047
  return ret;
51038
51048
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@abaplint/transpiler-cli",
3
- "version": "2.5.52",
3
+ "version": "2.5.53",
4
4
  "description": "Transpiler - Command Line Interface",
5
5
  "bin": {
6
6
  "abap_transpile": "./abap_transpile"
@@ -25,14 +25,14 @@
25
25
  "author": "abaplint",
26
26
  "license": "MIT",
27
27
  "devDependencies": {
28
- "@abaplint/transpiler": "^2.5.51",
28
+ "@abaplint/transpiler": "^2.5.53",
29
29
  "@types/glob": "^7.2.0",
30
30
  "glob": "=7.2.0",
31
31
  "@types/progress": "^2.0.5",
32
32
  "@types/node": "^18.15.5",
33
- "@abaplint/core": "^2.95.47",
33
+ "@abaplint/core": "^2.95.48",
34
34
  "progress": "^2.0.3",
35
- "webpack": "^5.76.2",
35
+ "webpack": "^5.76.3",
36
36
  "webpack-cli": "^5.0.1",
37
37
  "typescript": "^5.0.2"
38
38
  }