IsSequence checks whether the expression given to the parser is a sequence.
()
| 204 | |
| 205 | // IsSequence checks whether the expression given to the parser is a sequence. |
| 206 | func (p *Parser) IsSequence() bool { |
| 207 | tok, _, _ := p.scanIgnoreWhitespace() |
| 208 | if tok == Seq { |
| 209 | return true |
| 210 | } |
| 211 | p.unscan() |
| 212 | return false |
| 213 | } |
| 214 | |
| 215 | // ParseExpr parses an expression by building the binary expression tree. |
| 216 | func (p *Parser) ParseExpr() (Expr, error) { |
nothing calls this directly
no test coverage detected