@abaplint/cli 2.113.6 → 2.113.8
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 +22 -13
- package/package.json +4 -4
package/build/cli.js
CHANGED
|
@@ -21808,6 +21808,7 @@ exports.ObjectOriented = void 0;
|
|
|
21808
21808
|
const Statements = __webpack_require__(/*! ../2_statements/statements */ "./node_modules/@abaplint/core/build/src/abap/2_statements/statements/index.js");
|
|
21809
21809
|
const Expressions = __webpack_require__(/*! ../2_statements/expressions */ "./node_modules/@abaplint/core/build/src/abap/2_statements/expressions/index.js");
|
|
21810
21810
|
const visibility_1 = __webpack_require__(/*! ../4_file_information/visibility */ "./node_modules/@abaplint/core/build/src/abap/4_file_information/visibility.js");
|
|
21811
|
+
const types_1 = __webpack_require__(/*! ../types */ "./node_modules/@abaplint/core/build/src/abap/types/index.js");
|
|
21811
21812
|
// todo, think some of the public methods can be made private
|
|
21812
21813
|
// todo: changet this class to static? for performance
|
|
21813
21814
|
class ObjectOriented {
|
|
@@ -21881,6 +21882,18 @@ class ObjectOriented {
|
|
|
21881
21882
|
}
|
|
21882
21883
|
return undefined;
|
|
21883
21884
|
}
|
|
21885
|
+
methodReferenceExtras(foundDef, ooName) {
|
|
21886
|
+
if (foundDef === undefined) {
|
|
21887
|
+
return {
|
|
21888
|
+
ooName: ooName,
|
|
21889
|
+
ooType: undefined,
|
|
21890
|
+
};
|
|
21891
|
+
}
|
|
21892
|
+
return {
|
|
21893
|
+
ooName: foundDef === null || foundDef === void 0 ? void 0 : foundDef.getName(),
|
|
21894
|
+
ooType: foundDef instanceof types_1.ClassDefinition ? "CLAS" : "INTF",
|
|
21895
|
+
};
|
|
21896
|
+
}
|
|
21884
21897
|
findClassName(node) {
|
|
21885
21898
|
if (!(node.get() instanceof Statements.ClassImplementation
|
|
21886
21899
|
|| node.get() instanceof Statements.ClassDefinition)) {
|
|
@@ -25718,7 +25731,6 @@ const method_call_param_1 = __webpack_require__(/*! ./method_call_param */ "./no
|
|
|
25718
25731
|
const _reference_1 = __webpack_require__(/*! ../_reference */ "./node_modules/@abaplint/core/build/src/abap/5_syntax/_reference.js");
|
|
25719
25732
|
const component_name_1 = __webpack_require__(/*! ./component_name */ "./node_modules/@abaplint/core/build/src/abap/5_syntax/expressions/component_name.js");
|
|
25720
25733
|
const attribute_name_1 = __webpack_require__(/*! ./attribute_name */ "./node_modules/@abaplint/core/build/src/abap/5_syntax/expressions/attribute_name.js");
|
|
25721
|
-
const class_definition_1 = __webpack_require__(/*! ../../types/class_definition */ "./node_modules/@abaplint/core/build/src/abap/types/class_definition.js");
|
|
25722
25734
|
const _syntax_input_1 = __webpack_require__(/*! ../_syntax_input */ "./node_modules/@abaplint/core/build/src/abap/5_syntax/_syntax_input.js");
|
|
25723
25735
|
class MethodCallChain {
|
|
25724
25736
|
runSyntax(node, input, targetType) {
|
|
@@ -25761,10 +25773,8 @@ class MethodCallChain {
|
|
|
25761
25773
|
input.issues.push((0, _syntax_input_1.syntaxIssue)(input, methodToken, message));
|
|
25762
25774
|
return new basic_1.VoidType(_syntax_input_1.CheckSyntaxKey);
|
|
25763
25775
|
}
|
|
25764
|
-
const
|
|
25765
|
-
|
|
25766
|
-
ooType: foundDef instanceof class_definition_1.ClassDefinition ? "CLAS" : "INTF"
|
|
25767
|
-
};
|
|
25776
|
+
const voidedName = context instanceof basic_1.VoidType ? context.getVoided() : undefined;
|
|
25777
|
+
const extra = helper.methodReferenceExtras(foundDef, className || voidedName);
|
|
25768
25778
|
input.scope.addReference(methodToken, method, _reference_1.ReferenceType.MethodReference, input.filename, extra);
|
|
25769
25779
|
}
|
|
25770
25780
|
if (methodName === null || methodName === void 0 ? void 0 : methodName.includes("~")) {
|
|
@@ -26349,7 +26359,6 @@ const source_field_1 = __webpack_require__(/*! ./source_field */ "./node_modules
|
|
|
26349
26359
|
const tokens_1 = __webpack_require__(/*! ../../1_lexer/tokens */ "./node_modules/@abaplint/core/build/src/abap/1_lexer/tokens/index.js");
|
|
26350
26360
|
const attribute_name_1 = __webpack_require__(/*! ./attribute_name */ "./node_modules/@abaplint/core/build/src/abap/5_syntax/expressions/attribute_name.js");
|
|
26351
26361
|
const component_name_1 = __webpack_require__(/*! ./component_name */ "./node_modules/@abaplint/core/build/src/abap/5_syntax/expressions/component_name.js");
|
|
26352
|
-
const types_1 = __webpack_require__(/*! ../../types */ "./node_modules/@abaplint/core/build/src/abap/types/index.js");
|
|
26353
26362
|
const version_1 = __webpack_require__(/*! ../../../version */ "./node_modules/@abaplint/core/build/src/version.js");
|
|
26354
26363
|
const _syntax_input_1 = __webpack_require__(/*! ../_syntax_input */ "./node_modules/@abaplint/core/build/src/abap/5_syntax/_syntax_input.js");
|
|
26355
26364
|
const assert_error_1 = __webpack_require__(/*! ../assert_error */ "./node_modules/@abaplint/core/build/src/abap/5_syntax/assert_error.js");
|
|
@@ -26429,10 +26438,7 @@ class MethodSource {
|
|
|
26429
26438
|
return new basic_1.VoidType(_syntax_input_1.CheckSyntaxKey);
|
|
26430
26439
|
}
|
|
26431
26440
|
else if (method) {
|
|
26432
|
-
const extra =
|
|
26433
|
-
ooName: foundDef === null || foundDef === void 0 ? void 0 : foundDef.getName(),
|
|
26434
|
-
ooType: foundDef instanceof types_1.ClassDefinition ? "CLAS" : "INTF"
|
|
26435
|
-
};
|
|
26441
|
+
const extra = helper.methodReferenceExtras(foundDef, className);
|
|
26436
26442
|
input.scope.addReference(methodToken, method, _reference_1.ReferenceType.MethodReference, input.filename, extra);
|
|
26437
26443
|
context = method;
|
|
26438
26444
|
}
|
|
@@ -52708,7 +52714,7 @@ class Registry {
|
|
|
52708
52714
|
}
|
|
52709
52715
|
static abaplintVersion() {
|
|
52710
52716
|
// magic, see build script "version.sh"
|
|
52711
|
-
return "2.113.
|
|
52717
|
+
return "2.113.8";
|
|
52712
52718
|
}
|
|
52713
52719
|
getDDICReferences() {
|
|
52714
52720
|
return this.ddicReferences;
|
|
@@ -64888,7 +64894,7 @@ https://docs.abapopenchecks.org/checks/16/`,
|
|
|
64888
64894
|
const position = new position_1.Position(i + 1, column);
|
|
64889
64895
|
// merge punc into previous row
|
|
64890
64896
|
let rowContent = rows[i].trim();
|
|
64891
|
-
// if reported row contains
|
|
64897
|
+
// if reported row contains parentheses, prefix with space if needed
|
|
64892
64898
|
if (rowContent.length > 1 && !rows[i - 1].endsWith(" ") && !rows[i - 1].endsWith(" \r")) {
|
|
64893
64899
|
rowContent = " " + rowContent;
|
|
64894
64900
|
}
|
|
@@ -64898,7 +64904,10 @@ https://docs.abapopenchecks.org/checks/16/`,
|
|
|
64898
64904
|
}
|
|
64899
64905
|
const startPos = new position_1.Position(i, rows[i - 1].length + 1 + offset);
|
|
64900
64906
|
const endPos = new position_1.Position(i + 1, rows[i].length + 1);
|
|
64901
|
-
|
|
64907
|
+
let fix = edit_helper_1.EditHelper.replaceRange(file, startPos, endPos, rowContent);
|
|
64908
|
+
if (rows[i - 1] === undefined || rows[i - 1].indexOf("*") === 0 || rows[i - 1].includes(`"`)) {
|
|
64909
|
+
fix = undefined;
|
|
64910
|
+
}
|
|
64902
64911
|
const issue = issue_1.Issue.atPosition(file, position, this.getMessage(), this.getMetadata().key, this.conf.severity, fix);
|
|
64903
64912
|
issues.push(issue);
|
|
64904
64913
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@abaplint/cli",
|
|
3
|
-
"version": "2.113.
|
|
3
|
+
"version": "2.113.8",
|
|
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.8",
|
|
42
42
|
"@types/chai": "^4.3.19",
|
|
43
43
|
"@types/glob": "^8.1.0",
|
|
44
44
|
"@types/minimist": "^1.2.5",
|
|
@@ -47,14 +47,14 @@
|
|
|
47
47
|
"@types/progress": "^2.0.7",
|
|
48
48
|
"chai": "^4.5.0",
|
|
49
49
|
"chalk": "^5.3.0",
|
|
50
|
-
"eslint": "^9.
|
|
50
|
+
"eslint": "^9.10.0",
|
|
51
51
|
"glob": "^7.2.3",
|
|
52
52
|
"json5": "^2.2.3",
|
|
53
53
|
"memfs": "^4.11.1",
|
|
54
54
|
"minimist": "^1.2.8",
|
|
55
55
|
"mocha": "^10.7.3",
|
|
56
56
|
"progress": "^2.0.3",
|
|
57
|
-
"typescript": "^5.
|
|
57
|
+
"typescript": "^5.6.2",
|
|
58
58
|
"webpack": "^5.94.0",
|
|
59
59
|
"webpack-cli": "^5.1.4",
|
|
60
60
|
"xml-js": "^1.6.11"
|