(tag)
| 23979 | return workInProgress; |
| 23980 | } |
| 23981 | function createHostRootFiber(tag) { |
| 23982 | var mode; |
| 23983 | |
| 23984 | if (tag === ConcurrentRoot) { |
| 23985 | mode = ConcurrentMode | BlockingMode | StrictMode; |
| 23986 | } else if (tag === BlockingRoot) { |
| 23987 | mode = BlockingMode | StrictMode; |
| 23988 | } else { |
| 23989 | mode = NoMode; |
| 23990 | } |
| 23991 | |
| 23992 | if ( isDevToolsPresent) { |
| 23993 | // Always collect profile timings when DevTools are present. |
| 23994 | // This enables DevTools to start capturing timing at any point– |
| 23995 | // Without some nodes in the tree having empty base times. |
| 23996 | mode |= ProfileMode; |
| 23997 | } |
| 23998 | |
| 23999 | return createFiber(HostRoot, null, null, mode); |
| 24000 | } |
| 24001 | function createFiberFromTypeAndProps(type, // React$ElementType |
| 24002 | key, pendingProps, owner, mode, expirationTime) { |
| 24003 | var fiber; |
no test coverage detected