| 62 | } |
| 63 | |
| 64 | [[maybe_unused]] const IdentifierResolveScope * IdentifierResolveScope::getNearestQueryScope() const |
| 65 | { |
| 66 | const IdentifierResolveScope * scope_to_check = this; |
| 67 | while (scope_to_check != nullptr) |
| 68 | { |
| 69 | if (scope_to_check->scope_node->getNodeType() == QueryTreeNodeType::QUERY) |
| 70 | break; |
| 71 | |
| 72 | scope_to_check = scope_to_check->parent_scope; |
| 73 | } |
| 74 | |
| 75 | return scope_to_check; |
| 76 | } |
| 77 | |
| 78 | IdentifierResolveScope * IdentifierResolveScope::getNearestQueryScope() |
| 79 | { |
no test coverage detected