mirror of
https://github.com/morluto/rea.git
synced 2026-11-14 18:52:48 +00:00
fix(javascript): retain wide function fingerprint inventories (#10355)
This commit is contained in:
1 parent
c4cec6373d
commit
5d046b9ad7
2 files changed
+102
-2
No files matched your search
@@ -250,7 +250,8 @@ export const createJavaScriptSemanticGraphProjection = (
|
||||
unknownCeiling,
|
||||
unknownsBefore + fileUnknownCeiling,
|
||||
);
|
||||
fingerprints.push(...(yield* projectFileSteps(file, ir, state, paths)));
|
||||
for (const fingerprint of yield* projectFileSteps(file, ir, state, paths))
|
||||
fingerprints.push(fingerprint);
|
||||
// Nodes were dropped only if the budget actually blocked creation. A file
|
||||
// that exactly fills its share ends with a zero budget without dropping
|
||||
// anything, so the remaining budget alone cannot decide truncation.
|
||||
@@ -427,7 +428,8 @@ export const createJavaScriptSemanticGraphProjection = (
|
||||
for (const unknown of newUnknowns)
|
||||
state.unknowns.set(unknown.unknown_id, unknown);
|
||||
for (const root of projection.roots) state.roots.add(root);
|
||||
fingerprints.push(...projection.fingerprints);
|
||||
for (const fingerprint of projection.fingerprints)
|
||||
fingerprints.push(fingerprint);
|
||||
if (projection.nodesTruncated) {
|
||||
truncatedFiles += 1;
|
||||
noteSemanticCeilingReached(
|
||||
|
||||
Reference in new issue
Block a user