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

Function nodeReadSkip

src/backend/nodes/read.c:547–577  ·  view source on GitHub ↗

* nodeReadSkip * Skips next item (a token, list or subtree). */

Source from the content-addressed store, hash-verified

545 * Skips next item (a token, list or subtree).
546 */
547void
548nodeReadSkip(void)
549{
550 int tok_len;
551 const char *token = pg_strtok(&tok_len);
552
553 if (!token)
554 {
555 elog(ERROR, "did not find expected token");
556 return; /* not reached */
557 }
558
559 switch (*token)
560 {
561 case '{':
562 nodeReadSkipThru('}');
563 break;
564
565 case '(':
566 nodeReadSkipThru(')');
567 break;
568
569 case '}':
570 case ')':
571 elog(ERROR, "did not find expected token, instead found %s", token);
572 return; /* not reached */
573
574 default:
575 break;
576 }
577} /* nodeReadSkip */
578
579
580/*

Callers 1

nodeReadFunction · 0.85

Calls 2

pg_strtokFunction · 0.85
nodeReadSkipThruFunction · 0.85

Tested by

no test coverage detected