@abaplint/transpiler 2.7.136 → 2.7.138
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/src/keywords.js
CHANGED
|
@@ -14,7 +14,7 @@ exports.defaultKeywords = [
|
|
|
14
14
|
"goto", "if", "implements", "import",
|
|
15
15
|
"in", "instanceof", "interface",
|
|
16
16
|
"let", "long", "native", "new",
|
|
17
|
-
"null", "package", "private",
|
|
17
|
+
"null", "package", "private", // "protected",
|
|
18
18
|
"public", "return", "short", "static",
|
|
19
19
|
"switch", "synchronized", "this",
|
|
20
20
|
"throw", "throws", "transient", "true",
|
|
@@ -9,7 +9,7 @@ class AssignTranspiler {
|
|
|
9
9
|
transpile(node, traversal) {
|
|
10
10
|
var _a, _b;
|
|
11
11
|
const assignSource = node.findDirectExpression(abaplint.Expressions.AssignSource);
|
|
12
|
-
const sources = (assignSource === null || assignSource === void 0 ? void 0 : assignSource.
|
|
12
|
+
const sources = (assignSource === null || assignSource === void 0 ? void 0 : assignSource.findDirectExpressionsMulti([abaplint.Expressions.Source, abaplint.Expressions.SimpleSource3]).map(e => new expressions_1.SourceTranspiler(false).transpile(e, traversal).getCode())) || [];
|
|
13
13
|
const fs = new expressions_1.FieldSymbolTranspiler().transpile(node.findDirectExpression(abaplint.Expressions.FSTarget), traversal).getCode();
|
|
14
14
|
const options = [];
|
|
15
15
|
const concat = node.concatTokens().toUpperCase();
|
package/build/src/traversal.js
CHANGED
|
@@ -174,7 +174,12 @@ class Traversal {
|
|
|
174
174
|
if (def === undefined) {
|
|
175
175
|
return methods;
|
|
176
176
|
}
|
|
177
|
-
|
|
177
|
+
const methodDefinitions = def.getMethodDefinitions();
|
|
178
|
+
if (methodDefinitions === undefined) {
|
|
179
|
+
// this can occur if the dependencies is not 702?
|
|
180
|
+
throw new Error("buildMethods: unexpected undefined, " + def.getName());
|
|
181
|
+
}
|
|
182
|
+
for (const m of methodDefinitions.getAll()) {
|
|
178
183
|
const parameters = [];
|
|
179
184
|
for (const p of m.getParameters().getAll()) {
|
|
180
185
|
const type = new transpile_types_1.TranspileTypes().toType(p.getType());
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@abaplint/transpiler",
|
|
3
|
-
"version": "2.7.
|
|
3
|
+
"version": "2.7.138",
|
|
4
4
|
"description": "Transpiler",
|
|
5
5
|
"main": "build/src/index.js",
|
|
6
6
|
"typings": "build/src/index.d.ts",
|
|
@@ -29,15 +29,15 @@
|
|
|
29
29
|
"author": "abaplint",
|
|
30
30
|
"license": "MIT",
|
|
31
31
|
"dependencies": {
|
|
32
|
-
"@abaplint/core": "^2.
|
|
32
|
+
"@abaplint/core": "^2.105.6",
|
|
33
33
|
"source-map": "^0.7.4"
|
|
34
34
|
},
|
|
35
35
|
"devDependencies": {
|
|
36
|
-
"@types/chai": "^4.3.
|
|
37
|
-
"@types/mocha": "^10.0.
|
|
36
|
+
"@types/chai": "^4.3.11",
|
|
37
|
+
"@types/mocha": "^10.0.6",
|
|
38
38
|
"chai": "^4.3.10",
|
|
39
39
|
"mocha": "^10.2.0",
|
|
40
40
|
"source-map-support": "^0.5.21",
|
|
41
|
-
"typescript": "^5.
|
|
41
|
+
"typescript": "^5.3.3"
|
|
42
42
|
}
|
|
43
43
|
}
|