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

Method ReadTarget

pkg/sql/plpgsql/parser/lexer.go:641–646  ·  view source on GitHub ↗

ReadTarget reads a comma-separated list of target variables from the current position.

()

Source from the content-addressed store, hash-verified

639// ReadTarget reads a comma-separated list of target variables from the current
640// position.
641func (l *lexer) ReadTarget() ([]plpgsqltree.Variable, error) {
642 startPos, endPos := l.lastPos+1, len(l.tokens)
643 target, targetEnd, err := l.readTarget(startPos, endPos)
644 l.lastPos = targetEnd - 1
645 return target, err
646}
647
648// readTarget reads a comma-separated list of target variables from the given
649// start position to the given end position. It returns the target list and its

Callers 1

ParseMethod · 0.80

Calls 1

readTargetMethod · 0.95

Tested by

no test coverage detected