MCPcopy Create free account
hub / github.com/LadybugDB/ladybug / canProjectExpression

Method canProjectExpression

src/binder/query/query_graph.cpp:218–227  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

216}
217
218bool QueryGraph::canProjectExpression(const std::shared_ptr<Expression>& expression) const {
219 auto collector = DependentVarNameCollector();
220 collector.visit(expression);
221 for (auto& variable : collector.getVarNames()) {
222 if (!containsQueryNode(variable) && !containsQueryRel(variable)) {
223 return false;
224 }
225 }
226 return true;
227}
228
229bool QueryGraph::isConnected(const QueryGraph& other) const {
230 for (auto& queryNode : queryNodes) {

Callers 1

Calls 3

visitMethod · 0.45
getVarNamesMethod · 0.45

Tested by

no test coverage detected