(node: AstNode)
| 300 | } |
| 301 | |
| 302 | function getCollectionPredicateContext(node: AstNode) { |
| 303 | let curr: AstNode | undefined = node; |
| 304 | while (curr) { |
| 305 | if (curr.$container && isCollectionPredicate(curr.$container) && curr.$containerProperty === 'right') { |
| 306 | return curr.$container; |
| 307 | } |
| 308 | curr = curr.$container; |
| 309 | } |
| 310 | return undefined; |
| 311 | } |
no test coverage detected