MCPcopy Index your code
hub / github.com/dataease/SQLBot / es_parse

Function es_parse

frontend/public/swagger-ui-bundle.js:44147–44165  ·  view source on GitHub ↗
(s, { translator: o = new Mp(), stats: i = !1, trace: a = !1 } = {})

Source from the content-addressed store, hash-verified

44145 }
44146 },
44147 Lp = new grammar(),
44148 es_parse = (s, { translator: o = new Mp(), stats: i = !1, trace: a = !1 } = {}) => {
44149 if ('string' != typeof s) throw new TypeError('JSON Pointer must be a string')
44150 try {
44151 const u = new kp()
44152 ;(o && (u.ast = o), i && (u.stats = new Cp()), a && (u.trace = new Dp()))
44153 const _ = u.parse(Lp, 'json-pointer', s)
44154 return {
44155 result: _,
44156 tree: _.success && o ? u.ast.getTree() : void 0,
44157 stats: u.stats,
44158 trace: u.trace,
44159 }
44160 } catch (o) {
44161 throw new Tp('Unexpected error during JSON Pointer parsing', {
44162 cause: o,
44163 jsonPointer: s,
44164 })
44165 }
44166 }
44167 ;(new grammar(), new kp(), new grammar(), new kp())
44168 const Fp = new grammar(),

Callers 1

es_evaluateFunction · 0.85

Calls 2

parseMethod · 0.45
getTreeMethod · 0.45

Tested by

no test coverage detected