(node: TSESTree.Node | TSESTree.Node[] | null)
| 483 | } |
| 484 | |
| 485 | function containsJsx(node: TSESTree.Node | TSESTree.Node[] | null): boolean { |
| 486 | if (!node) { |
| 487 | return false; |
| 488 | } |
| 489 | |
| 490 | let found = false; |
| 491 | walkAst(node, (candidate) => { |
| 492 | if (candidate.type === 'JSXElement' || candidate.type === 'JSXFragment') { |
| 493 | found = true; |
| 494 | } |
| 495 | }); |
| 496 | return found; |
| 497 | } |
| 498 | |
| 499 | function getCalleeName(node: TSESTree.Expression | TSESTree.Super): string | null { |
| 500 | if (node.type === 'Identifier') { |
no test coverage detected