@abaplint/core 2.113.244 → 2.113.245
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.
|
@@ -95,7 +95,6 @@ class BasicTypes {
|
|
|
95
95
|
return undefined;
|
|
96
96
|
}
|
|
97
97
|
resolveLikeName(node, headerLogic = true) {
|
|
98
|
-
var _a;
|
|
99
98
|
if (node === undefined) {
|
|
100
99
|
return undefined;
|
|
101
100
|
}
|
|
@@ -141,7 +140,12 @@ class BasicTypes {
|
|
|
141
140
|
this.input.scope.addReference(chain === null || chain === void 0 ? void 0 : chain.getFirstToken(), found, _reference_1.ReferenceType.TypeReference, this.input.filename);
|
|
142
141
|
}
|
|
143
142
|
if (type === undefined) {
|
|
144
|
-
|
|
143
|
+
const found = this.input.scope.getDDIC().lookupNoVoid(name);
|
|
144
|
+
if (found !== undefined) {
|
|
145
|
+
const using = { filename: this.input.filename, token: chain.getFirstToken(), object: found.object };
|
|
146
|
+
this.input.scope.getDDICReferences().addUsing(this.input.scope.getParentObj(), using);
|
|
147
|
+
}
|
|
148
|
+
type = found === null || found === void 0 ? void 0 : found.type;
|
|
145
149
|
}
|
|
146
150
|
if (type === undefined && this.input.scope.isAnyOO() === false && this.input.scope.getDDIC().inErrorNamespace(name) === false) {
|
|
147
151
|
this.input.scope.addReference(chain.getChildren()[0].getFirstToken(), undefined, _reference_1.ReferenceType.VoidType, this.input.filename);
|
|
@@ -13,7 +13,7 @@ class SQLForAllEntries {
|
|
|
13
13
|
}
|
|
14
14
|
if (s) {
|
|
15
15
|
const type = source_1.Source.runSyntax(s, input);
|
|
16
|
-
if (type instanceof basic_1.VoidType) {
|
|
16
|
+
if (type instanceof basic_1.VoidType || type instanceof basic_1.UnknownType) {
|
|
17
17
|
return;
|
|
18
18
|
}
|
|
19
19
|
if (!(type instanceof basic_1.TableType)) {
|
|
@@ -21,6 +21,9 @@ class ReadTable {
|
|
|
21
21
|
input.issues.push((0, _syntax_input_1.syntaxIssue)(input, node.getFirstToken(), message));
|
|
22
22
|
return;
|
|
23
23
|
}
|
|
24
|
+
else if (sourceType instanceof basic_1.UnknownType) {
|
|
25
|
+
// do nothing, ok
|
|
26
|
+
}
|
|
24
27
|
else if (!(sourceType instanceof basic_1.TableType) && !(sourceType instanceof basic_1.VoidType)) {
|
|
25
28
|
const message = "Read table, not a table type";
|
|
26
29
|
input.issues.push((0, _syntax_input_1.syntaxIssue)(input, node.getFirstToken(), message));
|
package/build/src/registry.js
CHANGED