@abaplint/transpiler 2.12.11 → 2.12.12
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.
|
@@ -53,13 +53,13 @@ class CompareTranspiler {
|
|
|
53
53
|
const field = concat.replace(" IS NOT REQUESTED", "").toLowerCase();
|
|
54
54
|
return new chunk_1.Chunk().appendString(pre + "INPUT && INPUT." + field + " === undefined && INPUT.importing?." + field + " === undefined");
|
|
55
55
|
}
|
|
56
|
-
if (concat.
|
|
57
|
-
const
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
const
|
|
62
|
-
return new chunk_1.Chunk().appendString("abap.compare.instance_of(").appendChunk(s0).appendString(`, ${
|
|
56
|
+
if (concat.includes(" IS INSTANCE OF ")) {
|
|
57
|
+
const notted = concat.startsWith("NOT ") || concat.includes(" IS NOT INSTANCE OF ");
|
|
58
|
+
const falsed = notted ? " === false" : "";
|
|
59
|
+
const expr = node.findDirectExpression(core_1.Expressions.ClassName);
|
|
60
|
+
const cname = expr?.concatTokens();
|
|
61
|
+
const lookup = traversal.lookupClassOrInterface(cname, expr?.getFirstToken());
|
|
62
|
+
return new chunk_1.Chunk().appendString("abap.compare.instance_of(").appendChunk(s0).appendString(`, ${lookup})` + falsed);
|
|
63
63
|
}
|
|
64
64
|
}
|
|
65
65
|
else if (sources.length === 2 && node.findDirectTokenByText("IN")) {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@abaplint/transpiler",
|
|
3
|
-
"version": "2.12.
|
|
3
|
+
"version": "2.12.12",
|
|
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.246",
|
|
33
33
|
"source-map": "^0.7.6"
|
|
34
34
|
},
|
|
35
35
|
"devDependencies": {
|