MCPcopy Create free account
hub / github.com/cockroachdb/cockroachdb-parser / checkLoopLabels

Function checkLoopLabels

pkg/sql/plpgsql/parser/lexer.go:669–677  ·  view source on GitHub ↗
(start, end string)

Source from the content-addressed store, hash-verified

667}
668
669func checkLoopLabels(start, end string) error {
670 if start == "" && end != "" {
671 return errors.Newf("end label \"%s\" specified for unlabeled block", end)
672 }
673 if end != "" && start != end {
674 return errors.Newf("end label \"%s\" differs from block's label \"%s\"", end, start)
675 }
676 return nil
677}

Callers 1

ParseMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…