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

Method traverse

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

Source from the content-addressed store, hash-verified

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