(fiber)
| 3870 | } |
| 3871 | |
| 3872 | function getComponentName(fiber) { |
| 3873 | var type = fiber.type; |
| 3874 | |
| 3875 | if (typeof type === 'function') { |
| 3876 | return type.displayName || type.name; |
| 3877 | } |
| 3878 | if (typeof type === 'string') { |
| 3879 | return type; |
| 3880 | } |
| 3881 | switch (type) { |
| 3882 | case REACT_FRAGMENT_TYPE: |
| 3883 | return 'ReactFragment'; |
| 3884 | case REACT_PORTAL_TYPE: |
| 3885 | return 'ReactPortal'; |
| 3886 | case REACT_CALL_TYPE: |
| 3887 | return 'ReactCall'; |
| 3888 | case REACT_RETURN_TYPE: |
| 3889 | return 'ReactReturn'; |
| 3890 | } |
| 3891 | return null; |
| 3892 | } |
| 3893 | |
| 3894 | function describeFiber(fiber) { |
| 3895 | switch (fiber.tag) { |
no outgoing calls
no test coverage detected