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

Function processLines

frontend/public/swagger-ui-bundle.js:57770–57854  ·  view source on GitHub ↗
(s, o, i, a, u, _, w, x, C)

Source from the content-addressed store, hash-verified

57768 }
57769 return i
57770 }
57771 function processLines(s, o, i, a, u, _, w, x, C) {
57772 var j,
57773 L = flattenCodeTree(s.value),
57774 B = [],
57775 $ = -1,
57776 U = 0
57777 function createLine(s, _) {
57778 var j = arguments.length > 2 && void 0 !== arguments[2] ? arguments[2] : []
57779 return o || j.length > 0
57780 ? (function createWrappedLine(s, _) {
57781 return createLineElement({
57782 children: s,
57783 lineNumber: _,
57784 lineNumberStyle: x,
57785 largestLineNumber: w,
57786 showInlineLineNumbers: u,
57787 lineProps: i,
57788 className: arguments.length > 2 && void 0 !== arguments[2] ? arguments[2] : [],
57789 showLineNumbers: a,
57790 wrapLongLines: C,
57791 wrapLines: o,
57792 })
57793 })(s, _, j)
57794 : (function createUnwrappedLine(s, o) {
57795 if (a && o && u) {
57796 var i = assembleLineNumberStyles(x, o, w)
57797 s.unshift(getInlineLineNumber(o, i))
57798 }
57799 return s
57800 })(s, _)
57801 }
57802 for (
57803 var V = function _loop() {
57804 var s = L[U],
57805 o = s.children[0].value,
57806 i = (function getNewLines(s) {
57807 return s.match(bO)
57808 })(o)
57809 if (i) {
57810 var u = o.split('\n')
57811 ;(u.forEach(function (o, i) {
57812 var w = a && B.length + _,
57813 x = { type: 'text', value: ''.concat(o, '\n') }
57814 if (0 === i) {
57815 var C = createLine(
57816 L.slice($ + 1, U).concat(
57817 createLineElement({ children: [x], className: s.properties.className })
57818 ),
57819 w
57820 )
57821 B.push(C)
57822 } else if (i === u.length - 1) {
57823 var j = L[U + 1] && L[U + 1].children && L[U + 1].children[0],
57824 V = { type: 'text', value: ''.concat(o) }
57825 if (j) {
57826 var z = createLineElement({
57827 children: [V],

Callers 1

Calls 4

flattenCodeTreeFunction · 0.85
createLineFunction · 0.85
VFunction · 0.70
pushMethod · 0.45

Tested by

no test coverage detected