@abaplint/core 2.113.45 → 2.113.46
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
CHANGED
|
@@ -1550,6 +1550,7 @@ declare class DataDefinition extends AbstractObject {
|
|
|
1550
1550
|
setDirty(): void;
|
|
1551
1551
|
findSourceFile(): IFile | undefined;
|
|
1552
1552
|
hasParserError(): boolean | undefined;
|
|
1553
|
+
listKeys(): string[];
|
|
1553
1554
|
parse(): IParseResult;
|
|
1554
1555
|
getTree(): ExpressionNode | undefined;
|
|
1555
1556
|
private findSQLViewName;
|
|
@@ -59,6 +59,17 @@ class DataDefinition extends _abstract_object_1.AbstractObject {
|
|
|
59
59
|
hasParserError() {
|
|
60
60
|
return this.parserError;
|
|
61
61
|
}
|
|
62
|
+
listKeys() {
|
|
63
|
+
var _a;
|
|
64
|
+
this.parse();
|
|
65
|
+
const ret = [];
|
|
66
|
+
for (const field of ((_a = this.parsedData) === null || _a === void 0 ? void 0 : _a.fields) || []) {
|
|
67
|
+
if (field.key === true) {
|
|
68
|
+
ret.push(field.name);
|
|
69
|
+
}
|
|
70
|
+
}
|
|
71
|
+
return ret;
|
|
72
|
+
}
|
|
62
73
|
parse() {
|
|
63
74
|
var _a, _b;
|
|
64
75
|
if (this.isDirty() === false) {
|
package/build/src/registry.js
CHANGED