@abaplint/core 2.95.9 → 2.95.11
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.
|
@@ -7,7 +7,7 @@ const tokens_1 = require("../../1_lexer/tokens");
|
|
|
7
7
|
class Throw extends combi_1.Expression {
|
|
8
8
|
getRunnable() {
|
|
9
9
|
// todo, MESSAGE
|
|
10
|
-
return (0, combi_1.seq)("THROW", (0, combi_1.opt)("RESUMABLE"), _1.ClassName, (0, combi_1.tok)(tokens_1.ParenLeftW), (0, combi_1.opt)((0, combi_1.alt)(_1.Source, _1.ParameterListS)), (0, combi_1.tok)(tokens_1.WParenRightW));
|
|
10
|
+
return (0, combi_1.seq)("THROW", (0, combi_1.opt)("RESUMABLE"), _1.ClassName, (0, combi_1.altPrio)((0, combi_1.tok)(tokens_1.ParenLeftW), (0, combi_1.tok)(tokens_1.ParenLeft)), (0, combi_1.opt)((0, combi_1.alt)(_1.Source, _1.ParameterListS)), (0, combi_1.altPrio)((0, combi_1.tok)(tokens_1.WParenRightW), (0, combi_1.tok)(tokens_1.ParenRightW)));
|
|
11
11
|
}
|
|
12
12
|
}
|
|
13
13
|
exports.Throw = Throw;
|
|
@@ -29,6 +29,9 @@ class Cast {
|
|
|
29
29
|
if (found === undefined && scope.getDDIC().inErrorNamespace(typeName) === false) {
|
|
30
30
|
tt = new basic_1.VoidType(typeName);
|
|
31
31
|
}
|
|
32
|
+
else if (typeName.toUpperCase() === "OBJECT") {
|
|
33
|
+
return new basic_1.GenericObjectReferenceType();
|
|
34
|
+
}
|
|
32
35
|
else if (found === undefined) {
|
|
33
36
|
// todo, this should be an UnknownType instead?
|
|
34
37
|
throw new Error("Type \"" + typeName + "\" not found in scope, Cast");
|
|
@@ -12,6 +12,11 @@ class ValueBody {
|
|
|
12
12
|
if (node === undefined) {
|
|
13
13
|
return targetType;
|
|
14
14
|
}
|
|
15
|
+
let letScoped = false;
|
|
16
|
+
const letNode = node.findDirectExpression(Expressions.Let);
|
|
17
|
+
if (letNode) {
|
|
18
|
+
letScoped = new let_1.Let().runSyntax(letNode, scope, filename);
|
|
19
|
+
}
|
|
15
20
|
let forScopes = 0;
|
|
16
21
|
for (const forNode of node.findDirectExpressions(Expressions.For) || []) {
|
|
17
22
|
const scoped = new for_1.For().runSyntax(forNode, scope, filename);
|
|
@@ -19,11 +24,6 @@ class ValueBody {
|
|
|
19
24
|
forScopes++;
|
|
20
25
|
}
|
|
21
26
|
}
|
|
22
|
-
let letScoped = false;
|
|
23
|
-
const letNode = node.findDirectExpression(Expressions.Let);
|
|
24
|
-
if (letNode) {
|
|
25
|
-
letScoped = new let_1.Let().runSyntax(letNode, scope, filename);
|
|
26
|
-
}
|
|
27
27
|
for (const s of node.findDirectExpressions(Expressions.FieldAssignment)) {
|
|
28
28
|
new field_assignment_1.FieldAssignment().runSyntax(s, scope, filename, targetType);
|
|
29
29
|
}
|
package/build/src/registry.js
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@abaplint/core",
|
|
3
|
-
"version": "2.95.
|
|
3
|
+
"version": "2.95.11",
|
|
4
4
|
"description": "abaplint - Core API",
|
|
5
5
|
"main": "build/src/index.js",
|
|
6
6
|
"typings": "build/abaplint.d.ts",
|
|
@@ -47,10 +47,10 @@
|
|
|
47
47
|
},
|
|
48
48
|
"homepage": "https://abaplint.org",
|
|
49
49
|
"devDependencies": {
|
|
50
|
-
"@microsoft/api-extractor": "^7.34.
|
|
50
|
+
"@microsoft/api-extractor": "^7.34.3",
|
|
51
51
|
"@types/chai": "^4.3.4",
|
|
52
52
|
"@types/mocha": "^10.0.1",
|
|
53
|
-
"@types/node": "^18.11.
|
|
53
|
+
"@types/node": "^18.11.19",
|
|
54
54
|
"chai": "^4.3.7",
|
|
55
55
|
"eslint": "^8.33.0",
|
|
56
56
|
"mocha": "^10.2.0",
|
|
@@ -60,7 +60,7 @@
|
|
|
60
60
|
"typescript": "^4.9.5"
|
|
61
61
|
},
|
|
62
62
|
"dependencies": {
|
|
63
|
-
"fast-xml-parser": "^4.
|
|
63
|
+
"fast-xml-parser": "^4.1.1",
|
|
64
64
|
"json5": "^2.2.3",
|
|
65
65
|
"vscode-languageserver-types": "^3.17.2"
|
|
66
66
|
}
|