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

Method canParse

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

Source from the content-addressed store, hash-verified

52708 ...s,
52709 })
52710 }
52711 async canParse(s) {
52712 const o = 0 === this.fileExtensions.length || this.fileExtensions.includes(s.extension),
52713 i = this.mediaTypes.includes(s.mediaType)
52714 if (!o) return !1
52715 if (i) return !0
52716 if (!i)
52717 try {
52718 return (fn.load(s.toString(), { schema: rn }), !0)
52719 } catch (s) {
52720 return !1
52721 }
52722 return !1
52723 }
52724 async parse(s) {
52725 if (this.sourceMap)

Callers

nothing calls this directly

Calls 3

includesMethod · 0.45
loadMethod · 0.45
toStringMethod · 0.45

Tested by

no test coverage detected