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

Function format

frontend/public/swagger-ui-bundle.js:7540–7582  ·  view source on GitHub ↗
(s, o, i)

Source from the content-addressed store, hash-verified

7538 }
7539 }
7540 function format(s, o, i) {
7541 if ('object' != typeof o) return s(!1, o)
7542 var a = o.interrupt ? 1 : o.content.length
7543 function proceed() {
7544 for (; o.content.length; ) {
7545 var u = o.content.shift()
7546 if (void 0 !== u) {
7547 if (interrupt(u)) return
7548 format(s, u)
7549 }
7550 }
7551 ;(s(
7552 !1,
7553 (a > 1 ? o.indents : '') +
7554 (o.name ? '</' + o.name + '>' : '') +
7555 (o.indent && !i ? '\n' : '')
7556 ),
7557 i && i())
7558 }
7559 function interrupt(o) {
7560 return (
7561 !!o.interrupt &&
7562 ((o.interrupt.append = s),
7563 (o.interrupt.end = proceed),
7564 (o.interrupt = !1),
7565 s(!0),
7566 !0)
7567 )
7568 }
7569 if (
7570 (s(
7571 !1,
7572 o.indents +
7573 (o.name ? '<' + o.name : '') +
7574 (o.attributes.length ? ' ' + o.attributes.join(' ') : '') +
7575 (a ? (o.name ? '>' : '') : o.name ? '/>' : '') +
7576 (o.indent && a > 1 ? '\n' : '')
7577 ),
7578 !a)
7579 )
7580 return s(!1, o.indent ? '\n' : '')
7581 interrupt(o) || proceed()
7582 }
7583 ;((s.exports = function xml(s, o) {
7584 'object' != typeof o && (o = { indent: o })
7585 var i = o.stream ? new _() : null,

Callers 4

proceedFunction · 0.85
addFunction · 0.85
format_pd_dataMethod · 0.85

Calls 7

interruptFunction · 0.85
proceedFunction · 0.85
slurpNumberFunction · 0.85
nextArgFunction · 0.85
replaceMethod · 0.80
sFunction · 0.50
toStringMethod · 0.45

Tested by

no test coverage detected