@abaplint/core 2.89.12 → 2.89.13
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.
|
@@ -8,11 +8,17 @@ const inline_field_definition_1 = require("./inline_field_definition");
|
|
|
8
8
|
const unknown_type_1 = require("../../types/basic/unknown_type");
|
|
9
9
|
const _scope_type_1 = require("../_scope_type");
|
|
10
10
|
const reduce_next_1 = require("./reduce_next");
|
|
11
|
+
const let_1 = require("./let");
|
|
11
12
|
class ReduceBody {
|
|
12
13
|
runSyntax(node, scope, filename) {
|
|
13
14
|
if (node === undefined) {
|
|
14
15
|
return;
|
|
15
16
|
}
|
|
17
|
+
let scoped = false;
|
|
18
|
+
const letNode = node.findDirectExpression(Expressions.Let);
|
|
19
|
+
if (letNode) {
|
|
20
|
+
scoped = new let_1.Let().runSyntax(letNode, scope, filename);
|
|
21
|
+
}
|
|
16
22
|
for (const i of node.findDirectExpressions(Expressions.InlineFieldDefinition)) {
|
|
17
23
|
new inline_field_definition_1.InlineFieldDefinition().runSyntax(i, scope, filename);
|
|
18
24
|
}
|
|
@@ -25,6 +31,9 @@ class ReduceBody {
|
|
|
25
31
|
for (const s of node.findDirectExpressions(Expressions.ReduceNext)) {
|
|
26
32
|
new reduce_next_1.ReduceNext().runSyntax(s, scope, filename);
|
|
27
33
|
}
|
|
34
|
+
if (scoped === true) {
|
|
35
|
+
scope.pop(node.getLastToken().getEnd());
|
|
36
|
+
}
|
|
28
37
|
while (scope.getType() === _scope_type_1.ScopeType.For) {
|
|
29
38
|
scope.pop(node.getLastToken().getEnd());
|
|
30
39
|
}
|
package/build/src/registry.js
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@abaplint/core",
|
|
3
|
-
"version": "2.89.
|
|
3
|
+
"version": "2.89.13",
|
|
4
4
|
"description": "abaplint - Core API",
|
|
5
5
|
"main": "build/src/index.js",
|
|
6
6
|
"typings": "build/abaplint.d.ts",
|
|
@@ -48,14 +48,14 @@
|
|
|
48
48
|
"@microsoft/api-extractor": "^7.23.0",
|
|
49
49
|
"@types/chai": "^4.3.1",
|
|
50
50
|
"@types/mocha": "^9.1.1",
|
|
51
|
-
"@types/node": "^17.0.
|
|
51
|
+
"@types/node": "^17.0.30",
|
|
52
52
|
"chai": "^4.3.6",
|
|
53
53
|
"eslint": "^8.14.0",
|
|
54
54
|
"mocha": "^9.2.2",
|
|
55
55
|
"c8": "^7.11.2",
|
|
56
56
|
"source-map-support": "^0.5.21",
|
|
57
57
|
"ts-json-schema-generator": "^1.0.0",
|
|
58
|
-
"typescript": "^4.6.
|
|
58
|
+
"typescript": "^4.6.4"
|
|
59
59
|
},
|
|
60
60
|
"dependencies": {
|
|
61
61
|
"fast-xml-parser": "^4.0.7",
|