@abaplint/transpiler 2.12.2 → 2.12.4

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.
@@ -23,6 +23,9 @@ class HandleABAP {
23
23
  if (this.options?.addFilenames === true) {
24
24
  chunk.appendString("// " + file.getFilename() + "\n");
25
25
  }
26
+ if (file.getStructure() === undefined) {
27
+ throw new Error("HandleABAP, file has no structure, probably a syntax error: " + file.getFilename());
28
+ }
26
29
  const rearranged = new rearranger_1.Rearranger().run(obj.getType(), file.getStructure());
27
30
  const contents = new traversal_1.Traversal(spaghetti, file, obj, reg, this.options).traverse(rearranged);
28
31
  chunk.appendChunk(contents);
@@ -25,6 +25,9 @@ class LoopTranspiler {
25
25
  break;
26
26
  }
27
27
  }
28
+ if (node.findDirectStatement(abaplint.Statements.Loop)?.findDirectTokenByText("GROUP") !== undefined) {
29
+ return new chunk_1.Chunk(`throw new Error("transpiler todo, GROUP BY");`);
30
+ }
28
31
  for (const c of node.getChildren()) {
29
32
  if (c instanceof abaplint.Nodes.StructureNode && c.get() instanceof abaplint.Structures.Body) {
30
33
  for (const b of c.getChildren()) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@abaplint/transpiler",
3
- "version": "2.12.2",
3
+ "version": "2.12.4",
4
4
  "description": "Transpiler",
5
5
  "main": "build/src/index.js",
6
6
  "typings": "build/src/index.d.ts",
@@ -29,7 +29,7 @@
29
29
  "author": "abaplint",
30
30
  "license": "MIT",
31
31
  "dependencies": {
32
- "@abaplint/core": "^2.113.222",
32
+ "@abaplint/core": "^2.113.232",
33
33
  "source-map": "^0.7.6"
34
34
  },
35
35
  "devDependencies": {