@abaplint/transpiler-cli 2.5.53 → 2.5.55

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 +6 -6
  2. package/package.json +3 -3
package/build/bundle.js CHANGED
@@ -21915,9 +21915,9 @@ const source_1 = __webpack_require__(/*! ./source */ "./node_modules/@abaplint/c
21915
21915
  const let_1 = __webpack_require__(/*! ./let */ "./node_modules/@abaplint/core/build/src/abap/5_syntax/expressions/let.js");
21916
21916
  const cond_1 = __webpack_require__(/*! ./cond */ "./node_modules/@abaplint/core/build/src/abap/5_syntax/expressions/cond.js");
21917
21917
  class CondBody {
21918
- runSyntax(node, scope, filename, targetType) {
21918
+ runSyntax(node, scope, filename) {
21919
21919
  if (node === undefined) {
21920
- return targetType;
21920
+ return undefined;
21921
21921
  }
21922
21922
  let scoped = false;
21923
21923
  const l = node.findDirectExpression(Expressions.Let);
@@ -21939,7 +21939,7 @@ class CondBody {
21939
21939
  if (scoped === true) {
21940
21940
  scope.pop(node.getLastToken().getEnd());
21941
21941
  }
21942
- return targetType ? targetType : type;
21942
+ return type;
21943
21943
  }
21944
21944
  }
21945
21945
  exports.CondBody = CondBody;
@@ -24113,7 +24113,7 @@ class Source {
24113
24113
  case "COND":
24114
24114
  {
24115
24115
  const foundType = this.determineType(node, scope, filename, targetType);
24116
- const bodyType = new cond_body_1.CondBody().runSyntax(node.findDirectExpression(Expressions.CondBody), scope, filename, foundType);
24116
+ const bodyType = new cond_body_1.CondBody().runSyntax(node.findDirectExpression(Expressions.CondBody), scope, filename);
24117
24117
  if (foundType === undefined || foundType.isGeneric() === true) {
24118
24118
  this.addIfInferred(node, scope, filename, bodyType);
24119
24119
  }
@@ -46211,7 +46211,7 @@ class Registry {
46211
46211
  }
46212
46212
  static abaplintVersion() {
46213
46213
  // magic, see build script "version.sh"
46214
- return "2.95.48";
46214
+ return "2.95.49";
46215
46215
  }
46216
46216
  getDDICReferences() {
46217
46217
  return this.references;
@@ -67785,7 +67785,7 @@ class CondSubTranspiler {
67785
67785
  if (c.get() instanceof core_1.Expressions.Cond) {
67786
67786
  ret.appendChunk(traversal.traverse(c));
67787
67787
  }
67788
- else if (c instanceof core_1.Nodes.TokenNode && c.getFirstToken().getStr() === "NOT") {
67788
+ else if (c instanceof core_1.Nodes.TokenNode && c.getFirstToken().getStr().toUpperCase() === "NOT") {
67789
67789
  ret.append("!", c, traversal);
67790
67790
  }
67791
67791
  else if (c instanceof core_1.Nodes.TokenNode && c.getFirstToken().getStr().trim() === "(") {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@abaplint/transpiler-cli",
3
- "version": "2.5.53",
3
+ "version": "2.5.55",
4
4
  "description": "Transpiler - Command Line Interface",
5
5
  "bin": {
6
6
  "abap_transpile": "./abap_transpile"
@@ -25,12 +25,12 @@
25
25
  "author": "abaplint",
26
26
  "license": "MIT",
27
27
  "devDependencies": {
28
- "@abaplint/transpiler": "^2.5.53",
28
+ "@abaplint/transpiler": "^2.5.55",
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.48",
33
+ "@abaplint/core": "^2.95.49",
34
34
  "progress": "^2.0.3",
35
35
  "webpack": "^5.76.3",
36
36
  "webpack-cli": "^5.0.1",