(fiber)
| 4127 | } |
| 4128 | |
| 4129 | function getComponentName(fiber) { |
| 4130 | var type = fiber.type; |
| 4131 | |
| 4132 | if (typeof type === 'function') { |
| 4133 | return type.displayName || type.name; |
| 4134 | } |
| 4135 | if (typeof type === 'string') { |
| 4136 | return type; |
| 4137 | } |
| 4138 | switch (type) { |
| 4139 | case REACT_FRAGMENT_TYPE: |
| 4140 | return 'ReactFragment'; |
| 4141 | case REACT_PORTAL_TYPE: |
| 4142 | return 'ReactPortal'; |
| 4143 | case REACT_CALL_TYPE: |
| 4144 | return 'ReactCall'; |
| 4145 | case REACT_RETURN_TYPE: |
| 4146 | return 'ReactReturn'; |
| 4147 | } |
| 4148 | return null; |
| 4149 | } |
| 4150 | |
| 4151 | function describeFiber(fiber) { |
| 4152 | switch (fiber.tag) { |
no outgoing calls
no test coverage detected