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

Function readDocument

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

Source from the content-addressed store, hash-verified

33863 null !== s.tag || null !== s.anchor || Y
33864 )
33865 }
33866 function readDocument(s) {
33867 var o,
33868 i,
33869 a,
33870 u,
33871 _ = s.position,
33872 w = !1
33873 for (
33874 s.version = null,
33875 s.checkLineBreaks = s.legacy,
33876 s.tagMap = Object.create(null),
33877 s.anchorMap = Object.create(null);
33878 0 !== (u = s.input.charCodeAt(s.position)) &&
33879 (skipSeparationSpace(s, !0, -1),
33880 (u = s.input.charCodeAt(s.position)),
33881 !(s.lineIndent > 0 || 37 !== u));
33882 ) {
33883 for (
33884 w = !0, u = s.input.charCodeAt(++s.position), o = s.position;
33885 0 !== u && !is_WS_OR_EOL(u);
33886 )
33887 u = s.input.charCodeAt(++s.position)
33888 for (
33889 a = [],
33890 (i = s.input.slice(o, s.position)).length < 1 &&
33891 throwError(s, 'directive name must not be less than one character in length');
33892 0 !== u;
33893 ) {
33894 for (; is_WHITE_SPACE(u); ) u = s.input.charCodeAt(++s.position)
33895 if (35 === u) {
33896 do {
33897 u = s.input.charCodeAt(++s.position)
33898 } while (0 !== u && !is_EOL(u))
33899 break
33900 }
33901 if (is_EOL(u)) break
33902 for (o = s.position; 0 !== u && !is_WS_OR_EOL(u); )
33903 u = s.input.charCodeAt(++s.position)
33904 a.push(s.input.slice(o, s.position))
33905 }
33906 ;(0 !== u && readLineBreak(s),
33907 Rr.call(zr, i)
33908 ? zr[i](s, i, a)
33909 : throwWarning(s, 'unknown document directive "' + i + '"'))
33910 }
33911 ;(skipSeparationSpace(s, !0, -1),
33912 0 === s.lineIndent &&
33913 45 === s.input.charCodeAt(s.position) &&
33914 45 === s.input.charCodeAt(s.position + 1) &&
33915 45 === s.input.charCodeAt(s.position + 2)
33916 ? ((s.position += 3), skipSeparationSpace(s, !0, -1))
33917 : w && throwError(s, 'directives end mark is expected'),
33918 composeNode(s, s.lineIndent - 1, 4, !1, !0),
33919 skipSeparationSpace(s, !0, -1),
33920 s.checkLineBreaks &&
33921 Lr.test(s.input.slice(_, s.position)) &&
33922 throwWarning(s, 'non-ASCII line breaks are interpreted as content'),

Callers 1

loadDocumentsFunction · 0.85

Calls 11

skipSeparationSpaceFunction · 0.85
is_WS_OR_EOLFunction · 0.85
throwErrorFunction · 0.85
is_WHITE_SPACEFunction · 0.85
is_EOLFunction · 0.85
readLineBreakFunction · 0.85
throwWarningFunction · 0.85
composeNodeFunction · 0.85
testDocumentSeparatorFunction · 0.85
createMethod · 0.65
pushMethod · 0.45

Tested by

no test coverage detected