@abaplint/core 2.95.16 → 2.95.17
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.
|
@@ -10,6 +10,7 @@ const class_data_1 = require("../statements/class_data");
|
|
|
10
10
|
class ClassData {
|
|
11
11
|
runSyntax(node, scope, filename) {
|
|
12
12
|
const name = node.findFirstExpression(Expressions.NamespaceSimpleName).getFirstToken();
|
|
13
|
+
const values = {};
|
|
13
14
|
const components = [];
|
|
14
15
|
for (const c of node.getChildren()) {
|
|
15
16
|
const ctyp = c.get();
|
|
@@ -17,11 +18,12 @@ class ClassData {
|
|
|
17
18
|
const found = new class_data_1.ClassData().runSyntax(c, scope, filename);
|
|
18
19
|
if (found) {
|
|
19
20
|
components.push({ name: found.getName(), type: found.getType() });
|
|
21
|
+
values[found.getName()] = found.getValue();
|
|
20
22
|
}
|
|
21
23
|
}
|
|
22
24
|
// todo, nested structures and INCLUDES
|
|
23
25
|
}
|
|
24
|
-
return new _typed_identifier_1.TypedIdentifier(name, filename, new Basic.StructureType(components), ["static" /* IdentifierMeta.Static */]);
|
|
26
|
+
return new _typed_identifier_1.TypedIdentifier(name, filename, new Basic.StructureType(components), ["static" /* IdentifierMeta.Static */], values);
|
|
25
27
|
}
|
|
26
28
|
}
|
|
27
29
|
exports.ClassData = ClassData;
|
|
@@ -14,6 +14,7 @@ class Data {
|
|
|
14
14
|
var _a;
|
|
15
15
|
const name = node.findFirstExpression(Expressions.DefinitionName).getFirstToken();
|
|
16
16
|
let table = false;
|
|
17
|
+
const values = {};
|
|
17
18
|
const components = [];
|
|
18
19
|
for (const c of node.getChildren()) {
|
|
19
20
|
const ctyp = c.get();
|
|
@@ -21,6 +22,7 @@ class Data {
|
|
|
21
22
|
const found = new data_1.Data().runSyntax(c, scope, filename);
|
|
22
23
|
if (found) {
|
|
23
24
|
components.push({ name: found.getName(), type: found.getType() });
|
|
25
|
+
values[found.getName()] = found.getValue();
|
|
24
26
|
}
|
|
25
27
|
}
|
|
26
28
|
else if (c instanceof nodes_1.StructureNode && ctyp instanceof Structures.Data) {
|
|
@@ -75,7 +77,7 @@ class Data {
|
|
|
75
77
|
return new _typed_identifier_1.TypedIdentifier(name, filename, new Basic.TableType(new Basic.StructureType(components), { withHeader: true }));
|
|
76
78
|
}
|
|
77
79
|
else {
|
|
78
|
-
return new _typed_identifier_1.TypedIdentifier(name, filename, new Basic.StructureType(components));
|
|
80
|
+
return new _typed_identifier_1.TypedIdentifier(name, filename, new Basic.StructureType(components), undefined, values);
|
|
79
81
|
}
|
|
80
82
|
}
|
|
81
83
|
}
|
package/build/src/registry.js
CHANGED
|
@@ -28,8 +28,10 @@ class Abapdoc extends _abap_rule_1.ABAPRule {
|
|
|
28
28
|
shortDescription: `Various checks regarding abapdoc.
|
|
29
29
|
Base rule checks for existence of abapdoc for public class methods and all interface methods.
|
|
30
30
|
|
|
31
|
-
Plus class and interface definitions
|
|
32
|
-
|
|
31
|
+
Plus class and interface definitions.
|
|
32
|
+
|
|
33
|
+
https://github.com/SAP/styleguides/blob/main/clean-abap/CleanABAP.md#abap-doc-only-for-public-apis`,
|
|
34
|
+
tags: [_irule_1.RuleTag.SingleFile, _irule_1.RuleTag.Styleguide],
|
|
33
35
|
};
|
|
34
36
|
}
|
|
35
37
|
getConfig() {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@abaplint/core",
|
|
3
|
-
"version": "2.95.
|
|
3
|
+
"version": "2.95.17",
|
|
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.4",
|
|
51
51
|
"@types/chai": "^4.3.4",
|
|
52
52
|
"@types/mocha": "^10.0.1",
|
|
53
|
-
"@types/node": "^18.
|
|
53
|
+
"@types/node": "^18.14.0",
|
|
54
54
|
"chai": "^4.3.7",
|
|
55
55
|
"eslint": "^8.34.0",
|
|
56
56
|
"mocha": "^10.2.0",
|
|
@@ -62,6 +62,6 @@
|
|
|
62
62
|
"dependencies": {
|
|
63
63
|
"fast-xml-parser": "^4.1.2",
|
|
64
64
|
"json5": "^2.2.3",
|
|
65
|
-
"vscode-languageserver-types": "^3.17.
|
|
65
|
+
"vscode-languageserver-types": "^3.17.3"
|
|
66
66
|
}
|
|
67
67
|
}
|