@abaplint/cli 2.119.5 → 2.119.7
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/cli.js +15 -8
- package/package.json +2 -2
package/build/cli.js
CHANGED
|
@@ -24018,6 +24018,10 @@ class TypeUtils {
|
|
|
24018
24018
|
// then its a generic table, todo: add top level generic table type?
|
|
24019
24019
|
return true;
|
|
24020
24020
|
}
|
|
24021
|
+
else if (target instanceof basic_1.TableType && target.getRowType() instanceof basic_1.AnyType) {
|
|
24022
|
+
// then its a generic table, todo: add top level generic table type?
|
|
24023
|
+
return true;
|
|
24024
|
+
}
|
|
24021
24025
|
else if (target instanceof basic_1.TableType) {
|
|
24022
24026
|
const sourceKeyType = source.getOptions().keyType;
|
|
24023
24027
|
const targetKeyType = target.getOptions().keyType;
|
|
@@ -35885,6 +35889,7 @@ const Expressions = __webpack_require__(/*! ../../2_statements/expressions */ ".
|
|
|
35885
35889
|
const basic_1 = __webpack_require__(/*! ../../types/basic */ "./node_modules/@abaplint/core/build/src/abap/types/basic/index.js");
|
|
35886
35890
|
const inline_data_1 = __webpack_require__(/*! ../expressions/inline_data */ "./node_modules/@abaplint/core/build/src/abap/5_syntax/expressions/inline_data.js");
|
|
35887
35891
|
const target_1 = __webpack_require__(/*! ../expressions/target */ "./node_modules/@abaplint/core/build/src/abap/5_syntax/expressions/target.js");
|
|
35892
|
+
const _reference_1 = __webpack_require__(/*! ../_reference */ "./node_modules/@abaplint/core/build/src/abap/5_syntax/_reference.js");
|
|
35888
35893
|
const _syntax_input_1 = __webpack_require__(/*! ../_syntax_input */ "./node_modules/@abaplint/core/build/src/abap/5_syntax/_syntax_input.js");
|
|
35889
35894
|
class WhenType {
|
|
35890
35895
|
runSyntax(node, input) {
|
|
@@ -35894,19 +35899,21 @@ class WhenType {
|
|
|
35894
35899
|
return undefined;
|
|
35895
35900
|
}
|
|
35896
35901
|
let type = undefined;
|
|
35897
|
-
const className = nameToken.getStr();
|
|
35898
|
-
const found = input.scope.
|
|
35899
|
-
if (found ===
|
|
35902
|
+
const className = nameToken.getStr().toUpperCase();
|
|
35903
|
+
const found = input.scope.existsObject(className);
|
|
35904
|
+
if (found === null || found === void 0 ? void 0 : found.id) {
|
|
35905
|
+
type = new basic_1.ObjectReferenceType(found.id);
|
|
35906
|
+
input.scope.addReference(nameToken, found.id, _reference_1.ReferenceType.ObjectOrientedReference, input.filename);
|
|
35907
|
+
}
|
|
35908
|
+
else if (input.scope.getDDIC().inErrorNamespace(className) === false) {
|
|
35900
35909
|
type = basic_1.VoidType.get(className);
|
|
35910
|
+
input.scope.addReference(nameToken, undefined, _reference_1.ReferenceType.ObjectOrientedVoidReference, input.filename, { ooName: className, ooType: "Void" });
|
|
35901
35911
|
}
|
|
35902
|
-
else
|
|
35912
|
+
else {
|
|
35903
35913
|
const message = "Class " + className + " not found";
|
|
35904
35914
|
input.issues.push((0, _syntax_input_1.syntaxIssue)(input, nameToken, message));
|
|
35905
35915
|
return;
|
|
35906
35916
|
}
|
|
35907
|
-
else {
|
|
35908
|
-
type = new basic_1.ObjectReferenceType(found);
|
|
35909
|
-
}
|
|
35910
35917
|
const target = node === null || node === void 0 ? void 0 : node.findDirectExpression(Expressions.Target);
|
|
35911
35918
|
const inline = target === null || target === void 0 ? void 0 : target.findDirectExpression(Expressions.InlineData);
|
|
35912
35919
|
if (inline) {
|
|
@@ -56216,7 +56223,7 @@ class Registry {
|
|
|
56216
56223
|
}
|
|
56217
56224
|
static abaplintVersion() {
|
|
56218
56225
|
// magic, see build script "version.sh"
|
|
56219
|
-
return "2.119.
|
|
56226
|
+
return "2.119.7";
|
|
56220
56227
|
}
|
|
56221
56228
|
getDDICReferences() {
|
|
56222
56229
|
return this.ddicReferences;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@abaplint/cli",
|
|
3
|
-
"version": "2.119.
|
|
3
|
+
"version": "2.119.7",
|
|
4
4
|
"description": "abaplint - Command Line Interface",
|
|
5
5
|
"funding": "https://github.com/sponsors/larshp",
|
|
6
6
|
"bin": {
|
|
@@ -38,7 +38,7 @@
|
|
|
38
38
|
},
|
|
39
39
|
"homepage": "https://abaplint.org",
|
|
40
40
|
"devDependencies": {
|
|
41
|
-
"@abaplint/core": "^2.119.
|
|
41
|
+
"@abaplint/core": "^2.119.7",
|
|
42
42
|
"@types/chai": "^4.3.20",
|
|
43
43
|
"@types/minimist": "^1.2.5",
|
|
44
44
|
"@types/mocha": "^10.0.10",
|