MCPcopy Create free account
hub / github.com/apache/cloudberry / conditional_stack_get_paren_depth

Function conditional_stack_get_paren_depth

src/fe_utils/conditional.c:171–177  ·  view source on GitHub ↗

* Fetch last-recorded parenthesis nesting depth from topmost stack entry. * Will return -1 if no stack or it was never saved. */

Source from the content-addressed store, hash-verified

169 * Will return -1 if no stack or it was never saved.
170 */
171int
172conditional_stack_get_paren_depth(ConditionalStack cstack)
173{
174 if (conditional_stack_empty(cstack))
175 return -1;
176 return cstack->head->paren_depth;
177}

Callers 1

discard_query_textFunction · 0.85

Calls 1

conditional_stack_emptyFunction · 0.85

Tested by

no test coverage detected