@abaplint/transpiler-cli 2.5.3 → 2.5.4
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 +8 -5
- package/package.json +3 -3
package/build/bundle.js
CHANGED
|
@@ -22546,7 +22546,7 @@ const basic_types_1 = __webpack_require__(/*! ../basic_types */ "./node_modules/
|
|
|
22546
22546
|
const unknown_type_1 = __webpack_require__(/*! ../../types/basic/unknown_type */ "./node_modules/@abaplint/core/build/src/abap/types/basic/unknown_type.js");
|
|
22547
22547
|
const _reference_1 = __webpack_require__(/*! ../_reference */ "./node_modules/@abaplint/core/build/src/abap/5_syntax/_reference.js");
|
|
22548
22548
|
class InlineFieldDefinition {
|
|
22549
|
-
runSyntax(node, scope, filename) {
|
|
22549
|
+
runSyntax(node, scope, filename, targetType) {
|
|
22550
22550
|
var _a;
|
|
22551
22551
|
let type = undefined;
|
|
22552
22552
|
const field = (_a = node.findDirectExpression(Expressions.Field)) === null || _a === void 0 ? void 0 : _a.getFirstToken();
|
|
@@ -22561,6 +22561,9 @@ class InlineFieldDefinition {
|
|
|
22561
22561
|
if (typeName) {
|
|
22562
22562
|
type = new basic_types_1.BasicTypes(filename, scope).parseType(typeName);
|
|
22563
22563
|
}
|
|
22564
|
+
if (targetType !== undefined) {
|
|
22565
|
+
type = targetType;
|
|
22566
|
+
}
|
|
22564
22567
|
if (type === undefined) {
|
|
22565
22568
|
type = new unknown_type_1.UnknownType("InlineFieldDefinition, fallback");
|
|
22566
22569
|
}
|
|
@@ -23681,7 +23684,7 @@ const reduce_next_1 = __webpack_require__(/*! ./reduce_next */ "./node_modules/@
|
|
|
23681
23684
|
const let_1 = __webpack_require__(/*! ./let */ "./node_modules/@abaplint/core/build/src/abap/5_syntax/expressions/let.js");
|
|
23682
23685
|
const _scope_type_1 = __webpack_require__(/*! ../_scope_type */ "./node_modules/@abaplint/core/build/src/abap/5_syntax/_scope_type.js");
|
|
23683
23686
|
class ReduceBody {
|
|
23684
|
-
runSyntax(node, scope, filename) {
|
|
23687
|
+
runSyntax(node, scope, filename, targetType) {
|
|
23685
23688
|
if (node === undefined) {
|
|
23686
23689
|
return;
|
|
23687
23690
|
}
|
|
@@ -23696,7 +23699,7 @@ class ReduceBody {
|
|
|
23696
23699
|
scope.push(_scope_type_1.ScopeType.Let, "LET", node.getFirstToken().getStart(), filename);
|
|
23697
23700
|
scoped = true;
|
|
23698
23701
|
}
|
|
23699
|
-
const found = new inline_field_definition_1.InlineFieldDefinition().runSyntax(i, scope, filename);
|
|
23702
|
+
const found = new inline_field_definition_1.InlineFieldDefinition().runSyntax(i, scope, filename, targetType);
|
|
23700
23703
|
if (found && first === undefined) {
|
|
23701
23704
|
first = found;
|
|
23702
23705
|
}
|
|
@@ -23926,7 +23929,7 @@ class Source {
|
|
|
23926
23929
|
case "REDUCE":
|
|
23927
23930
|
{
|
|
23928
23931
|
const foundType = this.determineType(node, scope, filename, targetType);
|
|
23929
|
-
const bodyType = new reduce_body_1.ReduceBody().runSyntax(node.findDirectExpression(Expressions.ReduceBody), scope, filename);
|
|
23932
|
+
const bodyType = new reduce_body_1.ReduceBody().runSyntax(node.findDirectExpression(Expressions.ReduceBody), scope, filename, foundType);
|
|
23930
23933
|
if (foundType === undefined) {
|
|
23931
23934
|
this.addIfInferred(node, scope, filename, bodyType);
|
|
23932
23935
|
}
|
|
@@ -46013,7 +46016,7 @@ class Registry {
|
|
|
46013
46016
|
}
|
|
46014
46017
|
static abaplintVersion() {
|
|
46015
46018
|
// magic, see build script "version.sh"
|
|
46016
|
-
return "2.95.
|
|
46019
|
+
return "2.95.23";
|
|
46017
46020
|
}
|
|
46018
46021
|
getDDICReferences() {
|
|
46019
46022
|
return this.references;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@abaplint/transpiler-cli",
|
|
3
|
-
"version": "2.5.
|
|
3
|
+
"version": "2.5.4",
|
|
4
4
|
"description": "Transpiler - Command Line Interface",
|
|
5
5
|
"bin": {
|
|
6
6
|
"abap_transpile": "./abap_transpile"
|
|
@@ -25,11 +25,11 @@
|
|
|
25
25
|
"author": "abaplint",
|
|
26
26
|
"license": "MIT",
|
|
27
27
|
"devDependencies": {
|
|
28
|
-
"@abaplint/transpiler": "^2.5.
|
|
28
|
+
"@abaplint/transpiler": "^2.5.4",
|
|
29
29
|
"@types/glob": "^7.2.0",
|
|
30
30
|
"glob": "=7.2.0",
|
|
31
31
|
"@types/progress": "^2.0.5",
|
|
32
|
-
"@abaplint/core": "^2.95.
|
|
32
|
+
"@abaplint/core": "^2.95.23",
|
|
33
33
|
"progress": "^2.0.3",
|
|
34
34
|
"webpack": "^5.75.0",
|
|
35
35
|
"webpack-cli": "^5.0.1",
|