(fn: Node)
| 1740 | } |
| 1741 | |
| 1742 | const classMemberParentOf = (fn: Node): ClassMemberNode | undefined => { |
| 1743 | const [operand, parent] = operatorOf(fn) |
| 1744 | return ( |
| 1745 | (parent?.type === "MethodDefinition" || |
| 1746 | parent?.type === "PropertyDefinition" || |
| 1747 | parent?.type === "AccessorProperty") && |
| 1748 | parent.value === operand |
| 1749 | ) ? |
| 1750 | parent |
| 1751 | : undefined |
| 1752 | } |
| 1753 | |
| 1754 | // e.g. `Component.prototype.forceUpdate = function () { ... }` in compiled dependencies |
| 1755 | const es5ProtoMethodOf = ( |
no test coverage detected