MCPcopy Index your code
hub / github.com/adobe/react-spectrum / getTreeNode

Method getTreeNode

packages/react-aria/src/focus/FocusScope.tsx:1021–1023  ·  view source on GitHub ↗
(data: ScopeRef)

Source from the content-addressed store, hash-verified

1019 }
1020
1021 getTreeNode(data: ScopeRef): TreeNode | undefined {
1022 return this.fastMap.get(data);
1023 }
1024
1025 addTreeNode(scopeRef: ScopeRef, parent: ScopeRef, nodeToRestore?: FocusableElement): void {
1026 let parentNode = this.fastMap.get(parent ?? null);

Callers 7

FocusScopeFunction · 0.80
shouldContainFocusFunction · 0.80
isElementInChildScopeFunction · 0.80
isAncestorScopeFunction · 0.80
shouldRestoreFocusFunction · 0.80
onKeyDownFunction · 0.80
useRestoreFocusFunction · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected