()
| 216 | } |
| 217 | |
| 218 | func (p *Parser) matchStringPrimitive() (*ast.Primitive, error) { |
| 219 | s, ok, err := p.matchString() |
| 220 | if err != nil || !ok { |
| 221 | return nil, noEOF(err) |
| 222 | } |
| 223 | return &ast.Primitive{ |
| 224 | Kind: "Primitive", |
| 225 | Type: "string", |
| 226 | Text: s, |
| 227 | }, nil |
| 228 | } |
| 229 | |
| 230 | func (p *Parser) matchString() (string, bool, error) { |
| 231 | l := p.lexer |
no test coverage detected