@abaplint/core 2.108.12 → 2.108.14
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.
|
@@ -5,9 +5,9 @@ const combi_1 = require("../combi");
|
|
|
5
5
|
const _1 = require(".");
|
|
6
6
|
class CondBody extends combi_1.Expression {
|
|
7
7
|
getRunnable() {
|
|
8
|
-
const when = (0, combi_1.seq)("WHEN", (0, combi_1.
|
|
9
|
-
const elsee = (0, combi_1.seq)("ELSE", (0, combi_1.
|
|
10
|
-
return (0, combi_1.seq)((0, combi_1.
|
|
8
|
+
const when = (0, combi_1.seq)("WHEN", (0, combi_1.altPrio)(_1.Cond, _1.Source), "THEN", (0, combi_1.altPrio)(_1.Throw, _1.Source));
|
|
9
|
+
const elsee = (0, combi_1.seq)("ELSE", (0, combi_1.altPrio)(_1.Throw, _1.Source));
|
|
10
|
+
return (0, combi_1.seq)((0, combi_1.optPrio)(_1.Let), (0, combi_1.plusPrio)(when), (0, combi_1.optPrio)(elsee));
|
|
11
11
|
}
|
|
12
12
|
}
|
|
13
13
|
exports.CondBody = CondBody;
|
package/build/src/lsp/hover.js
CHANGED
|
@@ -1,10 +1,11 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.Hover = void 0;
|
|
4
|
+
const Tokens = require("../abap/1_lexer/tokens");
|
|
5
|
+
const Statements = require("../abap/2_statements/statements");
|
|
4
6
|
const LServer = require("vscode-languageserver-types");
|
|
5
7
|
const _abap_object_1 = require("../objects/_abap_object");
|
|
6
8
|
const _lsp_utils_1 = require("./_lsp_utils");
|
|
7
|
-
const Tokens = require("../abap/1_lexer/tokens");
|
|
8
9
|
const _lookup_1 = require("./_lookup");
|
|
9
10
|
class Hover {
|
|
10
11
|
constructor(reg) {
|
|
@@ -29,6 +30,9 @@ class Hover {
|
|
|
29
30
|
|| found.token instanceof Tokens.StringTemplateMiddle) {
|
|
30
31
|
return { kind: LServer.MarkupKind.Markdown, value: "String Template" };
|
|
31
32
|
}
|
|
33
|
+
else if (found.snode.get() instanceof Statements.Define && found.stack.length === 2) {
|
|
34
|
+
return { kind: LServer.MarkupKind.Markdown, value: "Macro Name" };
|
|
35
|
+
}
|
|
32
36
|
else if (found.token instanceof Tokens.Comment) {
|
|
33
37
|
let type = "Comment";
|
|
34
38
|
if (found.token.getStr().startsWith(`"!`)) {
|
package/build/src/registry.js
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@abaplint/core",
|
|
3
|
-
"version": "2.108.
|
|
3
|
+
"version": "2.108.14",
|
|
4
4
|
"description": "abaplint - Core API",
|
|
5
5
|
"main": "build/src/index.js",
|
|
6
6
|
"typings": "build/abaplint.d.ts",
|
|
@@ -50,10 +50,10 @@
|
|
|
50
50
|
},
|
|
51
51
|
"homepage": "https://abaplint.org",
|
|
52
52
|
"devDependencies": {
|
|
53
|
-
"@microsoft/api-extractor": "^7.
|
|
53
|
+
"@microsoft/api-extractor": "^7.47.0",
|
|
54
54
|
"@types/chai": "^4.3.16",
|
|
55
55
|
"@types/mocha": "^10.0.6",
|
|
56
|
-
"@types/node": "^20.
|
|
56
|
+
"@types/node": "^20.14.2",
|
|
57
57
|
"chai": "^4.4.1",
|
|
58
58
|
"eslint": "^8.57.0",
|
|
59
59
|
"mocha": "^10.4.0",
|