@abaplint/core 2.93.65 → 2.93.66
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.
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.DataDefinition = void 0;
|
|
4
|
+
const nodes_1 = require("../abap/nodes");
|
|
4
5
|
const cds_determine_types_1 = require("../cds/cds_determine_types");
|
|
5
6
|
const cds_parser_1 = require("../cds/cds_parser");
|
|
6
7
|
const expressions_1 = require("../cds/expressions");
|
|
@@ -75,7 +76,15 @@ class DataDefinition extends _abstract_object_1.AbstractObject {
|
|
|
75
76
|
this.findSQLViewName();
|
|
76
77
|
this.parsedData.tree = new cds_parser_1.CDSParser().parse(this.findSourceFile());
|
|
77
78
|
if (this.parsedData.tree) {
|
|
78
|
-
|
|
79
|
+
for (const c of ((_a = this.parsedData.tree) === null || _a === void 0 ? void 0 : _a.getChildren()) || []) {
|
|
80
|
+
if (c.get() instanceof expressions_1.CDSAnnotation) {
|
|
81
|
+
continue;
|
|
82
|
+
}
|
|
83
|
+
if (c instanceof nodes_1.ExpressionNode) {
|
|
84
|
+
this.parsedData.definitionName = (_b = c.findFirstExpression(expressions_1.CDSName)) === null || _b === void 0 ? void 0 : _b.getFirstToken().getStr();
|
|
85
|
+
break;
|
|
86
|
+
}
|
|
87
|
+
}
|
|
79
88
|
this.findSourcesAndRelations(this.parsedData.tree);
|
|
80
89
|
this.findFieldNames(this.parsedData.tree);
|
|
81
90
|
}
|
package/build/src/registry.js
CHANGED