perf(javascript): defer ancestry for member identifier roles

This commit is contained in:
morluto committed 2026-10-24 08:22:14 +08:00
1 parent aeeb4b72c1
commit 3e6ac23b50
3 files changed
+87 -5

No files matched your search

@@ -335,7 +335,8 @@ const collectCapture = (
owner.bodyScopeId === null
)
return;
if (semanticIdentifierRole(node, parent, context.ancestors) === null) return;
if (semanticIdentifierRole(node, parent, () => context.ancestors) === null)
return;
const binding = resolveSemanticBindingState(state, node, node.name);
if (
binding === undefined ||