MCPcopy Create free account
hub / github.com/adobe/react-spectrum / traverse

Method traverse

packages/react-aria/src/focus/FocusScope.tsx:1081–1090  ·  view source on GitHub ↗
(node: TreeNode = this.root)

Source from the content-addressed store, hash-verified

1079
1080 // Pre Order Depth First
1081 *traverse(node: TreeNode = this.root): Generator<TreeNode> {
1082 if (node.scopeRef != null) {
1083 yield node;
1084 }
1085 if (node.children.size > 0) {
1086 for (let child of node.children) {
1087 yield* this.traverse(child);
1088 }
1089 }
1090 }
1091
1092 clone(): Tree {
1093 let newTree = new Tree();

Callers 15

removeTreeNodeMethod · 0.95
cloneMethod · 0.95
FocusScopeFunction · 0.80
isElementInChildScopeFunction · 0.80
packageFunction · 0.80
findColumnKeyPropFunction · 0.80
JSXElementFunction · 0.80
updateRowFunctionArgFunction · 0.80
updateDialogChildFunction · 0.80
transformActionGroupFunction · 0.80
addColumnsPropToRowFunction · 0.80
transformTabListFunction · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected