@abaplint/cli 2.113.13 → 2.113.15
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 +11 -1
- package/package.json +2 -2
package/build/cli.js
CHANGED
|
@@ -20038,6 +20038,7 @@ class ABAPFileInformation {
|
|
|
20038
20038
|
identifier: new _identifier_1.Identifier(methodName, this.filename),
|
|
20039
20039
|
isRedefinition: def.findDirectExpression(Expressions.Redefinition) !== undefined,
|
|
20040
20040
|
isForTesting: def.concatTokens().toUpperCase().includes(" FOR TESTING"),
|
|
20041
|
+
isFinal: def.concatTokens().toUpperCase().includes(" FINAL"),
|
|
20041
20042
|
isAbstract: def.findDirectExpression(Expressions.Abstract) !== undefined,
|
|
20042
20043
|
isEventHandler: def.findDirectExpression(Expressions.EventHandler) !== undefined,
|
|
20043
20044
|
visibility,
|
|
@@ -52746,7 +52747,7 @@ class Registry {
|
|
|
52746
52747
|
}
|
|
52747
52748
|
static abaplintVersion() {
|
|
52748
52749
|
// magic, see build script "version.sh"
|
|
52749
|
-
return "2.113.
|
|
52750
|
+
return "2.113.15";
|
|
52750
52751
|
}
|
|
52751
52752
|
getDDICReferences() {
|
|
52752
52753
|
return this.ddicReferences;
|
|
@@ -63705,6 +63706,7 @@ ENDCLASS.`,
|
|
|
63705
63706
|
};
|
|
63706
63707
|
const expected = new indent_1.Indent(indentOpts).getExpectedIndents(file);
|
|
63707
63708
|
const ret = [];
|
|
63709
|
+
let previous = undefined;
|
|
63708
63710
|
for (const statement of file.getStatements()) {
|
|
63709
63711
|
const position = statement.getFirstToken().getStart();
|
|
63710
63712
|
if (position instanceof virtual_position_1.VirtualPosition) {
|
|
@@ -63739,6 +63741,12 @@ ENDCLASS.`,
|
|
|
63739
63741
|
continue;
|
|
63740
63742
|
}
|
|
63741
63743
|
}
|
|
63744
|
+
// only apply for the first statement in a chain
|
|
63745
|
+
if (statement.getColon() !== undefined
|
|
63746
|
+
&& (previous === null || previous === void 0 ? void 0 : previous.getColon()) !== undefined
|
|
63747
|
+
&& statement.getColon().getStart().equals(previous.getColon().getStart())) {
|
|
63748
|
+
continue;
|
|
63749
|
+
}
|
|
63742
63750
|
if (indent && indent > 0 && indent !== position.getCol()) {
|
|
63743
63751
|
const expected = indent - 1;
|
|
63744
63752
|
const fix = edit_helper_1.EditHelper.replaceRange(file, new position_1.Position(position.getRow(), 1), position, " ".repeat(expected));
|
|
@@ -63749,6 +63757,7 @@ ENDCLASS.`,
|
|
|
63749
63757
|
break;
|
|
63750
63758
|
}
|
|
63751
63759
|
}
|
|
63760
|
+
previous = statement;
|
|
63752
63761
|
}
|
|
63753
63762
|
return ret;
|
|
63754
63763
|
}
|
|
@@ -74080,6 +74089,7 @@ Skips:
|
|
|
74080
74089
|
}
|
|
74081
74090
|
let fix = undefined;
|
|
74082
74091
|
if (i.visibility === visibility_1.Visibility.Private
|
|
74092
|
+
|| i.isFinal === true
|
|
74083
74093
|
|| (i.visibility === visibility_1.Visibility.Protected && this.hasSubClass(obj) === false)) {
|
|
74084
74094
|
const implementation = this.findMethodImplementation(i, file);
|
|
74085
74095
|
if (implementation !== undefined) {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@abaplint/cli",
|
|
3
|
-
"version": "2.113.
|
|
3
|
+
"version": "2.113.15",
|
|
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.15",
|
|
42
42
|
"@types/chai": "^4.3.19",
|
|
43
43
|
"@types/glob": "^8.1.0",
|
|
44
44
|
"@types/minimist": "^1.2.5",
|