============================================================================= Type-based Helper Methods (Fast Int Comparisons) ============================================================================= These methods use int-based Type comparisons which are significantly faster than string compari
(expected models.TokenType)
| 880 | // isType checks if the current token's Type matches the expected type. |
| 881 | // Pure integer comparison - no string fallback. |
| 882 | func (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. |
| 887 | func (p *Parser) matchType(expected models.TokenType) bool { |
no outgoing calls
no test coverage detected