@abaplint/transpiler 2.3.84 → 2.3.85
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.
|
@@ -14,6 +14,10 @@ class HandleABAP {
|
|
|
14
14
|
var _a, _b, _c;
|
|
15
15
|
const spaghetti = new abaplint.SyntaxLogic(reg, obj).run().spaghetti;
|
|
16
16
|
let ret = [];
|
|
17
|
+
if (obj instanceof abaplint.Objects.Program && obj.isInclude() === true) {
|
|
18
|
+
// includes are only compiled along with the programs where its used?
|
|
19
|
+
return [];
|
|
20
|
+
}
|
|
17
21
|
for (const file of obj.getSequencedFiles()) {
|
|
18
22
|
const chunk = new chunk_1.Chunk();
|
|
19
23
|
if (((_a = this.options) === null || _a === void 0 ? void 0 : _a.addFilenames) === true) {
|
|
@@ -15,7 +15,7 @@ class DataTranspiler {
|
|
|
15
15
|
}
|
|
16
16
|
const scope = traversal.findCurrentScopeByToken(token);
|
|
17
17
|
if (scope === undefined) {
|
|
18
|
-
throw new Error("DataTranspiler, scope not found");
|
|
18
|
+
throw new Error("DataTranspiler, scope not found: " + node.concatTokens());
|
|
19
19
|
}
|
|
20
20
|
const found = scope.findVariable(token.getStr());
|
|
21
21
|
if (found === undefined) {
|
|
@@ -53,7 +53,7 @@ class ReadTableTranspiler {
|
|
|
53
53
|
while (field.includes("-")) {
|
|
54
54
|
field = field.replace("-", ".get().");
|
|
55
55
|
}
|
|
56
|
-
field = traversal_1.Traversal.escapeClassName(field);
|
|
56
|
+
field = traversal_1.Traversal.escapeClassName(field).replace("~", "$");
|
|
57
57
|
if (left.get() instanceof abaplint.Expressions.Dynamic
|
|
58
58
|
&& left instanceof abaplint.Nodes.ExpressionNode) {
|
|
59
59
|
const concat = left.concatTokens().toLowerCase();
|