@abaplint/cli 2.120.97 → 2.120.99
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 +21 -6
- package/package.json +2 -2
package/build/cli.js
CHANGED
|
@@ -9205,7 +9205,7 @@ const sql_case_1 = __webpack_require__(/*! ./sql_case */ "../core/build/src/abap
|
|
|
9205
9205
|
class SQLFunctionInput extends combi_1.Expression {
|
|
9206
9206
|
getRunnable() {
|
|
9207
9207
|
const hostParen = (0, combi_1.seq)((0, combi_1.tok)(tokens_1.ParenLeftW), source_1.Source, (0, combi_1.tok)(tokens_1.WParenRightW));
|
|
9208
|
-
const at = (0, combi_1.ver)(version_1.Release.v740sp05, (0, combi_1.seq)((0, combi_1.tok)(tokens_1.WAt), (0, combi_1.altPrio)(simple_source3_1.SimpleSource3, hostParen)));
|
|
9208
|
+
const at = (0, combi_1.ver)(version_1.Release.v740sp05, (0, combi_1.seq)((0, combi_1.tok)(tokens_1.WAt), (0, combi_1.altPrio)(simple_source3_1.SimpleSource3, hostParen)), { also: combi_1.AlsoIn.OpenABAP });
|
|
9209
9209
|
const parenInput = (0, combi_1.seq)("(", SQLFunctionInput, ")");
|
|
9210
9210
|
const param = (0, combi_1.altPrio)(parenInput, sql_case_1.SQLCase, sql_function_1.SQLFunction, sql_aggregation_1.SQLAggregation, sql_field_name_1.SQLFieldName, sql_alias_field_1.SQLAliasField, constant_1.Constant, at);
|
|
9211
9211
|
const operator = (0, combi_1.altPrio)("+", "-", "*", "/", "&&");
|
|
@@ -34595,12 +34595,13 @@ class MethodParameters {
|
|
|
34595
34595
|
}
|
|
34596
34596
|
parameterType = parameter.getType();
|
|
34597
34597
|
}
|
|
34598
|
+
// the parameter is supplied, even if its type is wrong
|
|
34599
|
+
(_a = this.requiredParameters) === null || _a === void 0 ? void 0 : _a.delete(item.name);
|
|
34598
34600
|
if (item.targetType && new _type_utils_1.TypeUtils(input.scope).isAssignableStrict(parameterType, item.targetType) === false) {
|
|
34599
34601
|
const message = "Method parameter type not compatible, " + item.name;
|
|
34600
34602
|
input.issues.push((0, _syntax_input_1.syntaxIssue)(input, node.getFirstToken(), message));
|
|
34601
34603
|
return;
|
|
34602
34604
|
}
|
|
34603
|
-
(_a = this.requiredParameters) === null || _a === void 0 ? void 0 : _a.delete(item.name);
|
|
34604
34605
|
}
|
|
34605
34606
|
}
|
|
34606
34607
|
checkExporting(node, input, method, errors = true) {
|
|
@@ -34623,7 +34624,9 @@ class MethodParameters {
|
|
|
34623
34624
|
input.issues.push((0, _syntax_input_1.syntaxIssue)(input, node.getFirstToken(), message));
|
|
34624
34625
|
continue;
|
|
34625
34626
|
}
|
|
34626
|
-
|
|
34627
|
+
// the parameter is supplied, even if its type is wrong
|
|
34628
|
+
this.requiredParameters.delete(item.name);
|
|
34629
|
+
if ((0, _check_text_symbol_1.checkTextSymbol)(item.source, parameter.getType(), input)) {
|
|
34627
34630
|
return;
|
|
34628
34631
|
}
|
|
34629
34632
|
else if (assignable(item.sourceType, parameter.getType(), item.source) === false) {
|
|
@@ -34631,7 +34634,6 @@ class MethodParameters {
|
|
|
34631
34634
|
input.issues.push((0, _syntax_input_1.syntaxIssue)(input, node.getFirstToken(), message));
|
|
34632
34635
|
return;
|
|
34633
34636
|
}
|
|
34634
|
-
this.requiredParameters.delete(item.name);
|
|
34635
34637
|
}
|
|
34636
34638
|
if (errors === true) {
|
|
34637
34639
|
this.reportErrors(node, input);
|
|
@@ -72174,9 +72176,19 @@ class View extends _abstract_object_1.AbstractObject {
|
|
|
72174
72176
|
continue;
|
|
72175
72177
|
}
|
|
72176
72178
|
else if (this.parsedData.header.VIEWCLASS === ViewClass.ExternalView) {
|
|
72179
|
+
// for external views TABNAME is the view itself, the types are given directly in the xml
|
|
72180
|
+
let type = Types.VoidType.get("ExternalView");
|
|
72181
|
+
if (field.EXVDATATYPE !== undefined) {
|
|
72182
|
+
type = ddic.textToType({
|
|
72183
|
+
text: field.EXVDATATYPE,
|
|
72184
|
+
length: field.EXVFLENGTH,
|
|
72185
|
+
decimals: field.EXVDECIMALS,
|
|
72186
|
+
infoText: this.getName() + "-" + field.VIEWFIELD,
|
|
72187
|
+
});
|
|
72188
|
+
}
|
|
72177
72189
|
components.push({
|
|
72178
72190
|
name: field.VIEWFIELD,
|
|
72179
|
-
type:
|
|
72191
|
+
type: type
|
|
72180
72192
|
});
|
|
72181
72193
|
continue;
|
|
72182
72194
|
}
|
|
@@ -72264,6 +72276,9 @@ class View extends _abstract_object_1.AbstractObject {
|
|
|
72264
72276
|
TABNAME: field.TABNAME,
|
|
72265
72277
|
FIELDNAME: field.FIELDNAME,
|
|
72266
72278
|
KEYFLAG: field.KEYFLAG,
|
|
72279
|
+
EXVDATATYPE: typeof field.EXVDATATYPE === "string" && field.EXVDATATYPE !== "" ? field.EXVDATATYPE : undefined,
|
|
72280
|
+
EXVFLENGTH: typeof field.EXVFLENGTH === "string" ? field.EXVFLENGTH : undefined,
|
|
72281
|
+
EXVDECIMALS: typeof field.EXVDECIMALS === "string" ? field.EXVDECIMALS : undefined,
|
|
72267
72282
|
});
|
|
72268
72283
|
}
|
|
72269
72284
|
const join = (_j = (_h = (_g = parsed === null || parsed === void 0 ? void 0 : parsed.abapGit) === null || _g === void 0 ? void 0 : _g["asx:abap"]) === null || _h === void 0 ? void 0 : _h["asx:values"]) === null || _j === void 0 ? void 0 : _j.DD28J_TABLE;
|
|
@@ -73115,7 +73130,7 @@ class Registry {
|
|
|
73115
73130
|
}
|
|
73116
73131
|
static abaplintVersion() {
|
|
73117
73132
|
// magic, see build script "version.js"
|
|
73118
|
-
return "2.120.
|
|
73133
|
+
return "2.120.99";
|
|
73119
73134
|
}
|
|
73120
73135
|
getDDICReferences() {
|
|
73121
73136
|
return this.ddicReferences;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@abaplint/cli",
|
|
3
|
-
"version": "2.120.
|
|
3
|
+
"version": "2.120.99",
|
|
4
4
|
"description": "abaplint - Command Line Interface",
|
|
5
5
|
"funding": "https://github.com/sponsors/larshp",
|
|
6
6
|
"bin": {
|
|
@@ -39,7 +39,7 @@
|
|
|
39
39
|
},
|
|
40
40
|
"homepage": "https://abaplint.org",
|
|
41
41
|
"devDependencies": {
|
|
42
|
-
"@abaplint/core": "^2.120.
|
|
42
|
+
"@abaplint/core": "^2.120.99",
|
|
43
43
|
"@types/chai": "^4.3.20",
|
|
44
44
|
"@types/minimist": "^1.2.5",
|
|
45
45
|
"@types/mocha": "^10.0.10",
|