@abaplint/transpiler-cli 2.6.28 → 2.6.30
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 +14 -7
- package/package.json +4 -4
package/build/bundle.js
CHANGED
|
@@ -19568,16 +19568,19 @@ class CurrentScope {
|
|
|
19568
19568
|
if (name === undefined) {
|
|
19569
19569
|
return { found: false };
|
|
19570
19570
|
}
|
|
19571
|
-
let
|
|
19571
|
+
let prefixRTTI = "";
|
|
19572
19572
|
if (this.parentObj.getType() === "PROG") {
|
|
19573
|
-
|
|
19573
|
+
prefixRTTI = "\\PROGRAM=" + this.parentObj.getName();
|
|
19574
19574
|
}
|
|
19575
19575
|
else if (this.parentObj.getType() === "CLAS") {
|
|
19576
|
-
|
|
19576
|
+
prefixRTTI = "\\CLASS-POOL=" + this.parentObj.getName();
|
|
19577
19577
|
}
|
|
19578
19578
|
const findLocalClass = (_a = this.current) === null || _a === void 0 ? void 0 : _a.findClassDefinition(name);
|
|
19579
19579
|
if (findLocalClass) {
|
|
19580
|
-
|
|
19580
|
+
if (findLocalClass.isGlobal() === true) {
|
|
19581
|
+
prefixRTTI = "";
|
|
19582
|
+
}
|
|
19583
|
+
return { found: true, id: findLocalClass, type: _reference_1.ReferenceType.ObjectOrientedReference, ooType: "CLAS", RTTIName: prefixRTTI + "\\CLASS=" + findLocalClass.getName() };
|
|
19581
19584
|
}
|
|
19582
19585
|
const globalClas = this.reg.getObject("CLAS", name);
|
|
19583
19586
|
if (globalClas) {
|
|
@@ -19585,7 +19588,10 @@ class CurrentScope {
|
|
|
19585
19588
|
}
|
|
19586
19589
|
const findLocalInterface = (_b = this.current) === null || _b === void 0 ? void 0 : _b.findInterfaceDefinition(name);
|
|
19587
19590
|
if (findLocalInterface) {
|
|
19588
|
-
|
|
19591
|
+
if (findLocalInterface.isGlobal() === true) {
|
|
19592
|
+
prefixRTTI = "";
|
|
19593
|
+
}
|
|
19594
|
+
return { found: true, id: findLocalInterface, type: _reference_1.ReferenceType.ObjectOrientedReference, ooType: "INTF", RTTIName: prefixRTTI + "\\INTERFACE=" + findLocalInterface.getName() };
|
|
19589
19595
|
}
|
|
19590
19596
|
const globalIntf = this.reg.getObject("INTF", name);
|
|
19591
19597
|
if (globalIntf) {
|
|
@@ -46517,7 +46523,7 @@ class Registry {
|
|
|
46517
46523
|
}
|
|
46518
46524
|
static abaplintVersion() {
|
|
46519
46525
|
// magic, see build script "version.sh"
|
|
46520
|
-
return "2.97.
|
|
46526
|
+
return "2.97.17";
|
|
46521
46527
|
}
|
|
46522
46528
|
getDDICReferences() {
|
|
46523
46529
|
return this.references;
|
|
@@ -71472,7 +71478,8 @@ class AssignTranspiler {
|
|
|
71472
71478
|
}
|
|
71473
71479
|
}
|
|
71474
71480
|
else if ((first === null || first === void 0 ? void 0 : first.get()) instanceof abaplint.Expressions.Source && first instanceof abaplint.Nodes.ExpressionNode) {
|
|
71475
|
-
const name = first.concatTokens().toLowerCase();
|
|
71481
|
+
// const name = first.concatTokens().toLowerCase();
|
|
71482
|
+
const name = new expressions_1.SourceTranspiler().transpile(first, traversal).getCode();
|
|
71476
71483
|
options.push(`dynamicSource: (() => {
|
|
71477
71484
|
try { return ${name}; } catch {}
|
|
71478
71485
|
try { return this.${name}; } catch {}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@abaplint/transpiler-cli",
|
|
3
|
-
"version": "2.6.
|
|
3
|
+
"version": "2.6.30",
|
|
4
4
|
"description": "Transpiler - Command Line Interface",
|
|
5
5
|
"bin": {
|
|
6
6
|
"abap_transpile": "./abap_transpile"
|
|
@@ -25,12 +25,12 @@
|
|
|
25
25
|
"author": "abaplint",
|
|
26
26
|
"license": "MIT",
|
|
27
27
|
"devDependencies": {
|
|
28
|
-
"@abaplint/transpiler": "^2.6.
|
|
28
|
+
"@abaplint/transpiler": "^2.6.30",
|
|
29
29
|
"@types/glob": "^7.2.0",
|
|
30
30
|
"glob": "=7.2.0",
|
|
31
31
|
"@types/progress": "^2.0.5",
|
|
32
|
-
"@types/node": "^18.
|
|
33
|
-
"@abaplint/core": "^2.97.
|
|
32
|
+
"@types/node": "^18.16.0",
|
|
33
|
+
"@abaplint/core": "^2.97.17",
|
|
34
34
|
"progress": "^2.0.3",
|
|
35
35
|
"webpack": "^5.80.0",
|
|
36
36
|
"webpack-cli": "^5.0.2",
|