({ node, key, parent })
| 20 | */ |
| 21 | |
| 22 | const isMethodValue = ({ node, key, parent }) => |
| 23 | key === "value" && |
| 24 | node.type === "FunctionExpression" && |
| 25 | (parent.type === "ObjectMethod" || |
| 26 | parent.type === "ClassMethod" || |
| 27 | parent.type === "ClassPrivateMethod" || |
| 28 | parent.type === "MethodDefinition" || |
| 29 | parent.type === "TSAbstractMethodDefinition" || |
| 30 | parent.type === "TSDeclareMethod" || |
| 31 | (parent.type === "Property" && isMethod(parent))); |
| 32 | |
| 33 | /* |
| 34 | - `FunctionDeclaration` |
no test coverage detected
searching dependent graphs…