MCPcopy Create free account
hub / github.com/brimdata/super / matchStringPrimitive

Method matchStringPrimitive

sup/parser-values.go:218–228  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

216}
217
218func (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
230func (p *Parser) matchString() (string, bool, error) {
231 l := p.lexer

Callers 1

matchPrimitiveMethod · 0.95

Calls 2

matchStringMethod · 0.95
noEOFFunction · 0.70

Tested by

no test coverage detected