@abaplint/transpiler-cli 2.13.44 → 2.13.46
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.
- package/build/bundle.js +11 -1
- package/package.json +2 -2
package/build/bundle.js
CHANGED
|
@@ -104126,7 +104126,12 @@ class SourceTranspiler {
|
|
|
104126
104126
|
ret = new chunk_1.Chunk().appendString("(").appendChunk(ret).appendString(").dereference()");
|
|
104127
104127
|
}
|
|
104128
104128
|
else if (c.get() instanceof core_1.Expressions.TextElement) {
|
|
104129
|
-
|
|
104129
|
+
const key = c.findFirstExpression(core_1.Expressions.TextElementKey)?.concatTokens().toUpperCase();
|
|
104130
|
+
const textSymbol = key === undefined
|
|
104131
|
+
? undefined
|
|
104132
|
+
: traversal.getCurrentObject().getTextSymbols()[key]?.entry;
|
|
104133
|
+
const value = textSymbol ?? c.concatTokens();
|
|
104134
|
+
ret = new chunk_1.Chunk().appendString(`new abap.types.String().set(${JSON.stringify(value)})`);
|
|
104130
104135
|
}
|
|
104131
104136
|
else if (c.get() instanceof core_1.Expressions.TypeNameOrInfer) {
|
|
104132
104137
|
continue;
|
|
@@ -119784,10 +119789,15 @@ class Traversal {
|
|
|
119784
119789
|
}
|
|
119785
119790
|
buildThisAttributes(def, cName) {
|
|
119786
119791
|
let ret = "";
|
|
119792
|
+
const constants = def.getAttributes()?.getConstants() || [];
|
|
119787
119793
|
for (const a of def.getAttributes()?.getAll() || []) {
|
|
119788
119794
|
let escaped = Traversal.escapeNamespace(a.getName().toLowerCase());
|
|
119789
119795
|
if (a.getMeta().includes("static" /* abaplint.IdentifierMeta.Static */) === true) {
|
|
119790
119796
|
ret += "this." + escaped + " = " + cName + "." + escaped + ";\n";
|
|
119797
|
+
const isConstant = constants.some(c => c.getName().toUpperCase() === a.getName().toUpperCase());
|
|
119798
|
+
if (a.getVisibility() === abaplint.Visibility.Private && isConstant === false) {
|
|
119799
|
+
ret += `this.FRIENDS_ACCESS_INSTANCE["${escaped}"] = this.${escaped};\n`;
|
|
119800
|
+
}
|
|
119791
119801
|
}
|
|
119792
119802
|
else {
|
|
119793
119803
|
if (a.getVisibility() === abaplint.Visibility.Private) {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@abaplint/transpiler-cli",
|
|
3
|
-
"version": "2.13.
|
|
3
|
+
"version": "2.13.46",
|
|
4
4
|
"description": "Transpiler - Command Line Interface",
|
|
5
5
|
"funding": "https://github.com/sponsors/larshp",
|
|
6
6
|
"bin": {
|
|
@@ -28,7 +28,7 @@
|
|
|
28
28
|
"license": "MIT",
|
|
29
29
|
"devDependencies": {
|
|
30
30
|
"@abaplint/core": "^2.120.5",
|
|
31
|
-
"@abaplint/transpiler": "^2.13.
|
|
31
|
+
"@abaplint/transpiler": "^2.13.46",
|
|
32
32
|
"@types/glob": "^8.1.0",
|
|
33
33
|
"@types/node": "^24.12.2",
|
|
34
34
|
"@types/progress": "^2.0.7",
|