(tag)
| 27539 | return workInProgress; |
| 27540 | } |
| 27541 | function createHostRootFiber(tag) { |
| 27542 | var mode; |
| 27543 | |
| 27544 | if (tag === ConcurrentRoot) { |
| 27545 | mode = ConcurrentMode | BlockingMode | StrictMode; |
| 27546 | } else if (tag === BlockingRoot) { |
| 27547 | mode = BlockingMode | StrictMode; |
| 27548 | } else { |
| 27549 | mode = NoMode; |
| 27550 | } |
| 27551 | |
| 27552 | if ( isDevToolsPresent) { |
| 27553 | // Always collect profile timings when DevTools are present. |
| 27554 | // This enables DevTools to start capturing timing at any point– |
| 27555 | // Without some nodes in the tree having empty base times. |
| 27556 | mode |= ProfileMode; |
| 27557 | } |
| 27558 | |
| 27559 | return createFiber(HostRoot, null, null, mode); |
| 27560 | } |
| 27561 | function createFiberFromTypeAndProps(type, // React$ElementType |
| 27562 | key, pendingProps, owner, mode, expirationTime) { |
| 27563 | var fiber; |
no test coverage detected