MCPcopy Create free account
hub / github.com/jmespath/go-jmespath / syntaxError

Method syntaxError

parser.go:586–592  ·  view source on GitHub ↗
(msg string)

Source from the content-addressed store, hash-verified

584}
585
586func (p *Parser) syntaxError(msg string) SyntaxError {
587 return SyntaxError{
588 msg: msg,
589 Expression: p.expression,
590 Offset: p.lookaheadToken(0).position,
591 }
592}
593
594// Create a SyntaxError based on the provided token.
595// This differs from syntaxError() which creates a SyntaxError

Callers 7

ParseMethod · 0.95
parseSliceExpressionMethod · 0.95
matchMethod · 0.95
ledMethod · 0.95
parseMultiSelectHashMethod · 0.95
parseDotRHSMethod · 0.95
parseProjectionRHSMethod · 0.95

Calls 1

lookaheadTokenMethod · 0.95

Tested by

no test coverage detected