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

Method cleanup

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

cleanup is used to avoid holding on to memory unnecessarily (for the cases where we reuse a scanner).

()

Source from the content-addressed store, hash-verified

56// cleanup is used to avoid holding on to memory unnecessarily (for the cases
57// where we reuse a scanner).
58func (l *lexer) cleanup() {
59 l.tokens = nil
60 l.stmt = nil
61 l.lastError = nil
62}
63
64// Lex lexes a token from input.
65// to push the tokens back (move l.pos back).

Callers 1

parseMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected