isBooleanLiteral checks if the current token is TRUE or FALSE using O(1) switch.
()
| 943 | |
| 944 | // isBooleanLiteral checks if the current token is TRUE or FALSE using O(1) switch. |
| 945 | func (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 |
no outgoing calls
no test coverage detected