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

Function readBlockSequence

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

Source from the content-addressed store, hash-verified

33218 function writeFoldedLines(s, o) {
33219 1 === o ? (s.result += ' ') : o > 1 && (s.result += er.repeat('\n', o - 1))
33220 }
33221 function readBlockSequence(s, o) {
33222 var i,
33223 a,
33224 u = s.tag,
33225 _ = s.anchor,
33226 w = [],
33227 x = !1
33228 if (-1 !== s.firstTabInLine) return !1
33229 for (
33230 null !== s.anchor && (s.anchorMap[s.anchor] = w), a = s.input.charCodeAt(s.position);
33231 0 !== a &&
33232 (-1 !== s.firstTabInLine &&
33233 ((s.position = s.firstTabInLine),
33234 throwError(s, 'tab characters must not be used in indentation')),
33235 45 === a) &&
33236 is_WS_OR_EOL(s.input.charCodeAt(s.position + 1));
33237 )
33238 if (((x = !0), s.position++, skipSeparationSpace(s, !0, -1) && s.lineIndent <= o))
33239 (w.push(null), (a = s.input.charCodeAt(s.position)))
33240 else if (
33241 ((i = s.line),
33242 composeNode(s, o, 3, !1, !0),
33243 w.push(s.result),
33244 skipSeparationSpace(s, !0, -1),
33245 (a = s.input.charCodeAt(s.position)),
33246 (s.line === i || s.lineIndent > o) && 0 !== a)
33247 )
33248 throwError(s, 'bad indentation of a sequence entry')
33249 else if (s.lineIndent < o) break
33250 return !!x && ((s.tag = u), (s.anchor = _), (s.kind = 'sequence'), (s.result = w), !0)
33251 }
33252 function readTagProperty(s) {
33253 var o,

Callers 1

composeNodeFunction · 0.85

Calls 5

throwErrorFunction · 0.85
is_WS_OR_EOLFunction · 0.85
skipSeparationSpaceFunction · 0.85
composeNodeFunction · 0.85
pushMethod · 0.45

Tested by

no test coverage detected