@abaplint/core 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/abaplint.d.ts
CHANGED
|
@@ -8459,6 +8459,9 @@ declare class View extends AbstractObject {
|
|
|
8459
8459
|
TABNAME: string;
|
|
8460
8460
|
FIELDNAME: string;
|
|
8461
8461
|
KEYFLAG: string;
|
|
8462
|
+
EXVDATATYPE?: string;
|
|
8463
|
+
EXVFLENGTH?: string;
|
|
8464
|
+
EXVDECIMALS?: string;
|
|
8462
8465
|
}[] | undefined;
|
|
8463
8466
|
getJoin(): {
|
|
8464
8467
|
LTAB: string;
|
|
@@ -15,7 +15,7 @@ const sql_case_1 = require("./sql_case");
|
|
|
15
15
|
class SQLFunctionInput extends combi_1.Expression {
|
|
16
16
|
getRunnable() {
|
|
17
17
|
const hostParen = (0, combi_1.seq)((0, combi_1.tok)(tokens_1.ParenLeftW), source_1.Source, (0, combi_1.tok)(tokens_1.WParenRightW));
|
|
18
|
-
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)));
|
|
18
|
+
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 });
|
|
19
19
|
const parenInput = (0, combi_1.seq)("(", SQLFunctionInput, ")");
|
|
20
20
|
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);
|
|
21
21
|
const operator = (0, combi_1.altPrio)("+", "-", "*", "/", "&&");
|
|
@@ -178,12 +178,13 @@ class MethodParameters {
|
|
|
178
178
|
}
|
|
179
179
|
parameterType = parameter.getType();
|
|
180
180
|
}
|
|
181
|
+
// the parameter is supplied, even if its type is wrong
|
|
182
|
+
(_a = this.requiredParameters) === null || _a === void 0 ? void 0 : _a.delete(item.name);
|
|
181
183
|
if (item.targetType && new _type_utils_1.TypeUtils(input.scope).isAssignableStrict(parameterType, item.targetType) === false) {
|
|
182
184
|
const message = "Method parameter type not compatible, " + item.name;
|
|
183
185
|
input.issues.push((0, _syntax_input_1.syntaxIssue)(input, node.getFirstToken(), message));
|
|
184
186
|
return;
|
|
185
187
|
}
|
|
186
|
-
(_a = this.requiredParameters) === null || _a === void 0 ? void 0 : _a.delete(item.name);
|
|
187
188
|
}
|
|
188
189
|
}
|
|
189
190
|
checkExporting(node, input, method, errors = true) {
|
|
@@ -206,7 +207,9 @@ class MethodParameters {
|
|
|
206
207
|
input.issues.push((0, _syntax_input_1.syntaxIssue)(input, node.getFirstToken(), message));
|
|
207
208
|
continue;
|
|
208
209
|
}
|
|
209
|
-
|
|
210
|
+
// the parameter is supplied, even if its type is wrong
|
|
211
|
+
this.requiredParameters.delete(item.name);
|
|
212
|
+
if ((0, _check_text_symbol_1.checkTextSymbol)(item.source, parameter.getType(), input)) {
|
|
210
213
|
return;
|
|
211
214
|
}
|
|
212
215
|
else if (assignable(item.sourceType, parameter.getType(), item.source) === false) {
|
|
@@ -214,7 +217,6 @@ class MethodParameters {
|
|
|
214
217
|
input.issues.push((0, _syntax_input_1.syntaxIssue)(input, node.getFirstToken(), message));
|
|
215
218
|
return;
|
|
216
219
|
}
|
|
217
|
-
this.requiredParameters.delete(item.name);
|
|
218
220
|
}
|
|
219
221
|
if (errors === true) {
|
|
220
222
|
this.reportErrors(node, input);
|
|
@@ -86,9 +86,19 @@ class View extends _abstract_object_1.AbstractObject {
|
|
|
86
86
|
continue;
|
|
87
87
|
}
|
|
88
88
|
else if (this.parsedData.header.VIEWCLASS === ViewClass.ExternalView) {
|
|
89
|
+
// for external views TABNAME is the view itself, the types are given directly in the xml
|
|
90
|
+
let type = Types.VoidType.get("ExternalView");
|
|
91
|
+
if (field.EXVDATATYPE !== undefined) {
|
|
92
|
+
type = ddic.textToType({
|
|
93
|
+
text: field.EXVDATATYPE,
|
|
94
|
+
length: field.EXVFLENGTH,
|
|
95
|
+
decimals: field.EXVDECIMALS,
|
|
96
|
+
infoText: this.getName() + "-" + field.VIEWFIELD,
|
|
97
|
+
});
|
|
98
|
+
}
|
|
89
99
|
components.push({
|
|
90
100
|
name: field.VIEWFIELD,
|
|
91
|
-
type:
|
|
101
|
+
type: type
|
|
92
102
|
});
|
|
93
103
|
continue;
|
|
94
104
|
}
|
|
@@ -176,6 +186,9 @@ class View extends _abstract_object_1.AbstractObject {
|
|
|
176
186
|
TABNAME: field.TABNAME,
|
|
177
187
|
FIELDNAME: field.FIELDNAME,
|
|
178
188
|
KEYFLAG: field.KEYFLAG,
|
|
189
|
+
EXVDATATYPE: typeof field.EXVDATATYPE === "string" && field.EXVDATATYPE !== "" ? field.EXVDATATYPE : undefined,
|
|
190
|
+
EXVFLENGTH: typeof field.EXVFLENGTH === "string" ? field.EXVFLENGTH : undefined,
|
|
191
|
+
EXVDECIMALS: typeof field.EXVDECIMALS === "string" ? field.EXVDECIMALS : undefined,
|
|
179
192
|
});
|
|
180
193
|
}
|
|
181
194
|
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;
|
package/build/src/registry.js
CHANGED