isStringLiteral checks if the current token is a string literal. Handles all string token subtypes (single-quoted, dollar-quoted, etc.)
()
| 913 | // isStringLiteral checks if the current token is a string literal. |
| 914 | // Handles all string token subtypes (single-quoted, dollar-quoted, etc.) |
| 915 | func (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. |
| 924 | func (p *Parser) isComparisonOperator() bool { |
no outgoing calls
no test coverage detected