@abaplint/transpiler 2.5.12 → 2.5.13
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.
- package/build/src/traversal.js +6 -6
- package/package.json +1 -1
package/build/src/traversal.js
CHANGED
|
@@ -506,14 +506,14 @@ class Traversal {
|
|
|
506
506
|
traverseStructure(node) {
|
|
507
507
|
const list = StructureTranspilers;
|
|
508
508
|
const ret = new chunk_1.Chunk();
|
|
509
|
+
const search = node.get().constructor.name + "Transpiler";
|
|
510
|
+
if (list[search]) {
|
|
511
|
+
const transpiler = new list[search]();
|
|
512
|
+
ret.appendChunk(transpiler.transpile(node, this));
|
|
513
|
+
return ret;
|
|
514
|
+
}
|
|
509
515
|
for (const c of node.getChildren()) {
|
|
510
516
|
if (c instanceof abaplint.Nodes.StructureNode) {
|
|
511
|
-
const search = c.get().constructor.name + "Transpiler";
|
|
512
|
-
if (list[search]) {
|
|
513
|
-
const transpiler = new list[search]();
|
|
514
|
-
ret.appendChunk(transpiler.transpile(c, this));
|
|
515
|
-
continue;
|
|
516
|
-
}
|
|
517
517
|
ret.appendChunk(this.traverseStructure(c));
|
|
518
518
|
}
|
|
519
519
|
else if (c instanceof abaplint.Nodes.StatementNode) {
|