(expression)
| 9 | * @returns {ESTree.Identifier | null} |
| 10 | */ |
| 11 | export function object(expression) { |
| 12 | while (expression.type === 'MemberExpression') { |
| 13 | expression = /** @type {ESTree.MemberExpression | ESTree.Identifier} */ (expression.object); |
| 14 | } |
| 15 | |
| 16 | if (expression.type !== 'Identifier') { |
| 17 | return null; |
| 18 | } |
| 19 | |
| 20 | return expression; |
| 21 | } |
| 22 | |
| 23 | /** |
| 24 | * Returns true if the attribute contains a single static text node. |
no outgoing calls
no test coverage detected