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

Function createLineElement

frontend/public/swagger-ui-bundle.js:57713–57744  ·  view source on GitHub ↗
(s)

Source from the content-addressed store, hash-verified

57711 _ = 'function' == typeof s ? s(o) : s
57712 return highlight_objectSpread(highlight_objectSpread({}, u), _)
57713 }
57714 function createLineElement(s) {
57715 var o = s.children,
57716 i = s.lineNumber,
57717 a = s.lineNumberStyle,
57718 u = s.largestLineNumber,
57719 _ = s.showInlineLineNumbers,
57720 w = s.lineProps,
57721 x = void 0 === w ? {} : w,
57722 C = s.className,
57723 j = void 0 === C ? [] : C,
57724 L = s.showLineNumbers,
57725 B = s.wrapLongLines,
57726 $ = s.wrapLines,
57727 U =
57728 void 0 !== $ && $ ? highlight_objectSpread({}, 'function' == typeof x ? x(i) : x) : {}
57729 if (
57730 ((U.className = U.className
57731 ? [].concat(
57732 toConsumableArray_toConsumableArray(U.className.trim().split(/\s+/)),
57733 toConsumableArray_toConsumableArray(j)
57734 )
57735 : j),
57736 i && _)
57737 ) {
57738 var V = assembleLineNumberStyles(a, i, u)
57739 o.unshift(getInlineLineNumber(i, V))
57740 }
57741 return (
57742 B & L && (U.style = highlight_objectSpread({ display: 'flex' }, U.style)),
57743 { type: 'element', tagName: 'span', properties: U, children: o }
57744 )
57745 }
57746 function flattenCodeTree(s) {
57747 var o = arguments.length > 1 && void 0 !== arguments[1] ? arguments[1] : [],

Callers 3

flattenCodeTreeFunction · 0.85
createLineFunction · 0.85
VFunction · 0.85

Calls 7

highlight_objectSpreadFunction · 0.85
assembleLineNumberStylesFunction · 0.85
getInlineLineNumberFunction · 0.85
concatMethod · 0.80
xFunction · 0.70
unshiftMethod · 0.45

Tested by

no test coverage detected