@abaplint/transpiler 2.3.84 → 2.3.86
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();
|
package/build/src/unit_test.js
CHANGED
|
@@ -57,7 +57,7 @@ async function run() {
|
|
|
57
57
|
await initializeABAP();
|
|
58
58
|
let lt_input = new abap.types.Table(new abap.types.Structure({class_name: new abap.types.Character(30), testclass_name: new abap.types.Character(30), method_name: new abap.types.Character(30)}), {"withHeader":false,"type":"STANDARD","isUnique":false,"keyFields":[]});
|
|
59
59
|
let ls_input = new abap.types.Structure({class_name: new abap.types.Character(30), testclass_name: new abap.types.Character(30), method_name: new abap.types.Character(30)});
|
|
60
|
-
let ls_result = new abap.types.Structure({list: new abap.types.Table(new abap.types.Structure({class_name: new abap.types.Character(30), testclass_name: new abap.types.Character(30), method_name: new abap.types.Character(30), expected: new abap.types.String(), actual: new abap.types.String(), status: new abap.types.String(), runtime: new abap.types.Integer(), message: new abap.types.String(), js_location: new abap.types.String()}), {"withHeader":false,"type":"STANDARD","isUnique":false,"keyFields":[]}), json: new abap.types.String()});
|
|
60
|
+
let ls_result = new abap.types.Structure({list: new abap.types.Table(new abap.types.Structure({class_name: new abap.types.Character(30), testclass_name: new abap.types.Character(30), method_name: new abap.types.Character(30), expected: new abap.types.String(), actual: new abap.types.String(), status: new abap.types.String(), runtime: new abap.types.Integer(), message: new abap.types.String(), js_location: new abap.types.String(), console: new abap.types.String()}), {"withHeader":false,"type":"STANDARD","isUnique":false,"keyFields":[]}), json: new abap.types.String()});
|
|
61
61
|
`;
|
|
62
62
|
for (const obj of reg.getObjects()) {
|
|
63
63
|
if (reg.isDependency(obj) || !(obj instanceof abaplint.Objects.Class)) {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@abaplint/transpiler",
|
|
3
|
-
"version": "2.3.
|
|
3
|
+
"version": "2.3.86",
|
|
4
4
|
"description": "Transpiler",
|
|
5
5
|
"main": "build/src/index.js",
|
|
6
6
|
"typings": "build/src/index.d.ts",
|
|
@@ -28,14 +28,14 @@
|
|
|
28
28
|
"author": "abaplint",
|
|
29
29
|
"license": "MIT",
|
|
30
30
|
"dependencies": {
|
|
31
|
-
"@abaplint/core": "^2.94.
|
|
31
|
+
"@abaplint/core": "^2.94.5",
|
|
32
32
|
"source-map": "^0.7.4"
|
|
33
33
|
},
|
|
34
34
|
"devDependencies": {
|
|
35
35
|
"@types/chai": "^4.3.4",
|
|
36
36
|
"@types/mocha": "^10.0.1",
|
|
37
37
|
"chai": "^4.3.7",
|
|
38
|
-
"mocha": "^10.
|
|
38
|
+
"mocha": "^10.2.0",
|
|
39
39
|
"source-map-support": "^0.5.21",
|
|
40
40
|
"typescript": "^4.8.4"
|
|
41
41
|
}
|