@abaplint/cli 2.100.1 → 2.100.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 +61 -4
- package/package.json +3 -3
package/build/cli.js
CHANGED
|
@@ -25458,6 +25458,7 @@ class Source {
|
|
|
25458
25458
|
{
|
|
25459
25459
|
const foundType = this.determineType(node, scope, filename, targetType);
|
|
25460
25460
|
new conv_body_1.ConvBody().runSyntax(node.findDirectExpression(Expressions.ConvBody), scope, filename);
|
|
25461
|
+
this.addIfInferred(node, scope, filename, foundType);
|
|
25461
25462
|
return foundType;
|
|
25462
25463
|
}
|
|
25463
25464
|
case "REF":
|
|
@@ -38264,7 +38265,7 @@ class DDIC {
|
|
|
38264
38265
|
case "SSTRING": // 1 <= len <= 1333
|
|
38265
38266
|
case "STRG": // 256 <= len
|
|
38266
38267
|
case "STRING": // 256 <= len
|
|
38267
|
-
return new Types.StringType({ qualifiedName: qualifiedName });
|
|
38268
|
+
return new Types.StringType({ qualifiedName: qualifiedName || "STRING" });
|
|
38268
38269
|
case "RSTR": // 256 <= len
|
|
38269
38270
|
case "RAWSTRING": // 256 <= len
|
|
38270
38271
|
case "GEOM_EWKB":
|
|
@@ -39852,6 +39853,53 @@ exports.CodeActions = CodeActions;
|
|
|
39852
39853
|
|
|
39853
39854
|
/***/ }),
|
|
39854
39855
|
|
|
39856
|
+
/***/ "./node_modules/@abaplint/core/build/src/lsp/code_lens.js":
|
|
39857
|
+
/*!****************************************************************!*\
|
|
39858
|
+
!*** ./node_modules/@abaplint/core/build/src/lsp/code_lens.js ***!
|
|
39859
|
+
\****************************************************************/
|
|
39860
|
+
/***/ ((__unused_webpack_module, exports, __webpack_require__) => {
|
|
39861
|
+
|
|
39862
|
+
"use strict";
|
|
39863
|
+
|
|
39864
|
+
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
39865
|
+
exports.CodeLens = void 0;
|
|
39866
|
+
const LServer = __webpack_require__(/*! vscode-languageserver-types */ "./node_modules/vscode-languageserver-types/lib/esm/main.js");
|
|
39867
|
+
const _lsp_utils_1 = __webpack_require__(/*! ./_lsp_utils */ "./node_modules/@abaplint/core/build/src/lsp/_lsp_utils.js");
|
|
39868
|
+
const syntax_1 = __webpack_require__(/*! ../abap/5_syntax/syntax */ "./node_modules/@abaplint/core/build/src/abap/5_syntax/syntax.js");
|
|
39869
|
+
const _abap_object_1 = __webpack_require__(/*! ../objects/_abap_object */ "./node_modules/@abaplint/core/build/src/objects/_abap_object.js");
|
|
39870
|
+
class CodeLens {
|
|
39871
|
+
constructor(reg) {
|
|
39872
|
+
this.reg = reg;
|
|
39873
|
+
}
|
|
39874
|
+
list(textDocument) {
|
|
39875
|
+
var _a;
|
|
39876
|
+
const file = _lsp_utils_1.LSPUtils.getABAPFile(this.reg, textDocument.uri);
|
|
39877
|
+
if (file === undefined) {
|
|
39878
|
+
return [];
|
|
39879
|
+
}
|
|
39880
|
+
const obj = this.reg.findObjectForFile(file);
|
|
39881
|
+
if (obj === undefined || !(obj instanceof _abap_object_1.ABAPObject)) {
|
|
39882
|
+
return [];
|
|
39883
|
+
}
|
|
39884
|
+
new syntax_1.SyntaxLogic(this.reg, obj).run();
|
|
39885
|
+
const ret = [];
|
|
39886
|
+
const list = this.reg.getMSAGReferences().listByFilename(file.getFilename());
|
|
39887
|
+
for (const l of list) {
|
|
39888
|
+
const msag = this.reg.getObject("MSAG", l.messageClass);
|
|
39889
|
+
if (msag === undefined) {
|
|
39890
|
+
continue;
|
|
39891
|
+
}
|
|
39892
|
+
const text = (_a = msag.getByNumber(l.number)) === null || _a === void 0 ? void 0 : _a.getMessage();
|
|
39893
|
+
ret.push(LServer.CodeLens.create(_lsp_utils_1.LSPUtils.tokenToRange(l.token), text));
|
|
39894
|
+
}
|
|
39895
|
+
return ret;
|
|
39896
|
+
}
|
|
39897
|
+
}
|
|
39898
|
+
exports.CodeLens = CodeLens;
|
|
39899
|
+
//# sourceMappingURL=code_lens.js.map
|
|
39900
|
+
|
|
39901
|
+
/***/ }),
|
|
39902
|
+
|
|
39855
39903
|
/***/ "./node_modules/@abaplint/core/build/src/lsp/definition.js":
|
|
39856
39904
|
/*!*****************************************************************!*\
|
|
39857
39905
|
!*** ./node_modules/@abaplint/core/build/src/lsp/definition.js ***!
|
|
@@ -40549,6 +40597,7 @@ const references_1 = __webpack_require__(/*! ./references */ "./node_modules/@ab
|
|
|
40549
40597
|
const implementation_1 = __webpack_require__(/*! ./implementation */ "./node_modules/@abaplint/core/build/src/lsp/implementation.js");
|
|
40550
40598
|
const semantic_1 = __webpack_require__(/*! ./semantic */ "./node_modules/@abaplint/core/build/src/lsp/semantic.js");
|
|
40551
40599
|
const statement_flow_1 = __webpack_require__(/*! ../abap/flow/statement_flow */ "./node_modules/@abaplint/core/build/src/abap/flow/statement_flow.js");
|
|
40600
|
+
const code_lens_1 = __webpack_require__(/*! ./code_lens */ "./node_modules/@abaplint/core/build/src/lsp/code_lens.js");
|
|
40552
40601
|
// note Ranges are zero based in LSP,
|
|
40553
40602
|
// https://github.com/microsoft/language-server-protocol/blob/main/versions/protocol-2-x.md#range
|
|
40554
40603
|
// but 1 based in abaplint
|
|
@@ -40629,6 +40678,10 @@ class LanguageServer {
|
|
|
40629
40678
|
semanticTokensRange(range) {
|
|
40630
40679
|
return new semantic_1.SemanticHighlighting(this.reg).semanticTokensRange(range);
|
|
40631
40680
|
}
|
|
40681
|
+
// https://microsoft.github.io/language-server-protocol/specifications/lsp/3.17/specification/#textDocument_codeLens
|
|
40682
|
+
codeLens(textDocument) {
|
|
40683
|
+
return new code_lens_1.CodeLens(this.reg).list(textDocument);
|
|
40684
|
+
}
|
|
40632
40685
|
////////////////////////////////////////
|
|
40633
40686
|
// ______ _
|
|
40634
40687
|
// | ____| | |
|
|
@@ -47704,7 +47757,7 @@ class Registry {
|
|
|
47704
47757
|
}
|
|
47705
47758
|
static abaplintVersion() {
|
|
47706
47759
|
// magic, see build script "version.sh"
|
|
47707
|
-
return "2.100.
|
|
47760
|
+
return "2.100.3";
|
|
47708
47761
|
}
|
|
47709
47762
|
getDDICReferences() {
|
|
47710
47763
|
return this.ddicReferences;
|
|
@@ -55123,8 +55176,12 @@ class EmptyLineinStatement extends _abap_rule_1.ABAPRule {
|
|
|
55123
55176
|
key: "empty_line_in_statement",
|
|
55124
55177
|
title: "Find empty lines in statements",
|
|
55125
55178
|
shortDescription: `Checks that statements do not contain empty lines.`,
|
|
55126
|
-
extendedInformation: `https://
|
|
55127
|
-
|
|
55179
|
+
extendedInformation: `https://github.com/SAP/styleguides/blob/main/clean-abap/CleanABAP.md#dont-obsess-with-separating-blank-lines
|
|
55180
|
+
|
|
55181
|
+
https://docs.abapopenchecks.org/checks/41/`,
|
|
55182
|
+
tags: [_irule_1.RuleTag.Quickfix, _irule_1.RuleTag.Whitespace, _irule_1.RuleTag.SingleFile, _irule_1.RuleTag.Styleguide],
|
|
55183
|
+
badExample: `WRITE\n\nhello.`,
|
|
55184
|
+
goodExample: `WRITE hello.`,
|
|
55128
55185
|
};
|
|
55129
55186
|
}
|
|
55130
55187
|
getMessage() {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@abaplint/cli",
|
|
3
|
-
"version": "2.100.
|
|
3
|
+
"version": "2.100.3",
|
|
4
4
|
"description": "abaplint - Command Line Interface",
|
|
5
5
|
"funding": "https://github.com/sponsors/larshp",
|
|
6
6
|
"bin": {
|
|
@@ -38,12 +38,12 @@
|
|
|
38
38
|
},
|
|
39
39
|
"homepage": "https://abaplint.org",
|
|
40
40
|
"devDependencies": {
|
|
41
|
-
"@abaplint/core": "^2.100.
|
|
41
|
+
"@abaplint/core": "^2.100.3",
|
|
42
42
|
"@types/chai": "^4.3.5",
|
|
43
43
|
"@types/glob": "^7.2.0",
|
|
44
44
|
"@types/minimist": "^1.2.2",
|
|
45
45
|
"@types/mocha": "^10.0.1",
|
|
46
|
-
"@types/node": "^20.1.
|
|
46
|
+
"@types/node": "^20.1.5",
|
|
47
47
|
"@types/progress": "^2.0.5",
|
|
48
48
|
"chai": "^4.3.7",
|
|
49
49
|
"chalk": "^5.2.0",
|