(fiber)
| 3237 | } |
| 3238 | |
| 3239 | function getComponentName(fiber) { |
| 3240 | var type = fiber.type; |
| 3241 | |
| 3242 | if (typeof type === 'function') { |
| 3243 | return type.displayName || type.name; |
| 3244 | } |
| 3245 | if (typeof type === 'string') { |
| 3246 | return type; |
| 3247 | } |
| 3248 | switch (type) { |
| 3249 | case REACT_FRAGMENT_TYPE: |
| 3250 | return 'ReactFragment'; |
| 3251 | case REACT_PORTAL_TYPE: |
| 3252 | return 'ReactPortal'; |
| 3253 | case REACT_CALL_TYPE: |
| 3254 | return 'ReactCall'; |
| 3255 | case REACT_RETURN_TYPE: |
| 3256 | return 'ReactReturn'; |
| 3257 | } |
| 3258 | return null; |
| 3259 | } |
| 3260 | |
| 3261 | function describeFiber(fiber) { |
| 3262 | switch (fiber.tag) { |
no outgoing calls
no test coverage detected