MCPcopy Create free account
hub / github.com/ajitpratap0/GoSQLX / isBooleanLiteral

Method isBooleanLiteral

pkg/sql/parser/parser.go:945–951  ·  view source on GitHub ↗

isBooleanLiteral checks if the current token is TRUE or FALSE using O(1) switch.

()

Source from the content-addressed store, hash-verified

943
944// isBooleanLiteral checks if the current token is TRUE or FALSE using O(1) switch.
945func (p *Parser) isBooleanLiteral() bool {
946 switch p.currentToken.Token.Type {
947 case models.TokenTypeTrue, models.TokenTypeFalse:
948 return true
949 }
950 return false
951}
952
953// =============================================================================
954

Callers 2

parseUpdateStatementMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected