@abaplint/transpiler 2.8.21 → 2.8.23

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.
@@ -6,16 +6,19 @@ const chunk_1 = require("../chunk");
6
6
  const sql_field_name_1 = require("./sql_field_name");
7
7
  class SQLOrderByTranspiler {
8
8
  transpile(node, traversal) {
9
- const ret = new chunk_1.Chunk();
9
+ let text = "";
10
10
  for (const c of node.getChildren()) {
11
11
  if (c instanceof abaplint.Nodes.ExpressionNode && c.get() instanceof abaplint.Expressions.SQLFieldName) {
12
- ret.appendString(new sql_field_name_1.SQLFieldNameTranspiler().transpile(c, traversal).getCode() + " ");
12
+ if (text !== "" && text.endsWith(`" `)) {
13
+ text += ", ";
14
+ }
15
+ text += new sql_field_name_1.SQLFieldNameTranspiler().transpile(c, traversal).getCode().toLowerCase() + " ";
13
16
  }
14
17
  else {
15
- ret.appendString(c.concatTokens() + " ");
18
+ text += c.concatTokens() + " ";
16
19
  }
17
20
  }
18
- return ret;
21
+ return new chunk_1.Chunk().appendString(text);
19
22
  }
20
23
  }
21
24
  exports.SQLOrderByTranspiler = SQLOrderByTranspiler;
@@ -326,6 +326,7 @@ run().then(() => {
326
326
  || obj instanceof abaplint.Objects.LockObject
327
327
  || obj instanceof abaplint.Objects.MessageClass
328
328
  || obj instanceof abaplint.Objects.MIMEObject
329
+ || obj instanceof abaplint.Objects.Oauth2Profile
329
330
  || obj instanceof abaplint.Objects.WebMIME
330
331
  || obj instanceof abaplint.Objects.TypePool
331
332
  || obj instanceof abaplint.Objects.TableType) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@abaplint/transpiler",
3
- "version": "2.8.21",
3
+ "version": "2.8.23",
4
4
  "description": "Transpiler",
5
5
  "main": "build/src/index.js",
6
6
  "typings": "build/src/index.d.ts",