* Traverses children that are typically specified as `props.children`, but * might also be specified through attributes: * * - `traverseAllChildren(this.props.children, ...)` * - `traverseAllChildren(this.props.leftPanelChildren, ...)` * * The `traverseContext` is an optional argument that is
(children, callback, traverseContext)
| 19175 | * @return {!number} The number of children in this subtree. |
| 19176 | */ |
| 19177 | function traverseAllChildren(children, callback, traverseContext) { |
| 19178 | if (children == null) { |
| 19179 | return 0; |
| 19180 | } |
| 19181 | |
| 19182 | return traverseAllChildrenImpl(children, '', callback, traverseContext); |
| 19183 | } |
| 19184 | |
| 19185 | /** |
| 19186 | * Generate a key string that identifies a component within a set. |
no test coverage detected