@abaplint/transpiler 2.10.15 → 2.10.17
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.
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import * as abaplint from "@abaplint/core";
|
|
2
|
+
import { IStatementTranspiler } from "./_statement_transpiler";
|
|
3
|
+
import { Traversal } from "../traversal";
|
|
4
|
+
import { Chunk } from "../chunk";
|
|
5
|
+
export declare class EnhancementPointTranspiler implements IStatementTranspiler {
|
|
6
|
+
transpile(_node: abaplint.Nodes.StatementNode, _traversal: Traversal): Chunk;
|
|
7
|
+
}
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.EnhancementPointTranspiler = void 0;
|
|
4
|
+
const abaplint = require("@abaplint/core");
|
|
5
|
+
const chunk_1 = require("../chunk");
|
|
6
|
+
class EnhancementPointTranspiler {
|
|
7
|
+
transpile(_node, _traversal) {
|
|
8
|
+
// for now, do nothing, but leave a comment
|
|
9
|
+
// ENHANCEMENT-POINT enh_id SPOTS spot1 spot2 ... [STATIC] [INCLUDE BOUND].
|
|
10
|
+
let enhId = "";
|
|
11
|
+
const spots = [];
|
|
12
|
+
for (const tn of _node.getTokenNodes()) {
|
|
13
|
+
if (tn instanceof abaplint.Nodes.TokenNodeRegex) {
|
|
14
|
+
if (!enhId) {
|
|
15
|
+
enhId = tn.get().getStr();
|
|
16
|
+
}
|
|
17
|
+
else {
|
|
18
|
+
spots.push(tn.get().getStr());
|
|
19
|
+
}
|
|
20
|
+
}
|
|
21
|
+
}
|
|
22
|
+
// [Transpiler] EnhancementPoint not implemented. Ignoring 'enh_id' spots 'spot1', 'spot2' ...
|
|
23
|
+
return new chunk_1.Chunk(`// [Transpiler] EnhancementPoint not implemented. Ignoring '${enhId}' spots '${spots.join("', '")}'`);
|
|
24
|
+
}
|
|
25
|
+
}
|
|
26
|
+
exports.EnhancementPointTranspiler = EnhancementPointTranspiler;
|
|
27
|
+
//# sourceMappingURL=enhancement_point.js.map
|
|
@@ -70,6 +70,7 @@ __exportStar(require("./end_loop"), exports);
|
|
|
70
70
|
__exportStar(require("./end_method"), exports);
|
|
71
71
|
__exportStar(require("./end_try"), exports);
|
|
72
72
|
__exportStar(require("./end_while"), exports);
|
|
73
|
+
__exportStar(require("./enhancement_point"), exports);
|
|
73
74
|
__exportStar(require("./enhancement_section"), exports);
|
|
74
75
|
__exportStar(require("./exit"), exports);
|
|
75
76
|
__exportStar(require("./export"), exports);
|