MCPcopy Create free account
hub / github.com/bytebase/bytebase / isIdentLikeToken

Function isIdentLikeToken

backend/plugin/parser/pg/completion.go:265–267  ·  view source on GitHub ↗

isIdentLikeToken returns true for token types that represent identifiers or unreserved keywords that a user might be partially typing.

(tokenType int)

Source from the content-addressed store, hash-verified

263// isIdentLikeToken returns true for token types that represent identifiers or
264// unreserved keywords that a user might be partially typing.
265func isIdentLikeToken(tokenType int) bool {
266 return pgparser.IsIdentifierTokenType(tokenType)
267}
268
269type CompletionMap map[string]base.Candidate
270

Callers 1

prefixTokenMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected