(node)
| 27 | } |
| 28 | |
| 29 | export function unwrapExpression(node) { |
| 30 | let current = node; |
| 31 | while ( |
| 32 | current?.type === "ChainExpression" || |
| 33 | current?.type === "ParenthesizedExpression" || |
| 34 | current?.type === "TSNonNullExpression" || |
| 35 | current?.type === "TSAsExpression" || |
| 36 | current?.type === "TSTypeAssertion" |
| 37 | ) { |
| 38 | current = current.expression; |
| 39 | } |
| 40 | return current; |
| 41 | } |
| 42 | |
| 43 | export function getPropertyName(node) { |
| 44 | if (!node) return undefined; |
no outgoing calls
no test coverage detected