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

Function loadDocuments

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

Source from the content-addressed store, hash-verified

33927 : s.position < s.length - 1 &&
33928 throwError(s, 'end of the stream or a document separator is expected'))
33929 }
33930 function loadDocuments(s, o) {
33931 ;((o = o || {}),
33932 0 !== (s = String(s)).length &&
33933 (10 !== s.charCodeAt(s.length - 1) &&
33934 13 !== s.charCodeAt(s.length - 1) &&
33935 (s += '\n'),
33936 65279 === s.charCodeAt(0) && (s = s.slice(1))))
33937 var i = new State$1(s, o),
33938 a = s.indexOf('\0')
33939 for (
33940 -1 !== a && ((i.position = a), throwError(i, 'null byte is not allowed in input')),
33941 i.input += '\0';
33942 32 === i.input.charCodeAt(i.position);
33943 )
33944 ((i.lineIndent += 1), (i.position += 1))
33945 for (; i.position < i.length - 1; ) readDocument(i)
33946 return i.documents
33947 }
33948 var Wr = {
33949 loadAll: function loadAll$1(s, o, i) {

Callers 1

Calls 2

throwErrorFunction · 0.85
readDocumentFunction · 0.85

Tested by

no test coverage detected