MCPcopy Create free account
hub / github.com/ClickHouse/ClickHouse / getNearestQueryScope

Method getNearestQueryScope

src/Analyzer/Resolve/IdentifierResolveScope.cpp:64–76  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

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
78IdentifierResolveScope * IdentifierResolveScope::getNearestQueryScope()
79{

Calls 1

getNodeTypeMethod · 0.45

Tested by

no test coverage detected