@abaplint/cli 2.118.1 → 2.118.3
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 +13 -9
- package/package.json +2 -2
package/build/cli.js
CHANGED
|
@@ -15160,7 +15160,7 @@ const combi_1 = __webpack_require__(/*! ../combi */ "./node_modules/@abaplint/co
|
|
|
15160
15160
|
const expressions_1 = __webpack_require__(/*! ../expressions */ "./node_modules/@abaplint/core/build/src/abap/2_statements/expressions/index.js");
|
|
15161
15161
|
class MethodDef {
|
|
15162
15162
|
getMatcher() {
|
|
15163
|
-
const def = (0, combi_1.ver)(version_1.Version.v740sp08, (0, combi_1.seq)("DEFAULT", (0, combi_1.altPrio)("FAIL", "IGNORE")));
|
|
15163
|
+
const def = (0, combi_1.ver)(version_1.Version.v740sp08, (0, combi_1.seq)("DEFAULT", (0, combi_1.altPrio)("FAIL", "IGNORE")), version_1.Version.OpenABAP);
|
|
15164
15164
|
const parameters = (0, combi_1.seq)((0, combi_1.optPrio)((0, combi_1.altPrio)("FINAL", def, expressions_1.Abstract)), (0, combi_1.optPrio)(expressions_1.MethodDefImporting), (0, combi_1.optPrio)(expressions_1.MethodDefExporting), (0, combi_1.optPrio)(expressions_1.MethodDefChanging), (0, combi_1.optPrio)(expressions_1.MethodDefReturning), (0, combi_1.optPrio)((0, combi_1.altPrio)(expressions_1.MethodDefRaising, expressions_1.MethodDefExceptions)));
|
|
15165
15165
|
const testing = (0, combi_1.seq)((0, combi_1.optPrio)(expressions_1.Abstract), "FOR TESTING", (0, combi_1.optPrio)((0, combi_1.altPrio)(expressions_1.MethodDefRaising, expressions_1.MethodDefExceptions)));
|
|
15166
15166
|
const result = (0, combi_1.seq)("RESULT", expressions_1.MethodParamName);
|
|
@@ -18156,7 +18156,7 @@ const version_1 = __webpack_require__(/*! ../../../version */ "./node_modules/@a
|
|
|
18156
18156
|
class TypeEnum {
|
|
18157
18157
|
getMatcher() {
|
|
18158
18158
|
// it is also possible to define without Value, this is covered by normal type
|
|
18159
|
-
const ret = (0, combi_1.ver)(version_1.Version.v751, (0, combi_1.seq)("TYPES", expressions_1.NamespaceSimpleName, expressions_1.Value));
|
|
18159
|
+
const ret = (0, combi_1.ver)(version_1.Version.v751, (0, combi_1.seq)("TYPES", expressions_1.NamespaceSimpleName, expressions_1.Value), version_1.Version.OpenABAP);
|
|
18160
18160
|
return ret;
|
|
18161
18161
|
}
|
|
18162
18162
|
}
|
|
@@ -18183,7 +18183,7 @@ class TypeEnumBegin {
|
|
|
18183
18183
|
const structure = (0, combi_1.seq)("STRUCTURE", expressions_1.NamespaceSimpleName);
|
|
18184
18184
|
const base = (0, combi_1.seq)("BASE TYPE", expressions_1.NamespaceSimpleName);
|
|
18185
18185
|
const em = (0, combi_1.seq)("ENUM", expressions_1.NamespaceSimpleName, (0, combi_1.opt)(structure), (0, combi_1.opt)(base));
|
|
18186
|
-
const ret = (0, combi_1.ver)(version_1.Version.v751, (0, combi_1.seq)("TYPES", "BEGIN OF", em));
|
|
18186
|
+
const ret = (0, combi_1.ver)(version_1.Version.v751, (0, combi_1.seq)("TYPES", "BEGIN OF", em), version_1.Version.OpenABAP);
|
|
18187
18187
|
return ret;
|
|
18188
18188
|
}
|
|
18189
18189
|
}
|
|
@@ -18208,7 +18208,7 @@ const version_1 = __webpack_require__(/*! ../../../version */ "./node_modules/@a
|
|
|
18208
18208
|
class TypeEnumEnd {
|
|
18209
18209
|
getMatcher() {
|
|
18210
18210
|
const structure = (0, combi_1.seq)("STRUCTURE", expressions_1.NamespaceSimpleName);
|
|
18211
|
-
const ret = (0, combi_1.ver)(version_1.Version.v751, (0, combi_1.seq)("TYPES", "END OF", "ENUM", expressions_1.NamespaceSimpleName, (0, combi_1.opt)(structure)));
|
|
18211
|
+
const ret = (0, combi_1.ver)(version_1.Version.v751, (0, combi_1.seq)("TYPES", "END OF", "ENUM", expressions_1.NamespaceSimpleName, (0, combi_1.opt)(structure)), version_1.Version.OpenABAP);
|
|
18212
18212
|
return ret;
|
|
18213
18213
|
}
|
|
18214
18214
|
}
|
|
@@ -25983,7 +25983,9 @@ const _syntax_input_1 = __webpack_require__(/*! ../_syntax_input */ "./node_modu
|
|
|
25983
25983
|
class DatabaseTable {
|
|
25984
25984
|
static runSyntax(node, input) {
|
|
25985
25985
|
const token = node.getFirstToken();
|
|
25986
|
-
const
|
|
25986
|
+
const rawName = token.getStr();
|
|
25987
|
+
const starPrefixed = rawName.startsWith("*");
|
|
25988
|
+
const name = starPrefixed ? rawName.substring(1) : rawName;
|
|
25987
25989
|
if (name === "(") {
|
|
25988
25990
|
// dynamic
|
|
25989
25991
|
return undefined;
|
|
@@ -26202,6 +26204,7 @@ class FieldChain {
|
|
|
26202
26204
|
let context = undefined;
|
|
26203
26205
|
const children = node.getChildren();
|
|
26204
26206
|
context = this.findTop(children[0], input, refType);
|
|
26207
|
+
let prev = children[0].concatTokens();
|
|
26205
26208
|
for (let i = 1; i < children.length; i++) {
|
|
26206
26209
|
const current = children[i];
|
|
26207
26210
|
if (current === undefined) {
|
|
@@ -26242,7 +26245,7 @@ class FieldChain {
|
|
|
26242
26245
|
}
|
|
26243
26246
|
}
|
|
26244
26247
|
else {
|
|
26245
|
-
const message = "
|
|
26248
|
+
const message = prev.toUpperCase() + " is not structured (" + (context === null || context === void 0 ? void 0 : context.constructor.name) + ")";
|
|
26246
26249
|
input.issues.push((0, _syntax_input_1.syntaxIssue)(input, current.getFirstToken(), message));
|
|
26247
26250
|
return basic_1.VoidType.get(_syntax_input_1.CheckSyntaxKey);
|
|
26248
26251
|
}
|
|
@@ -26309,6 +26312,7 @@ class FieldChain {
|
|
|
26309
26312
|
}
|
|
26310
26313
|
}
|
|
26311
26314
|
}
|
|
26315
|
+
prev = current.concatTokens();
|
|
26312
26316
|
}
|
|
26313
26317
|
return context;
|
|
26314
26318
|
}
|
|
@@ -55882,7 +55886,7 @@ class Registry {
|
|
|
55882
55886
|
}
|
|
55883
55887
|
static abaplintVersion() {
|
|
55884
55888
|
// magic, see build script "version.sh"
|
|
55885
|
-
return "2.118.
|
|
55889
|
+
return "2.118.3";
|
|
55886
55890
|
}
|
|
55887
55891
|
getDDICReferences() {
|
|
55888
55892
|
return this.ddicReferences;
|
|
@@ -56480,12 +56484,12 @@ https://github.com/SAP/styleguides/blob/main/clean-abap/CleanABAP.md#abap-doc-on
|
|
|
56480
56484
|
issues.push(issue);
|
|
56481
56485
|
}
|
|
56482
56486
|
if (rowText.trim().match(regexEmptyAbapdoc) === null && previousRowsTexts.indexOf(rowText) === previousRowsTexts.length - 1) {
|
|
56483
|
-
const message = "Missing ABAP Doc for method " + method.identifier.getToken().getStr()
|
|
56487
|
+
const message = "Missing ABAP Doc for method " + method.identifier.getToken().getStr();
|
|
56484
56488
|
const issue = issue_1.Issue.atIdentifier(method.identifier, message, this.getMetadata().key, this.conf.severity);
|
|
56485
56489
|
issues.push(issue);
|
|
56486
56490
|
}
|
|
56487
56491
|
if (rowText.trim().match(regexEmptyParameterName) !== null) {
|
|
56488
|
-
const message = "Missing ABAP Doc parameter name for method " + method.identifier.getToken().getStr()
|
|
56492
|
+
const message = "Missing ABAP Doc parameter name for method " + method.identifier.getToken().getStr();
|
|
56489
56493
|
const issue = issue_1.Issue.atIdentifier(method.identifier, message, this.getMetadata().key, this.conf.severity);
|
|
56490
56494
|
issues.push(issue);
|
|
56491
56495
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@abaplint/cli",
|
|
3
|
-
"version": "2.118.
|
|
3
|
+
"version": "2.118.3",
|
|
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.118.
|
|
41
|
+
"@abaplint/core": "^2.118.3",
|
|
42
42
|
"@types/chai": "^4.3.20",
|
|
43
43
|
"@types/minimist": "^1.2.5",
|
|
44
44
|
"@types/mocha": "^10.0.10",
|