MCPcopy Create free account
hub / github.com/dataease/SQLBot / transclude

Method transclude

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

Source from the content-addressed store, hash-verified

43080 constructor({ element: s }) {
43081 this.element = s
43082 }
43083 transclude(s, o) {
43084 var i
43085 if (s === this.element) return o
43086 if (s === o) return this.element
43087 this.edges =
43088 null !== (i = this.edges) && void 0 !== i ? i : computeEdges(this.element)
43089 const a = this.edges.get(s)
43090 return bc(a)
43091 ? void 0
43092 : (Nu(a)
43093 ? ((s, o, i) => {
43094 const a = i.get(s)
43095 Nu(a) &&
43096 (a.content = a.map((u, _, w) =>
43097 w === s ? (i.delete(s), i.set(o, a), o) : w
43098 ))
43099 })(s, o, this.edges)
43100 : Mu(a)
43101 ? ((s, o, i) => {
43102 const a = i.get(s)
43103 Mu(a) &&
43104 (a.content = a.map((u) =>
43105 u === s ? (i.delete(s), i.set(o, a), o) : u
43106 ))
43107 })(s, o, this.edges)
43108 : Ru(a) &&
43109 ((s, o, i) => {
43110 const a = i.get(s)
43111 Ru(a) &&
43112 (a.key === s && ((a.key = o), i.delete(s), i.set(o, a)),
43113 a.value === s && ((a.value = o), i.delete(s), i.set(o, a)))
43114 })(s, o, this.edges),
43115 this.element)
43116 }
43117 },
43118 fromURIReference = (s) => {

Callers 1

resolveOpenAPI31StrategyFunction · 0.80

Calls 8

computeEdgesFunction · 0.85
NuFunction · 0.85
getMethod · 0.65
bcFunction · 0.50
RuFunction · 0.50
mapMethod · 0.45
deleteMethod · 0.45
setMethod · 0.45

Tested by

no test coverage detected