MCPcopy Index your code
hub / github.com/PaesslerAG/jsonpath / parseScript

Method parseScript

parse.go:186–196  ·  view source on GitHub ↗
(c context.Context)

Source from the content-addressed store, hash-verified

184}
185
186func (p *parser) parseScript(c context.Context) error {
187 script, err := p.ParseExpression(c)
188 if err != nil {
189 return err
190 }
191 if p.Scan() != ')' {
192 return p.Expected("jsnopath script", ')')
193 }
194 p.appendPlainSelector(newScript(script))
195 return p.parsePath(c)
196}
197
198func (p *parser) appendPlainSelector(next plainSelector) {
199 p.path = p.path.withPlainSelector(next)

Callers 2

parsePathMethod · 0.95
parseMapperMethod · 0.95

Calls 3

appendPlainSelectorMethod · 0.95
parsePathMethod · 0.95
newScriptFunction · 0.85

Tested by

no test coverage detected