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

Method isStringLiteral

pkg/sql/parser/parser.go:915–921  ·  view source on GitHub ↗

isStringLiteral checks if the current token is a string literal. Handles all string token subtypes (single-quoted, dollar-quoted, etc.)

()

Source from the content-addressed store, hash-verified

913// isStringLiteral checks if the current token is a string literal.
914// Handles all string token subtypes (single-quoted, dollar-quoted, etc.)
915func (p *Parser) isStringLiteral() bool {
916 switch p.currentToken.Token.Type {
917 case models.TokenTypeString, models.TokenTypeSingleQuotedString, models.TokenTypeDollarQuotedString:
918 return true
919 }
920 return false
921}
922
923// isComparisonOperator checks if the current token is a comparison operator using O(1) switch.
924func (p *Parser) isComparisonOperator() bool {

Callers 6

parsePivotClauseMethod · 0.95
parseStringLiteralMethod · 0.95
parseUpdateStatementMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected