@abaplint/core 2.90.3 → 2.90.6
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/abaplint.d.ts +2 -3
- package/build/src/abap/2_statements/statements/insert_internal.js +3 -3
- package/build/src/abap/5_syntax/_builtin.js +3 -3
- package/build/src/abap/5_syntax/statements/insert_internal.js +2 -2
- package/build/src/lsp/semantic.js +5 -5
- package/build/src/registry.js +1 -1
- package/package.json +5 -6
package/build/abaplint.d.ts
CHANGED
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import * as LServer from 'vscode-languageserver-types';
|
|
2
|
-
import * as SemanticProtocol from 'vscode-languageserver-protocol/lib/common/protocol.semanticTokens';
|
|
3
2
|
import { WorkspaceEdit } from 'vscode-languageserver-types';
|
|
4
3
|
|
|
5
4
|
export declare class ABAPFile extends AbstractFile {
|
|
@@ -3447,8 +3446,8 @@ export declare class LanguageServer {
|
|
|
3447
3446
|
documentHighlight(_params: ITextDocumentPositionParams): LServer.DocumentHighlight[];
|
|
3448
3447
|
implementation(params: ITextDocumentPositionParams): LServer.Location[];
|
|
3449
3448
|
references(params: ITextDocumentPositionParams): LServer.Location[];
|
|
3450
|
-
static semanticTokensLegend():
|
|
3451
|
-
semanticTokensRange(range: ITextDocumentRange):
|
|
3449
|
+
static semanticTokensLegend(): LServer.SemanticTokensLegend;
|
|
3450
|
+
semanticTokensRange(range: ITextDocumentRange): LServer.SemanticTokens;
|
|
3452
3451
|
help(textDocument: LServer.TextDocumentIdentifier, position: LServer.Position): string;
|
|
3453
3452
|
listDefinitionPositions(textDocument: LServer.TextDocumentIdentifier): LServer.Range[];
|
|
3454
3453
|
listReadPositions(textDocument: LServer.TextDocumentIdentifier): LServer.Range[];
|
|
@@ -6,7 +6,7 @@ const version_1 = require("../../../version");
|
|
|
6
6
|
const expressions_1 = require("../expressions");
|
|
7
7
|
class InsertInternal {
|
|
8
8
|
getMatcher() {
|
|
9
|
-
const target = (0, combi_1.
|
|
9
|
+
const target = (0, combi_1.altPrio)(expressions_1.Source, expressions_1.Dynamic);
|
|
10
10
|
const assigning = (0, combi_1.seq)("ASSIGNING", expressions_1.FSTarget);
|
|
11
11
|
const ref = (0, combi_1.seq)("REFERENCE INTO", expressions_1.Target);
|
|
12
12
|
const index = (0, combi_1.seq)("INDEX", expressions_1.Source);
|
|
@@ -14,10 +14,10 @@ class InsertInternal {
|
|
|
14
14
|
const into = (0, combi_1.seq)("INTO", (0, combi_1.opt)("TABLE"), expressions_1.Target);
|
|
15
15
|
const to = (0, combi_1.seq)("TO", expressions_1.Source);
|
|
16
16
|
const from = (0, combi_1.seq)("FROM", expressions_1.Source);
|
|
17
|
-
const fromTo = (0, combi_1.seq)((0, combi_1.
|
|
17
|
+
const fromTo = (0, combi_1.seq)((0, combi_1.optPrio)(from), (0, combi_1.optPrio)(to));
|
|
18
18
|
const foo = (0, combi_1.per)(into, ref, index, assigning);
|
|
19
19
|
const lines = (0, combi_1.seq)("LINES OF", target, (0, combi_1.opt)(fromTo));
|
|
20
|
-
const src = (0, combi_1.alt)((0, combi_1.ver)(version_1.Version.v740sp02, expressions_1.Source)
|
|
20
|
+
const src = (0, combi_1.alt)(expressions_1.SimpleSource4, (0, combi_1.ver)(version_1.Version.v740sp02, expressions_1.Source));
|
|
21
21
|
const tab = (0, combi_1.seq)("TABLE", expressions_1.Source);
|
|
22
22
|
const ret = (0, combi_1.seq)("INSERT", (0, combi_1.altPrio)(tab, (0, combi_1.seq)((0, combi_1.altPrio)(initial, lines, src), foo)));
|
|
23
23
|
return ret;
|
|
@@ -475,7 +475,7 @@ BuiltIn.methods = [
|
|
|
475
475
|
"off": new basic_1.IntegerType(),
|
|
476
476
|
"len": new basic_1.IntegerType(),
|
|
477
477
|
},
|
|
478
|
-
return: new basic_1.
|
|
478
|
+
return: new basic_1.IntegerType(),
|
|
479
479
|
version: version_1.Version.v702,
|
|
480
480
|
},
|
|
481
481
|
{
|
|
@@ -491,7 +491,7 @@ BuiltIn.methods = [
|
|
|
491
491
|
"off": new basic_1.IntegerType(),
|
|
492
492
|
"len": new basic_1.IntegerType(),
|
|
493
493
|
},
|
|
494
|
-
return: new basic_1.
|
|
494
|
+
return: new basic_1.IntegerType(),
|
|
495
495
|
version: version_1.Version.v702,
|
|
496
496
|
},
|
|
497
497
|
{
|
|
@@ -507,7 +507,7 @@ BuiltIn.methods = [
|
|
|
507
507
|
"off": new basic_1.IntegerType(),
|
|
508
508
|
"len": new basic_1.IntegerType(),
|
|
509
509
|
},
|
|
510
|
-
return: new basic_1.
|
|
510
|
+
return: new basic_1.IntegerType(),
|
|
511
511
|
version: version_1.Version.v702,
|
|
512
512
|
},
|
|
513
513
|
{
|
|
@@ -18,7 +18,7 @@ class InsertInternal {
|
|
|
18
18
|
}
|
|
19
19
|
const afterAssigning = node.findExpressionAfterToken("ASSIGNING");
|
|
20
20
|
if ((afterAssigning === null || afterAssigning === void 0 ? void 0 : afterAssigning.get()) instanceof Expressions.FSTarget) {
|
|
21
|
-
let source = node.findDirectExpression(Expressions.
|
|
21
|
+
let source = node.findDirectExpression(Expressions.SimpleSource4);
|
|
22
22
|
if (source === undefined) {
|
|
23
23
|
source = node.findDirectExpression(Expressions.Source);
|
|
24
24
|
}
|
|
@@ -34,7 +34,7 @@ class InsertInternal {
|
|
|
34
34
|
for (const s of node.findDirectExpressions(Expressions.Source)) {
|
|
35
35
|
new source_1.Source().runSyntax(s, scope, filename, targetType);
|
|
36
36
|
}
|
|
37
|
-
for (const s of node.findDirectExpressions(Expressions.
|
|
37
|
+
for (const s of node.findDirectExpressions(Expressions.SimpleSource4)) {
|
|
38
38
|
new source_1.Source().runSyntax(s, scope, filename, targetType);
|
|
39
39
|
}
|
|
40
40
|
}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.SemanticHighlighting = void 0;
|
|
4
|
-
const
|
|
4
|
+
const LServer = require("vscode-languageserver-types");
|
|
5
5
|
const position_1 = require("../position");
|
|
6
6
|
const tokens_1 = require("../abap/1_lexer/tokens");
|
|
7
7
|
const nodes_1 = require("../abap/nodes");
|
|
@@ -30,7 +30,7 @@ class SemanticHighlighting {
|
|
|
30
30
|
SemanticHighlighting.tokenTypes.push(SOURCE_ABAP);
|
|
31
31
|
SemanticHighlighting.tokenTypeMap[BLOCK_ABAP] = SemanticHighlighting.tokenTypes.length;
|
|
32
32
|
SemanticHighlighting.tokenTypes.push(BLOCK_ABAP);
|
|
33
|
-
for (const t in
|
|
33
|
+
for (const t in LServer.SemanticTokenTypes) {
|
|
34
34
|
SemanticHighlighting.tokenTypeMap[t] = SemanticHighlighting.tokenTypes.length;
|
|
35
35
|
SemanticHighlighting.tokenTypes.push(t);
|
|
36
36
|
}
|
|
@@ -58,7 +58,7 @@ class SemanticHighlighting {
|
|
|
58
58
|
const statementInstance = s.get();
|
|
59
59
|
for (const t of s.getTokenNodes()) {
|
|
60
60
|
const tokenInstance = t.get();
|
|
61
|
-
let tokenType =
|
|
61
|
+
let tokenType = LServer.SemanticTokenTypes.keyword;
|
|
62
62
|
if (tokenInstance instanceof tokens_1.Punctuation) {
|
|
63
63
|
tokenType = SOURCE_ABAP;
|
|
64
64
|
}
|
|
@@ -81,10 +81,10 @@ class SemanticHighlighting {
|
|
|
81
81
|
|| tokenInstance instanceof tokens_1.StringTemplateBegin
|
|
82
82
|
|| tokenInstance instanceof tokens_1.StringTemplateEnd
|
|
83
83
|
|| tokenInstance instanceof tokens_1.StringTemplateMiddle) {
|
|
84
|
-
tokenType =
|
|
84
|
+
tokenType = LServer.SemanticTokenTypes.string;
|
|
85
85
|
}
|
|
86
86
|
else if (tokenInstance instanceof tokens_1.Comment) {
|
|
87
|
-
tokenType =
|
|
87
|
+
tokenType = LServer.SemanticTokenTypes.comment;
|
|
88
88
|
}
|
|
89
89
|
else if (t instanceof nodes_1.TokenNodeRegex) {
|
|
90
90
|
tokenType = SOURCE_ABAP;
|
package/build/src/registry.js
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@abaplint/core",
|
|
3
|
-
"version": "2.90.
|
|
3
|
+
"version": "2.90.6",
|
|
4
4
|
"description": "abaplint - Core API",
|
|
5
5
|
"main": "build/src/index.js",
|
|
6
6
|
"typings": "build/abaplint.d.ts",
|
|
@@ -45,14 +45,14 @@
|
|
|
45
45
|
},
|
|
46
46
|
"homepage": "https://abaplint.org",
|
|
47
47
|
"devDependencies": {
|
|
48
|
-
"@microsoft/api-extractor": "
|
|
48
|
+
"@microsoft/api-extractor": "=7.23.2",
|
|
49
49
|
"@types/chai": "^4.3.1",
|
|
50
50
|
"@types/mocha": "^9.1.1",
|
|
51
|
-
"@types/node": "^17.0.
|
|
51
|
+
"@types/node": "^17.0.34",
|
|
52
52
|
"chai": "^4.3.6",
|
|
53
53
|
"eslint": "^8.15.0",
|
|
54
54
|
"mocha": "^10.0.0",
|
|
55
|
-
"c8": "^7.11.
|
|
55
|
+
"c8": "^7.11.3",
|
|
56
56
|
"source-map-support": "^0.5.21",
|
|
57
57
|
"ts-json-schema-generator": "^1.0.0",
|
|
58
58
|
"typescript": "^4.6.4"
|
|
@@ -60,7 +60,6 @@
|
|
|
60
60
|
"dependencies": {
|
|
61
61
|
"fast-xml-parser": "^4.0.7",
|
|
62
62
|
"json5": "^2.2.1",
|
|
63
|
-
"vscode-languageserver-
|
|
64
|
-
"vscode-languageserver-types": "=3.16.0"
|
|
63
|
+
"vscode-languageserver-types": "^3.17.1"
|
|
65
64
|
}
|
|
66
65
|
}
|