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

Method isType

pkg/sql/parser/parser.go:882–884  ·  view source on GitHub ↗

============================================================================= Type-based Helper Methods (Fast Int Comparisons) ============================================================================= These methods use int-based Type comparisons which are significantly faster than string compari

(expected models.TokenType)

Source from the content-addressed store, hash-verified

880// isType checks if the current token's Type matches the expected type.
881// Pure integer comparison - no string fallback.
882func (p *Parser) isType(expected models.TokenType) bool {
883 return p.currentToken.Token.Type == expected
884}
885
886// matchType checks if the current token's Type matches the expected type and advances if so.
887func (p *Parser) matchType(expected models.TokenType) bool {

Callers 15

parseCreateStatementMethod · 0.95
parseCreateTableMethod · 0.95
parseDropStatementMethod · 0.95
parseMergeStatementMethod · 0.95
parseMergeWhenClauseMethod · 0.95
parseMergeActionMethod · 0.95
synchronizeMethod · 0.95
parseWithRecoveryMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected