@abaplint/cli 2.113.92 → 2.113.93
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 +14 -4
- package/package.json +2 -2
package/build/cli.js
CHANGED
|
@@ -41001,7 +41001,7 @@ class CDSCondition extends combi_1.Expression {
|
|
|
41001
41001
|
const name = (0, combi_1.seq)(_1.CDSName, (0, combi_1.optPrio)((0, combi_1.seq)(".", (0, combi_1.altPrio)(_1.CDSString, _1.CDSName))));
|
|
41002
41002
|
const left = (0, combi_1.altPrio)(_1.CDSString, _1.CDSFunction, name);
|
|
41003
41003
|
const operators = (0, combi_1.altPrio)("=", (0, combi_1.seq)("!", "="), (0, combi_1.seq)("<", ">"), (0, combi_1.seq)(">", "="), (0, combi_1.seq)("<", "="), "<", ">", "LIKE", "NOT LIKE");
|
|
41004
|
-
const compare = (0, combi_1.seq)(left, operators, (0, combi_1.
|
|
41004
|
+
const compare = (0, combi_1.seq)(left, operators, (0, combi_1.altPrio)(left, cds_integer_1.CDSInteger));
|
|
41005
41005
|
const is = (0, combi_1.seq)(left, "IS", (0, combi_1.optPrio)("NOT"), (0, combi_1.altPrio)("INITIAL", "NULL"));
|
|
41006
41006
|
const condition = (0, combi_1.seq)((0, combi_1.optPrio)("NOT"), (0, combi_1.altPrio)(compare, is));
|
|
41007
41007
|
const paren = (0, combi_1.seq)("(", CDSCondition, ")");
|
|
@@ -41345,7 +41345,7 @@ const combi_1 = __webpack_require__(/*! ../../abap/2_statements/combi */ "./node
|
|
|
41345
41345
|
class CDSName extends combi_1.Expression {
|
|
41346
41346
|
getRunnable() {
|
|
41347
41347
|
const pre = (0, combi_1.seq)("/", (0, combi_1.regex)(/^[\w_]+$/), "/");
|
|
41348
|
-
return (0, combi_1.seq)((0, combi_1.
|
|
41348
|
+
return (0, combi_1.seq)((0, combi_1.optPrio)(":"), (0, combi_1.optPrio)(pre), (0, combi_1.regex)(/^\$?#?[\w_]+$/));
|
|
41349
41349
|
}
|
|
41350
41350
|
}
|
|
41351
41351
|
exports.CDSName = CDSName;
|
|
@@ -44251,6 +44251,7 @@ const _abap_object_1 = __webpack_require__(/*! ../objects/_abap_object */ "./nod
|
|
|
44251
44251
|
const dump_scope_1 = __webpack_require__(/*! ./dump_scope */ "./node_modules/@abaplint/core/build/src/lsp/dump_scope.js");
|
|
44252
44252
|
const virtual_position_1 = __webpack_require__(/*! ../virtual_position */ "./node_modules/@abaplint/core/build/src/virtual_position.js");
|
|
44253
44253
|
const objects_1 = __webpack_require__(/*! ../objects */ "./node_modules/@abaplint/core/build/src/objects/index.js");
|
|
44254
|
+
const cds_lexer_1 = __webpack_require__(/*! ../cds/cds_lexer */ "./node_modules/@abaplint/core/build/src/cds/cds_lexer.js");
|
|
44254
44255
|
class Help {
|
|
44255
44256
|
static find(reg, textDocument, position) {
|
|
44256
44257
|
const abapFile = _lsp_utils_1.LSPUtils.getABAPFile(reg, textDocument.uri);
|
|
@@ -44270,7 +44271,7 @@ class Help {
|
|
|
44270
44271
|
/////////////////////////////////////////////////
|
|
44271
44272
|
static dumpDDLS(obj, reg) {
|
|
44272
44273
|
let content = "";
|
|
44273
|
-
content += "<h1>" + obj.getType + " " + obj.getName() + "</h1>\n";
|
|
44274
|
+
content += "<h1>" + obj.getType() + " " + obj.getName() + "</h1>\n";
|
|
44274
44275
|
content += obj.getDescription() + "\n";
|
|
44275
44276
|
content += obj.getParsingIssues().map(i => i.getMessage()).join("<br>\n");
|
|
44276
44277
|
content += `<hr>\n`;
|
|
@@ -44280,6 +44281,15 @@ class Help {
|
|
|
44280
44281
|
content += `<hr>\n`;
|
|
44281
44282
|
content += `<pre>` + obj.parseType(reg).toText(0) + "</pre>\n";
|
|
44282
44283
|
content += `<hr>\n`;
|
|
44284
|
+
const file = obj.findSourceFile();
|
|
44285
|
+
if (file) {
|
|
44286
|
+
const tokens = cds_lexer_1.CDSLexer.run(file);
|
|
44287
|
+
content += `<h3>Tokens</h3>\n<pre>\n`;
|
|
44288
|
+
for (const t of tokens) {
|
|
44289
|
+
content += JSON.stringify(t) + "\n";
|
|
44290
|
+
}
|
|
44291
|
+
content += `</pre>\n`;
|
|
44292
|
+
}
|
|
44283
44293
|
return content;
|
|
44284
44294
|
}
|
|
44285
44295
|
static dumpABAP(file, reg, textDocument, position) {
|
|
@@ -53771,7 +53781,7 @@ class Registry {
|
|
|
53771
53781
|
}
|
|
53772
53782
|
static abaplintVersion() {
|
|
53773
53783
|
// magic, see build script "version.sh"
|
|
53774
|
-
return "2.113.
|
|
53784
|
+
return "2.113.93";
|
|
53775
53785
|
}
|
|
53776
53786
|
getDDICReferences() {
|
|
53777
53787
|
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.93",
|
|
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.93",
|
|
42
42
|
"@types/chai": "^4.3.20",
|
|
43
43
|
"@types/glob": "^8.1.0",
|
|
44
44
|
"@types/minimist": "^1.2.5",
|