@abaplint/cli 2.113.124 → 2.113.125
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 +18 -8
- package/package.json +2 -2
package/build/cli.js
CHANGED
|
@@ -825,12 +825,17 @@ class Standard {
|
|
|
825
825
|
return output + " - ";
|
|
826
826
|
}
|
|
827
827
|
build(issue) {
|
|
828
|
-
|
|
828
|
+
let filename = path.normalize(issue.getFilename());
|
|
829
|
+
if (filename.startsWith("\\\\?\\")) {
|
|
830
|
+
// windows UNC path
|
|
831
|
+
filename = filename.substring(4);
|
|
832
|
+
}
|
|
833
|
+
const relativePath = path.relative(process.cwd(), filename);
|
|
829
834
|
return {
|
|
830
|
-
filename:
|
|
835
|
+
filename: relativePath + "[" + issue.getStart().getRow() + ", " + issue.getStart().getCol() + "]",
|
|
831
836
|
description: issue.getMessage() + " (" + issue.getKey() + ")",
|
|
832
837
|
startPos: issue.getStart(),
|
|
833
|
-
rawFilename:
|
|
838
|
+
rawFilename: relativePath,
|
|
834
839
|
severity: issue.getSeverity().toString(),
|
|
835
840
|
};
|
|
836
841
|
}
|
|
@@ -4410,6 +4415,8 @@ class Compare extends combi_1.Expression {
|
|
|
4410
4415
|
const inn = (0, combi_1.seq)((0, combi_1.optPrio)("NOT"), "IN", (0, combi_1.altPrio)(_1.Source, list));
|
|
4411
4416
|
const sopt = (0, combi_1.seq)("IS", (0, combi_1.optPrio)("NOT"), (0, combi_1.altPrio)("SUPPLIED", "BOUND", (0, combi_1.ver)(version_1.Version.v750, (0, combi_1.seq)("INSTANCE OF", _1.ClassName), version_1.Version.OpenABAP), "REQUESTED", "INITIAL"));
|
|
4412
4417
|
const between = (0, combi_1.seq)((0, combi_1.optPrio)("NOT"), "BETWEEN", _1.Source, "AND", _1.Source);
|
|
4418
|
+
// https://help.sap.com/doc/abapdocu_752_index_htm/7.52/en-us/abennews-740_sp08-expressions.htm
|
|
4419
|
+
// but also seems to work in v740sp05, blah
|
|
4413
4420
|
const predicate = (0, combi_1.ver)(version_1.Version.v740sp08, _1.MethodCallChain);
|
|
4414
4421
|
const rett = (0, combi_1.seq)(_1.Source, (0, combi_1.altPrio)((0, combi_1.seq)(_1.CompareOperator, _1.Source), inn, between, sopt));
|
|
4415
4422
|
const fsassign = (0, combi_1.seq)(_1.SourceFieldSymbolChain, "IS", (0, combi_1.optPrio)("NOT"), "ASSIGNED");
|
|
@@ -7961,10 +7968,11 @@ exports.SQLAggregation = SQLAggregation;
|
|
|
7961
7968
|
|
|
7962
7969
|
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
7963
7970
|
exports.SQLAliasField = void 0;
|
|
7971
|
+
const tokens_1 = __webpack_require__(/*! ../../1_lexer/tokens */ "./node_modules/@abaplint/core/build/src/abap/1_lexer/tokens/index.js");
|
|
7964
7972
|
const combi_1 = __webpack_require__(/*! ../combi */ "./node_modules/@abaplint/core/build/src/abap/2_statements/combi.js");
|
|
7965
7973
|
class SQLAliasField extends combi_1.Expression {
|
|
7966
7974
|
getRunnable() {
|
|
7967
|
-
return (0, combi_1.regex)(/^(\/\w+\/)?\w+~(\/\w+\/)?\w+$/);
|
|
7975
|
+
return (0, combi_1.seq)((0, combi_1.regex)(/^(\/\w+\/)?\w+~(\/\w+\/)?\w+$/), (0, combi_1.starPrio)((0, combi_1.seq)((0, combi_1.tok)(tokens_1.Dash), (0, combi_1.regex)(/^\w+$/))));
|
|
7968
7976
|
}
|
|
7969
7977
|
}
|
|
7970
7978
|
exports.SQLAliasField = SQLAliasField;
|
|
@@ -8822,7 +8830,7 @@ class SQLSource extends combi_1.Expression {
|
|
|
8822
8830
|
getRunnable() {
|
|
8823
8831
|
const paren = (0, combi_1.seq)((0, combi_1.tok)(tokens_1.ParenLeftW), _1.Source, (0, combi_1.tok)(tokens_1.WParenRightW));
|
|
8824
8832
|
const at = (0, combi_1.ver)(version_1.Version.v740sp05, (0, combi_1.seq)((0, combi_1.tok)(tokens_1.WAt), (0, combi_1.altPrio)(_1.SimpleSource3, paren)));
|
|
8825
|
-
return (0, combi_1.
|
|
8833
|
+
return (0, combi_1.altPrio)(_1.SQLAliasField, _1.SimpleSource3, at);
|
|
8826
8834
|
}
|
|
8827
8835
|
}
|
|
8828
8836
|
exports.SQLSource = SQLSource;
|
|
@@ -19364,9 +19372,10 @@ Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
|
19364
19372
|
exports.DynproLoop = void 0;
|
|
19365
19373
|
const Statements = __webpack_require__(/*! ../../2_statements/statements */ "./node_modules/@abaplint/core/build/src/abap/2_statements/statements/index.js");
|
|
19366
19374
|
const _combi_1 = __webpack_require__(/*! ./_combi */ "./node_modules/@abaplint/core/build/src/abap/3_structures/structures/_combi.js");
|
|
19375
|
+
const chain_1 = __webpack_require__(/*! ./chain */ "./node_modules/@abaplint/core/build/src/abap/3_structures/structures/chain.js");
|
|
19367
19376
|
class DynproLoop {
|
|
19368
19377
|
getMatcher() {
|
|
19369
|
-
return (0, _combi_1.beginEnd)((0, _combi_1.sta)(Statements.DynproLoop), (0, _combi_1.star)((0, _combi_1.sta)(Statements.Module)), (0, _combi_1.sta)(Statements.EndLoop));
|
|
19378
|
+
return (0, _combi_1.beginEnd)((0, _combi_1.sta)(Statements.DynproLoop), (0, _combi_1.star)((0, _combi_1.alt)((0, _combi_1.sta)(Statements.Module), (0, _combi_1.sub)(chain_1.Chain))), (0, _combi_1.sta)(Statements.EndLoop));
|
|
19370
19379
|
}
|
|
19371
19380
|
}
|
|
19372
19381
|
exports.DynproLoop = DynproLoop;
|
|
@@ -19879,9 +19888,10 @@ const Statements = __webpack_require__(/*! ../../2_statements/statements */ "./n
|
|
|
19879
19888
|
const _combi_1 = __webpack_require__(/*! ./_combi */ "./node_modules/@abaplint/core/build/src/abap/3_structures/structures/_combi.js");
|
|
19880
19889
|
const chain_1 = __webpack_require__(/*! ./chain */ "./node_modules/@abaplint/core/build/src/abap/3_structures/structures/chain.js");
|
|
19881
19890
|
const loop_1 = __webpack_require__(/*! ./loop */ "./node_modules/@abaplint/core/build/src/abap/3_structures/structures/loop.js");
|
|
19891
|
+
const dynpro_loop_1 = __webpack_require__(/*! ./dynpro_loop */ "./node_modules/@abaplint/core/build/src/abap/3_structures/structures/dynpro_loop.js");
|
|
19882
19892
|
class ProcessAfterInput {
|
|
19883
19893
|
getMatcher() {
|
|
19884
|
-
const pai = (0, _combi_1.star)((0, _combi_1.alt)((0, _combi_1.sta)(Statements.Module), (0, _combi_1.sta)(Statements.Field), (0, _combi_1.sta)(Statements.CallSubscreen), (0, _combi_1.sub)(chain_1.Chain), (0, _combi_1.sub)(loop_1.Loop)));
|
|
19894
|
+
const pai = (0, _combi_1.star)((0, _combi_1.alt)((0, _combi_1.sta)(Statements.Module), (0, _combi_1.sta)(Statements.Field), (0, _combi_1.sta)(Statements.CallSubscreen), (0, _combi_1.sub)(chain_1.Chain), (0, _combi_1.sub)(dynpro_loop_1.DynproLoop), (0, _combi_1.sub)(loop_1.Loop)));
|
|
19885
19895
|
return (0, _combi_1.seq)((0, _combi_1.sta)(Statements.ProcessAfterInput), pai);
|
|
19886
19896
|
}
|
|
19887
19897
|
}
|
|
@@ -54230,7 +54240,7 @@ class Registry {
|
|
|
54230
54240
|
}
|
|
54231
54241
|
static abaplintVersion() {
|
|
54232
54242
|
// magic, see build script "version.sh"
|
|
54233
|
-
return "2.113.
|
|
54243
|
+
return "2.113.125";
|
|
54234
54244
|
}
|
|
54235
54245
|
getDDICReferences() {
|
|
54236
54246
|
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.125",
|
|
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.125",
|
|
42
42
|
"@types/chai": "^4.3.20",
|
|
43
43
|
"@types/minimist": "^1.2.5",
|
|
44
44
|
"@types/mocha": "^10.0.10",
|