@abaplint/transpiler 2.11.41 → 2.11.42
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.
|
@@ -5,17 +5,10 @@ const chunk_1 = require("../chunk");
|
|
|
5
5
|
const transpile_types_1 = require("../transpile_types");
|
|
6
6
|
class TypeNameOrInfer {
|
|
7
7
|
findType(node, traversal) {
|
|
8
|
-
// let type: AbstractType | undefined;
|
|
9
8
|
const scope = traversal.findCurrentScopeByToken(node.getFirstToken());
|
|
10
|
-
// if (node.concatTokens() === "#") {
|
|
11
9
|
const type = traversal.lookupInferred(node, scope);
|
|
12
|
-
/*
|
|
13
|
-
} else {
|
|
14
|
-
type = traversal.lookupType(node.getFirstChild() as Nodes.ExpressionNode, scope);
|
|
15
|
-
}
|
|
16
|
-
*/
|
|
17
10
|
if (type === undefined) {
|
|
18
|
-
throw new Error("TypeNameOrInfer, type not found: " + node.concatTokens());
|
|
11
|
+
throw new Error("TypeNameOrInfer, type not found: " + node.concatTokens() + ", " + traversal.getCurrentObject().getName() + " line " + node.getFirstToken().getStart().getRow());
|
|
19
12
|
}
|
|
20
13
|
return type;
|
|
21
14
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@abaplint/transpiler",
|
|
3
|
-
"version": "2.11.
|
|
3
|
+
"version": "2.11.42",
|
|
4
4
|
"description": "Transpiler",
|
|
5
5
|
"main": "build/src/index.js",
|
|
6
6
|
"typings": "build/src/index.d.ts",
|
|
@@ -29,7 +29,7 @@
|
|
|
29
29
|
"author": "abaplint",
|
|
30
30
|
"license": "MIT",
|
|
31
31
|
"dependencies": {
|
|
32
|
-
"@abaplint/core": "^2.113.
|
|
32
|
+
"@abaplint/core": "^2.113.182",
|
|
33
33
|
"source-map": "^0.7.6"
|
|
34
34
|
},
|
|
35
35
|
"devDependencies": {
|