MCPcopy Create free account
hub / github.com/apache/arrow / PopElseEntry

Method PopElseEntry

cpp/src/gandiva/expr_decomposer.cc:306–317  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

304}
305
306bool ExprDecomposer::PopElseEntry(const IfNode& node) {
307 DCHECK_EQ(if_entries_stack_.empty(), false) << "PopElseEntry: found empty stack";
308
309 auto top = if_entries_stack_.top().get();
310 DCHECK_EQ(top->entry_type_, kStackEntryElse)
311 << "PopElseEntry: found " << top->entry_type_ << " expected else";
312 DCHECK_EQ(&top->if_node_, &node) << "PopElseEntry: found mismatched node";
313 bool is_terminal_else = top->is_terminal_else_;
314
315 if_entries_stack_.pop();
316 return is_terminal_else;
317}
318
319void ExprDecomposer::PushConditionEntry(const IfNode& node) {
320 std::unique_ptr<IfStackEntry> entry(new IfStackEntry(node, kStackEntryCondition));

Callers 1

TEST_FFunction · 0.80

Calls 2

emptyMethod · 0.45
getMethod · 0.45

Tested by 1

TEST_FFunction · 0.64