@abaplint/core 2.95.37 → 2.95.38
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.
|
@@ -7,6 +7,7 @@ const structure_type_1 = require("../../types/basic/structure_type");
|
|
|
7
7
|
const basic_1 = require("../../types/basic");
|
|
8
8
|
const types_1 = require("../../types");
|
|
9
9
|
const _reference_1 = require("../_reference");
|
|
10
|
+
const _object_oriented_1 = require("../_object_oriented");
|
|
10
11
|
class ComponentChain {
|
|
11
12
|
runSyntax(context, node, scope, filename) {
|
|
12
13
|
const children = node.getChildren();
|
|
@@ -56,7 +57,8 @@ class ComponentChain {
|
|
|
56
57
|
if (def === undefined) {
|
|
57
58
|
throw new Error(id.getName() + " not found in scope");
|
|
58
59
|
}
|
|
59
|
-
const
|
|
60
|
+
const helper = new _object_oriented_1.ObjectOriented(scope);
|
|
61
|
+
const found = helper.searchAttributeName(def, name);
|
|
60
62
|
context = found === null || found === void 0 ? void 0 : found.getType();
|
|
61
63
|
if (context === undefined) {
|
|
62
64
|
throw new Error("Attribute \"" + name + "\" not found");
|
package/build/src/registry.js
CHANGED