@abaplint/core 2.113.138 → 2.113.139
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.
|
@@ -80,12 +80,14 @@ class FunctionGroup extends _abap_object_1.ABAPObject {
|
|
|
80
80
|
}
|
|
81
81
|
if ((i.startsWith("L") || namespaced) && f.getFilename().includes(search.toLowerCase() + ".")) {
|
|
82
82
|
ret.push({ file: f, name: i });
|
|
83
|
+
break;
|
|
83
84
|
}
|
|
84
85
|
// fix for URL encoded? Uris
|
|
85
86
|
if (namespaced) {
|
|
86
87
|
search = i.replace(/\//g, "%23");
|
|
87
88
|
if (f.getFilename().includes(search.toLowerCase() + ".")) {
|
|
88
89
|
ret.push({ file: f, name: i });
|
|
90
|
+
break;
|
|
89
91
|
}
|
|
90
92
|
}
|
|
91
93
|
}
|
package/build/src/registry.js
CHANGED
|
@@ -28,7 +28,9 @@ class Graph {
|
|
|
28
28
|
this.edges = {};
|
|
29
29
|
}
|
|
30
30
|
addVertex(vertex) {
|
|
31
|
-
|
|
31
|
+
if (vertex.includeName !== undefined) {
|
|
32
|
+
this.verticesIncludenameIndex[vertex.includeName.toUpperCase()] = vertex;
|
|
33
|
+
}
|
|
32
34
|
this.verticesFilenameIndex[vertex.filename.toUpperCase()] = vertex;
|
|
33
35
|
}
|
|
34
36
|
findVertexViaIncludename(includeName) {
|
|
@@ -159,7 +161,7 @@ class IncludeGraph {
|
|
|
159
161
|
if (file) {
|
|
160
162
|
this.graph.addVertex({
|
|
161
163
|
filename: file.getFilename(),
|
|
162
|
-
includeName:
|
|
164
|
+
includeName: undefined,
|
|
163
165
|
include: false
|
|
164
166
|
});
|
|
165
167
|
}
|
|
@@ -168,7 +170,7 @@ class IncludeGraph {
|
|
|
168
170
|
for (const f of o.getSequencedFiles()) {
|
|
169
171
|
this.graph.addVertex({
|
|
170
172
|
filename: f.getFilename(),
|
|
171
|
-
includeName:
|
|
173
|
+
includeName: undefined,
|
|
172
174
|
include: false
|
|
173
175
|
});
|
|
174
176
|
}
|
|
@@ -185,7 +187,7 @@ class IncludeGraph {
|
|
|
185
187
|
if (file) {
|
|
186
188
|
this.graph.addVertex({
|
|
187
189
|
filename: file.getFilename(),
|
|
188
|
-
includeName:
|
|
190
|
+
includeName: undefined, // this is the SAPL program
|
|
189
191
|
include: false
|
|
190
192
|
});
|
|
191
193
|
}
|