@abaplint/transpiler-cli 2.5.73 → 2.5.74
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 +10 -8
- package/package.json +3 -3
package/build/bundle.js
CHANGED
|
@@ -20785,7 +20785,7 @@ class BasicTypes {
|
|
|
20785
20785
|
return undefined;
|
|
20786
20786
|
}
|
|
20787
20787
|
parseTable(node, name) {
|
|
20788
|
-
var _a, _b, _c;
|
|
20788
|
+
var _a, _b, _c, _d;
|
|
20789
20789
|
const typename = node.findFirstExpression(Expressions.TypeName);
|
|
20790
20790
|
const text = (_a = node.findFirstExpression(Expressions.TypeTable)) === null || _a === void 0 ? void 0 : _a.concatTokens().toUpperCase();
|
|
20791
20791
|
if (text === undefined) {
|
|
@@ -20808,7 +20808,8 @@ class BasicTypes {
|
|
|
20808
20808
|
}
|
|
20809
20809
|
const typeTableKeys = node.findAllExpressions(expressions_1.TypeTableKey);
|
|
20810
20810
|
const firstKey = typeTableKeys[0];
|
|
20811
|
-
const isNamed = (firstKey === null || firstKey === void 0 ? void 0 : firstKey.findDirectExpression(expressions_1.Field)) !== undefined
|
|
20811
|
+
const isNamed = (firstKey === null || firstKey === void 0 ? void 0 : firstKey.findDirectExpression(expressions_1.Field)) !== undefined
|
|
20812
|
+
&& ((_b = firstKey === null || firstKey === void 0 ? void 0 : firstKey.findDirectExpression(expressions_1.Field)) === null || _b === void 0 ? void 0 : _b.concatTokens().toUpperCase()) !== "PRIMARY_KEY";
|
|
20812
20813
|
const primaryKey = {
|
|
20813
20814
|
name: "primary_key",
|
|
20814
20815
|
type: type || basic_1.TableAccessType.standard,
|
|
@@ -20827,7 +20828,7 @@ class BasicTypes {
|
|
|
20827
20828
|
const secondaryKeys = [];
|
|
20828
20829
|
for (let i = start; i < typeTableKeys.length; i++) {
|
|
20829
20830
|
const row = typeTableKeys[i];
|
|
20830
|
-
const name = (
|
|
20831
|
+
const name = (_c = row.findDirectExpression(expressions_1.Field)) === null || _c === void 0 ? void 0 : _c.concatTokens();
|
|
20831
20832
|
if (name === undefined) {
|
|
20832
20833
|
continue;
|
|
20833
20834
|
}
|
|
@@ -20923,7 +20924,7 @@ class BasicTypes {
|
|
|
20923
20924
|
else if (typename && (text.startsWith("TYPE TABLE FOR CREATE ")
|
|
20924
20925
|
|| text.startsWith("TYPE TABLE FOR UPDATE "))) {
|
|
20925
20926
|
const name = typename.concatTokens();
|
|
20926
|
-
const type = (
|
|
20927
|
+
const type = (_d = this.scope.getDDIC().lookupDDLS(name)) === null || _d === void 0 ? void 0 : _d.type;
|
|
20927
20928
|
if (type) {
|
|
20928
20929
|
return new Types.TableType(new basic_1.VoidType("RapTodo"), options);
|
|
20929
20930
|
}
|
|
@@ -46250,7 +46251,7 @@ class Registry {
|
|
|
46250
46251
|
}
|
|
46251
46252
|
static abaplintVersion() {
|
|
46252
46253
|
// magic, see build script "version.sh"
|
|
46253
|
-
return "2.97.
|
|
46254
|
+
return "2.97.2";
|
|
46254
46255
|
}
|
|
46255
46256
|
getDDICReferences() {
|
|
46256
46257
|
return this.references;
|
|
@@ -77668,6 +77669,7 @@ class Traversal {
|
|
|
77668
77669
|
return undefined;
|
|
77669
77670
|
}
|
|
77670
77671
|
buildConstructorContents(scope, def) {
|
|
77672
|
+
var _a, _b, _c;
|
|
77671
77673
|
let ret = "";
|
|
77672
77674
|
if (def.getSuperClass() !== undefined
|
|
77673
77675
|
&& def.getMethodDefinitions().getByName("CONSTRUCTOR") === undefined) {
|
|
@@ -77676,7 +77678,7 @@ class Traversal {
|
|
|
77676
77678
|
const cName = Traversal.escapeNamespace(def.getName().toLowerCase());
|
|
77677
77679
|
ret += "this.me = new abap.types.ABAPObject();\n";
|
|
77678
77680
|
ret += "this.me.set(this);\n";
|
|
77679
|
-
for (const a of def.getAttributes().getAll()) {
|
|
77681
|
+
for (const a of ((_a = def.getAttributes()) === null || _a === void 0 ? void 0 : _a.getAll()) || []) {
|
|
77680
77682
|
if (a.getMeta().includes("static" /* abaplint.IdentifierMeta.Static */) === true) {
|
|
77681
77683
|
continue;
|
|
77682
77684
|
}
|
|
@@ -77689,11 +77691,11 @@ class Traversal {
|
|
|
77689
77691
|
ret += this.dataFromInterfaces(i.name, scope);
|
|
77690
77692
|
}
|
|
77691
77693
|
// handle aliases after initialization of carrier variables
|
|
77692
|
-
for (const a of def.getAliases().getAll()) {
|
|
77694
|
+
for (const a of ((_b = def.getAliases()) === null || _b === void 0 ? void 0 : _b.getAll()) || []) {
|
|
77693
77695
|
ret += "this." + a.getName().toLowerCase() + " = this." + Traversal.escapeNamespace(a.getComponent().replace("~", "$").toLowerCase()) + ";\n";
|
|
77694
77696
|
}
|
|
77695
77697
|
// constants can be accessed both statically and via reference
|
|
77696
|
-
for (const c of def.getAttributes().getConstants()) {
|
|
77698
|
+
for (const c of ((_c = def.getAttributes()) === null || _c === void 0 ? void 0 : _c.getConstants()) || []) {
|
|
77697
77699
|
ret += "this." + Traversal.escapeNamespace(c.getName().toLowerCase()) + " = " + cName + "." + Traversal.escapeNamespace(c.getName().toLowerCase()) + ";\n";
|
|
77698
77700
|
}
|
|
77699
77701
|
return ret;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@abaplint/transpiler-cli",
|
|
3
|
-
"version": "2.5.
|
|
3
|
+
"version": "2.5.74",
|
|
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.5.
|
|
28
|
+
"@abaplint/transpiler": "^2.5.74",
|
|
29
29
|
"@types/glob": "^7.2.0",
|
|
30
30
|
"glob": "=7.2.0",
|
|
31
31
|
"@types/progress": "^2.0.5",
|
|
32
32
|
"@types/node": "^18.15.11",
|
|
33
|
-
"@abaplint/core": "^2.97.
|
|
33
|
+
"@abaplint/core": "^2.97.2",
|
|
34
34
|
"progress": "^2.0.3",
|
|
35
35
|
"webpack": "^5.77.0",
|
|
36
36
|
"webpack-cli": "^5.0.1",
|