@abaplint/transpiler 1.7.37 → 1.7.38

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.
@@ -69,6 +69,10 @@ class DatabaseSetup {
69
69
  else if (type instanceof abaplint.BasicTypes.StringType) {
70
70
  return `TEXT`;
71
71
  }
72
+ else if (type instanceof abaplint.BasicTypes.XStringType) {
73
+ // it will be fine, the runtime representation of xstring is also text
74
+ return `TEXT`;
75
+ }
72
76
  else if (type instanceof abaplint.BasicTypes.IntegerType) {
73
77
  return `INT`;
74
78
  }
@@ -4,7 +4,11 @@ exports.SQLSourceTranspiler = void 0;
4
4
  const abaplint = require("@abaplint/core");
5
5
  class SQLSourceTranspiler {
6
6
  transpile(node, traversal) {
7
- return traversal.traverse(node.findDirectExpression(abaplint.Expressions.Source));
7
+ let s = node.findDirectExpression(abaplint.Expressions.Source);
8
+ if (s === undefined) {
9
+ s = node.findDirectExpression(abaplint.Expressions.SimpleSource3);
10
+ }
11
+ return traversal.traverse(s);
8
12
  }
9
13
  }
10
14
  exports.SQLSourceTranspiler = SQLSourceTranspiler;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@abaplint/transpiler",
3
- "version": "1.7.37",
3
+ "version": "1.7.38",
4
4
  "description": "Transpiler",
5
5
  "main": "build/src/index.js",
6
6
  "typings": "build/src/index.d.ts",
@@ -27,7 +27,7 @@
27
27
  "author": "abaplint",
28
28
  "license": "MIT",
29
29
  "dependencies": {
30
- "@abaplint/core": "^2.85.6",
30
+ "@abaplint/core": "^2.85.9",
31
31
  "source-map": "^0.7.3"
32
32
  },
33
33
  "devDependencies": {