| 35 | } |
| 36 | |
| 37 | function hasWhereInChain(node) { |
| 38 | let current = node.parent; |
| 39 | while (current) { |
| 40 | if ( |
| 41 | current.type === 'MemberExpression' && |
| 42 | current.property.type === 'Identifier' && |
| 43 | current.property.name === 'where' |
| 44 | ) { |
| 45 | return true; |
| 46 | } |
| 47 | if ( |
| 48 | current.type !== 'CallExpression' && |
| 49 | current.type !== 'MemberExpression' && |
| 50 | current.type !== 'AwaitExpression' |
| 51 | ) { |
| 52 | break; |
| 53 | } |
| 54 | current = current.parent; |
| 55 | } |
| 56 | return false; |
| 57 | } |
| 58 | |
| 59 | function resolveMemberExpressionPath(node) { |
| 60 | let objectExpression = node.object; |