@abaplint/transpiler 2.11.31 → 2.11.33
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.
|
@@ -84,10 +84,12 @@ class CompareTranspiler {
|
|
|
84
84
|
}
|
|
85
85
|
const chain = node.findDirectExpression(core_1.Expressions.MethodCallChain);
|
|
86
86
|
if (chain) {
|
|
87
|
+
const negated = concat.startsWith("NOT ");
|
|
87
88
|
const name = chain.getFirstToken().getStr();
|
|
88
89
|
if (core_1.BuiltIn.isPredicate(name)) {
|
|
89
90
|
// todo, this is not completely correct if there is a method shadowing the name
|
|
90
|
-
|
|
91
|
+
const operator = negated ? 'ne' : 'eq';
|
|
92
|
+
return new chunk_1.Chunk().appendString(`abap.compare.${operator}(` + traversal.traverse(chain).getCode() + `, abap.builtin.abap_true)`);
|
|
91
93
|
}
|
|
92
94
|
else {
|
|
93
95
|
return new chunk_1.Chunk().appendString(pre + `abap.compare.initial(${traversal.traverse(chain).getCode()}) === false`);
|
|
@@ -14,6 +14,10 @@ class HandleFUGR {
|
|
|
14
14
|
runObject(obj, reg) {
|
|
15
15
|
const spaghetti = new abaplint.SyntaxLogic(reg, obj).run().spaghetti;
|
|
16
16
|
const chunk = new chunk_1.Chunk().appendString("{\n");
|
|
17
|
+
// @ts-ignore todo
|
|
18
|
+
if (new abaplint.SkipLogic(reg).isGeneratedFunctionGroup(obj)) {
|
|
19
|
+
return [];
|
|
20
|
+
}
|
|
17
21
|
for (const file of obj.getSequencedFiles()) {
|
|
18
22
|
if (this.options?.addFilenames === true) {
|
|
19
23
|
chunk.appendString("// " + file.getFilename() + "\n");
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@abaplint/transpiler",
|
|
3
|
-
"version": "2.11.
|
|
3
|
+
"version": "2.11.33",
|
|
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.
|
|
32
|
+
"@abaplint/core": "^2.113.176",
|
|
33
33
|
"source-map": "^0.7.6"
|
|
34
34
|
},
|
|
35
35
|
"devDependencies": {
|