@abaplint/core 2.95.13 → 2.95.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.
|
@@ -3,13 +3,13 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
3
3
|
exports.WriteOffsetLength = void 0;
|
|
4
4
|
const combi_1 = require("../combi");
|
|
5
5
|
const tokens_1 = require("../../1_lexer/tokens");
|
|
6
|
-
const
|
|
6
|
+
const simple_field_chain2_1 = require("./simple_field_chain2");
|
|
7
7
|
class WriteOffsetLength extends combi_1.Expression {
|
|
8
8
|
getRunnable() {
|
|
9
|
-
const post = (0, combi_1.seq)((0, combi_1.alt)(
|
|
9
|
+
const post = (0, combi_1.seq)((0, combi_1.alt)(simple_field_chain2_1.SimpleFieldChain2, (0, combi_1.regex)(/^[\d]+$/), (0, combi_1.regex)(/^\*$/)), (0, combi_1.alt)((0, combi_1.tok)(tokens_1.ParenRightW), (0, combi_1.tok)(tokens_1.ParenRight)));
|
|
10
10
|
const wlength = (0, combi_1.seq)((0, combi_1.tok)(tokens_1.WParenLeft), post);
|
|
11
11
|
const length = (0, combi_1.seq)((0, combi_1.tok)(tokens_1.ParenLeft), post);
|
|
12
|
-
const complex = (0, combi_1.alt)(wlength, (0, combi_1.seq)((0, combi_1.alt)(
|
|
12
|
+
const complex = (0, combi_1.alt)(wlength, (0, combi_1.seq)((0, combi_1.alt)(simple_field_chain2_1.SimpleFieldChain2, (0, combi_1.regex)(/^\/?[\w\d]+$/), "/"), (0, combi_1.opt)(length)));
|
|
13
13
|
const at = (0, combi_1.seq)((0, combi_1.opt)("AT"), complex);
|
|
14
14
|
return at;
|
|
15
15
|
}
|
|
@@ -6,6 +6,8 @@ const source_1 = require("../expressions/source");
|
|
|
6
6
|
const target_1 = require("../expressions/target");
|
|
7
7
|
const dynamic_1 = require("../expressions/dynamic");
|
|
8
8
|
const _type_utils_1 = require("../_type_utils");
|
|
9
|
+
const field_chain_1 = require("../expressions/field_chain");
|
|
10
|
+
const _reference_1 = require("../_reference");
|
|
9
11
|
class Write {
|
|
10
12
|
runSyntax(node, scope, filename) {
|
|
11
13
|
// todo, more
|
|
@@ -18,6 +20,9 @@ class Write {
|
|
|
18
20
|
throw new Error("Source not character like");
|
|
19
21
|
}
|
|
20
22
|
}
|
|
23
|
+
for (const s of node.findAllExpressions(Expressions.SimpleFieldChain2)) {
|
|
24
|
+
new field_chain_1.FieldChain().runSyntax(s, scope, filename, _reference_1.ReferenceType.DataReadReference);
|
|
25
|
+
}
|
|
21
26
|
for (const s of node.findAllExpressions(Expressions.Dynamic)) {
|
|
22
27
|
new dynamic_1.Dynamic().runSyntax(s, scope, filename);
|
|
23
28
|
}
|
package/build/src/registry.js
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@abaplint/core",
|
|
3
|
-
"version": "2.95.
|
|
3
|
+
"version": "2.95.14",
|
|
4
4
|
"description": "abaplint - Core API",
|
|
5
5
|
"main": "build/src/index.js",
|
|
6
6
|
"typings": "build/abaplint.d.ts",
|
|
@@ -50,7 +50,7 @@
|
|
|
50
50
|
"@microsoft/api-extractor": "^7.34.3",
|
|
51
51
|
"@types/chai": "^4.3.4",
|
|
52
52
|
"@types/mocha": "^10.0.1",
|
|
53
|
-
"@types/node": "^18.
|
|
53
|
+
"@types/node": "^18.13.0",
|
|
54
54
|
"chai": "^4.3.7",
|
|
55
55
|
"eslint": "^8.33.0",
|
|
56
56
|
"mocha": "^10.2.0",
|