@abaplint/cli 2.113.245 → 2.113.247
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 +26 -43
- package/package.json +2 -2
package/build/cli.js
CHANGED
|
@@ -6034,7 +6034,6 @@ __exportStar(__webpack_require__(/*! ./sql_arithmetic_operator */ "./node_module
|
|
|
6034
6034
|
__exportStar(__webpack_require__(/*! ./sql_arithmetics */ "./node_modules/@abaplint/core/build/src/abap/2_statements/expressions/sql_arithmetics.js"), exports);
|
|
6035
6035
|
__exportStar(__webpack_require__(/*! ./sql_as_name */ "./node_modules/@abaplint/core/build/src/abap/2_statements/expressions/sql_as_name.js"), exports);
|
|
6036
6036
|
__exportStar(__webpack_require__(/*! ./sql_case */ "./node_modules/@abaplint/core/build/src/abap/2_statements/expressions/sql_case.js"), exports);
|
|
6037
|
-
__exportStar(__webpack_require__(/*! ./sql_cast */ "./node_modules/@abaplint/core/build/src/abap/2_statements/expressions/sql_cast.js"), exports);
|
|
6038
6037
|
__exportStar(__webpack_require__(/*! ./sql_cds_parameters */ "./node_modules/@abaplint/core/build/src/abap/2_statements/expressions/sql_cds_parameters.js"), exports);
|
|
6039
6038
|
__exportStar(__webpack_require__(/*! ./sql_client */ "./node_modules/@abaplint/core/build/src/abap/2_statements/expressions/sql_client.js"), exports);
|
|
6040
6039
|
__exportStar(__webpack_require__(/*! ./sql_compare_operator */ "./node_modules/@abaplint/core/build/src/abap/2_statements/expressions/sql_compare_operator.js"), exports);
|
|
@@ -8185,33 +8184,6 @@ exports.SQLCase = SQLCase;
|
|
|
8185
8184
|
|
|
8186
8185
|
/***/ }),
|
|
8187
8186
|
|
|
8188
|
-
/***/ "./node_modules/@abaplint/core/build/src/abap/2_statements/expressions/sql_cast.js":
|
|
8189
|
-
/*!*****************************************************************************************!*\
|
|
8190
|
-
!*** ./node_modules/@abaplint/core/build/src/abap/2_statements/expressions/sql_cast.js ***!
|
|
8191
|
-
\*****************************************************************************************/
|
|
8192
|
-
/***/ ((__unused_webpack_module, exports, __webpack_require__) => {
|
|
8193
|
-
|
|
8194
|
-
"use strict";
|
|
8195
|
-
|
|
8196
|
-
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
8197
|
-
exports.SQLCast = void 0;
|
|
8198
|
-
const _1 = __webpack_require__(/*! . */ "./node_modules/@abaplint/core/build/src/abap/2_statements/expressions/index.js");
|
|
8199
|
-
const version_1 = __webpack_require__(/*! ../../../version */ "./node_modules/@abaplint/core/build/src/version.js");
|
|
8200
|
-
const tokens_1 = __webpack_require__(/*! ../../1_lexer/tokens */ "./node_modules/@abaplint/core/build/src/abap/1_lexer/tokens/index.js");
|
|
8201
|
-
const combi_1 = __webpack_require__(/*! ../combi */ "./node_modules/@abaplint/core/build/src/abap/2_statements/combi.js");
|
|
8202
|
-
const sql_field_name_1 = __webpack_require__(/*! ./sql_field_name */ "./node_modules/@abaplint/core/build/src/abap/2_statements/expressions/sql_field_name.js");
|
|
8203
|
-
class SQLCast extends combi_1.Expression {
|
|
8204
|
-
getRunnable() {
|
|
8205
|
-
const abap = (0, combi_1.ver)(version_1.Version.v740sp05, (0, combi_1.seq)((0, combi_1.tok)(tokens_1.WAt), _1.SimpleFieldChain2), version_1.Version.OpenABAP);
|
|
8206
|
-
// todo: from version something
|
|
8207
|
-
return (0, combi_1.seq)("CAST", "(", (0, combi_1.opt)((0, combi_1.altPrio)(sql_field_name_1.SQLFieldName, abap)), "AS", sql_field_name_1.SQLFieldName, ")");
|
|
8208
|
-
}
|
|
8209
|
-
}
|
|
8210
|
-
exports.SQLCast = SQLCast;
|
|
8211
|
-
//# sourceMappingURL=sql_cast.js.map
|
|
8212
|
-
|
|
8213
|
-
/***/ }),
|
|
8214
|
-
|
|
8215
8187
|
/***/ "./node_modules/@abaplint/core/build/src/abap/2_statements/expressions/sql_cds_parameters.js":
|
|
8216
8188
|
/*!***************************************************************************************************!*\
|
|
8217
8189
|
!*** ./node_modules/@abaplint/core/build/src/abap/2_statements/expressions/sql_cds_parameters.js ***!
|
|
@@ -8367,7 +8339,7 @@ class SQLField extends combi_1.Expression {
|
|
|
8367
8339
|
const abap = (0, combi_1.ver)(version_1.Version.v740sp05, (0, combi_1.seq)((0, combi_1.tok)(tokens_1.WAt), _1.SimpleFieldChain2), version_1.Version.OpenABAP);
|
|
8368
8340
|
const as = (0, combi_1.seq)("AS", _1.SQLAsName);
|
|
8369
8341
|
const parenFieldName = (0, combi_1.seq)((0, combi_1.tok)(tokens_1.WParenLeftW), _1.SQLFieldName, (0, combi_1.altPrio)((0, combi_1.tok)(tokens_1.WParenRightW), (0, combi_1.tok)(tokens_1.WParenRight)));
|
|
8370
|
-
const field = (0, combi_1.altPrio)(_1.SQLAggregation, _1.SQLCase,
|
|
8342
|
+
const field = (0, combi_1.altPrio)(_1.SQLAggregation, _1.SQLCase, sql_function_1.SQLFunction, sql_path_1.SQLPath, _1.SQLFieldName, abap, _1.Constant, parenFieldName);
|
|
8371
8343
|
const parenField = (0, combi_1.seq)((0, combi_1.tok)(tokens_1.WParenLeftW), field, (0, combi_1.tok)(tokens_1.WParenRightW));
|
|
8372
8344
|
const sub = (0, combi_1.plusPrio)((0, combi_1.seq)((0, combi_1.altPrio)("+", "-", "*", "/", "&&"), (0, combi_1.altPrio)(parenField, field)));
|
|
8373
8345
|
const arith = (0, combi_1.ver)(version_1.Version.v740sp05, sub);
|
|
@@ -8633,10 +8605,11 @@ const integer_1 = __webpack_require__(/*! ./integer */ "./node_modules/@abaplint
|
|
|
8633
8605
|
const sql_function_input_1 = __webpack_require__(/*! ./sql_function_input */ "./node_modules/@abaplint/core/build/src/abap/2_statements/expressions/sql_function_input.js");
|
|
8634
8606
|
class SQLFunction extends combi_1.Expression {
|
|
8635
8607
|
getRunnable() {
|
|
8636
|
-
const castTypes = (0, combi_1.altPrio)((0, combi_1.seq)("CHAR", (0, combi_1.optPrio)((0, combi_1.seq)((0, combi_1.tok)(tokens_1.ParenLeftW), integer_1.Integer, (0, combi_1.tok)(tokens_1.WParenRightW)))), (0, combi_1.seq)("DEC", (0, combi_1.tok)(tokens_1.ParenLeftW), integer_1.Integer, ",", integer_1.Integer, (0, combi_1.tok)(tokens_1.WParenRightW)), (0, combi_1.seq)("NUMC", (0, combi_1.optPrio)((0, combi_1.seq)((0, combi_1.tok)(tokens_1.ParenLeftW), integer_1.Integer, (0, combi_1.tok)(tokens_1.WParenRightW)))), "FLTP", "INT2", "INT4", "INT8");
|
|
8608
|
+
const castTypes = (0, combi_1.altPrio)((0, combi_1.seq)("CHAR", (0, combi_1.optPrio)((0, combi_1.seq)((0, combi_1.tok)(tokens_1.ParenLeftW), integer_1.Integer, (0, combi_1.tok)(tokens_1.WParenRightW)))), (0, combi_1.seq)("DEC", (0, combi_1.tok)(tokens_1.ParenLeftW), integer_1.Integer, ",", integer_1.Integer, (0, combi_1.tok)(tokens_1.WParenRightW)), (0, combi_1.seq)("NUMC", (0, combi_1.optPrio)((0, combi_1.seq)((0, combi_1.tok)(tokens_1.ParenLeftW), integer_1.Integer, (0, combi_1.tok)(tokens_1.WParenRightW)))), "DATS", "FLTP", "INT2", "INT4", "INT8");
|
|
8637
8609
|
const commaParam = (0, combi_1.seq)(",", sql_function_input_1.SQLFunctionInput);
|
|
8638
8610
|
// note: the function names are not keywords, they are usually in lower case
|
|
8639
8611
|
const abs = (0, combi_1.ver)(version_1.Version.v740sp05, (0, combi_1.seq)((0, combi_1.regex)(/^abs$/i), (0, combi_1.tok)(tokens_1.ParenLeftW), sql_function_input_1.SQLFunctionInput, (0, combi_1.tok)(tokens_1.WParenRightW)));
|
|
8612
|
+
// yea, 750 is correct, but it also works technically in version v740sp05
|
|
8640
8613
|
const cast = (0, combi_1.ver)(version_1.Version.v750, (0, combi_1.seq)((0, combi_1.regex)(/^cast$/i), (0, combi_1.tok)(tokens_1.ParenLeftW), sql_function_input_1.SQLFunctionInput, "AS", castTypes, (0, combi_1.tok)(tokens_1.WParenRightW)));
|
|
8641
8614
|
const ceil = (0, combi_1.ver)(version_1.Version.v740sp05, (0, combi_1.seq)((0, combi_1.regex)(/^ceil$/i), (0, combi_1.tok)(tokens_1.ParenLeftW), sql_function_input_1.SQLFunctionInput, (0, combi_1.tok)(tokens_1.WParenRightW)));
|
|
8642
8615
|
const coalesce = (0, combi_1.ver)(version_1.Version.v740sp05, (0, combi_1.seq)((0, combi_1.regex)(/^coalesce$/i), (0, combi_1.tok)(tokens_1.ParenLeftW), sql_function_input_1.SQLFunctionInput, commaParam, (0, combi_1.optPrio)(commaParam), (0, combi_1.tok)(tokens_1.WParenRightW)));
|
|
@@ -11831,17 +11804,18 @@ class Convert {
|
|
|
11831
11804
|
const intoTime = (0, combi_1.seq)("TIME", expressions_1.Target);
|
|
11832
11805
|
const intoDate = (0, combi_1.seq)("DATE", expressions_1.Target);
|
|
11833
11806
|
const into = (0, combi_1.seq)("INTO", (0, combi_1.per)(intoTime, intoDate));
|
|
11834
|
-
const
|
|
11807
|
+
const daylightSource = (0, combi_1.seq)("DAYLIGHT SAVING TIME", expressions_1.Source);
|
|
11808
|
+
const daylightTarget = (0, combi_1.seq)("DAYLIGHT SAVING TIME", expressions_1.Target);
|
|
11835
11809
|
const zone = (0, combi_1.seq)("TIME ZONE", expressions_1.Source);
|
|
11836
|
-
const time = (0, combi_1.seq)("TIME STAMP", expressions_1.Source, (0, combi_1.per)(zone, into,
|
|
11810
|
+
const time = (0, combi_1.seq)("TIME STAMP", expressions_1.Source, (0, combi_1.per)(zone, into, daylightTarget));
|
|
11837
11811
|
const dat = (0, combi_1.seq)("DATE", expressions_1.Source);
|
|
11838
11812
|
const tim = (0, combi_1.seq)("TIME", expressions_1.Source);
|
|
11839
11813
|
const stamp = (0, combi_1.seq)("INTO TIME STAMP", expressions_1.Target);
|
|
11840
11814
|
const intoutc = (0, combi_1.ver)(version_1.Version.v754, (0, combi_1.seq)("INTO UTCLONG", expressions_1.Target));
|
|
11841
11815
|
const invert = (0, combi_1.seq)("INTO INVERTED-DATE", expressions_1.Target);
|
|
11842
|
-
const date = (0, combi_1.seq)((0, combi_1.per)(dat, tim), (0, combi_1.per)(
|
|
11816
|
+
const date = (0, combi_1.seq)((0, combi_1.per)(dat, tim), (0, combi_1.per)(daylightSource, stamp, zone, invert, intoutc));
|
|
11843
11817
|
const inv = (0, combi_1.seq)("INVERTED-DATE", expressions_1.Source, "INTO DATE", expressions_1.Target);
|
|
11844
|
-
const utclong = (0, combi_1.ver)(version_1.Version.v754, (0, combi_1.seq)("UTCLONG", expressions_1.Source, (0, combi_1.per)(zone, into,
|
|
11818
|
+
const utclong = (0, combi_1.ver)(version_1.Version.v754, (0, combi_1.seq)("UTCLONG", expressions_1.Source, (0, combi_1.per)(zone, into, daylightSource)));
|
|
11845
11819
|
return (0, combi_1.seq)("CONVERT", (0, combi_1.alt)(time, date, inv, utclong));
|
|
11846
11820
|
}
|
|
11847
11821
|
}
|
|
@@ -31304,14 +31278,21 @@ class Convert {
|
|
|
31304
31278
|
for (const s of node.findDirectExpressions(Expressions.Source)) {
|
|
31305
31279
|
source_1.Source.runSyntax(s, input);
|
|
31306
31280
|
}
|
|
31307
|
-
const
|
|
31308
|
-
|
|
31309
|
-
const
|
|
31310
|
-
if (
|
|
31311
|
-
|
|
31312
|
-
|
|
31313
|
-
|
|
31314
|
-
|
|
31281
|
+
const timeTargets = node.findExpressionsAfterToken("TIME");
|
|
31282
|
+
for (const timeTarget of timeTargets) {
|
|
31283
|
+
const concat = node.concatTokens().toUpperCase();
|
|
31284
|
+
if ((timeTarget === null || timeTarget === void 0 ? void 0 : timeTarget.get()) instanceof Expressions.Target) {
|
|
31285
|
+
const inline = timeTarget === null || timeTarget === void 0 ? void 0 : timeTarget.findDirectExpression(Expressions.InlineData);
|
|
31286
|
+
if (inline) {
|
|
31287
|
+
let targetType = new basic_1.TimeType();
|
|
31288
|
+
if (concat.includes("DAYLIGHT SAVING TIME " + inline.concatTokens().toUpperCase())) {
|
|
31289
|
+
targetType = new basic_1.CharacterType(1);
|
|
31290
|
+
}
|
|
31291
|
+
inline_data_1.InlineData.runSyntax(inline, input, targetType);
|
|
31292
|
+
}
|
|
31293
|
+
else {
|
|
31294
|
+
target_1.Target.runSyntax(timeTarget, input);
|
|
31295
|
+
}
|
|
31315
31296
|
}
|
|
31316
31297
|
}
|
|
31317
31298
|
const dateTarget = node.findExpressionAfterToken("DATE");
|
|
@@ -46354,6 +46335,7 @@ class ABAPObject extends _abstract_object_1.AbstractObject {
|
|
|
46354
46335
|
setDirty() {
|
|
46355
46336
|
this.syntaxResult = undefined;
|
|
46356
46337
|
this.texts = undefined;
|
|
46338
|
+
this.parsed = [];
|
|
46357
46339
|
super.setDirty();
|
|
46358
46340
|
}
|
|
46359
46341
|
getABAPFiles() {
|
|
@@ -46448,6 +46430,7 @@ class AbstractObject {
|
|
|
46448
46430
|
return this.name;
|
|
46449
46431
|
}
|
|
46450
46432
|
setDirty() {
|
|
46433
|
+
this.old = [];
|
|
46451
46434
|
this.dirty = true;
|
|
46452
46435
|
}
|
|
46453
46436
|
addFile(file) {
|
|
@@ -54896,7 +54879,7 @@ class Registry {
|
|
|
54896
54879
|
}
|
|
54897
54880
|
static abaplintVersion() {
|
|
54898
54881
|
// magic, see build script "version.sh"
|
|
54899
|
-
return "2.113.
|
|
54882
|
+
return "2.113.247";
|
|
54900
54883
|
}
|
|
54901
54884
|
getDDICReferences() {
|
|
54902
54885
|
return this.ddicReferences;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@abaplint/cli",
|
|
3
|
-
"version": "2.113.
|
|
3
|
+
"version": "2.113.247",
|
|
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.113.
|
|
41
|
+
"@abaplint/core": "^2.113.247",
|
|
42
42
|
"@types/chai": "^4.3.20",
|
|
43
43
|
"@types/minimist": "^1.2.5",
|
|
44
44
|
"@types/mocha": "^10.0.10",
|