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

Class ModelPropertyMacroVisitor

frontend/public/swagger-ui-bundle.js:53594–53624  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

53592 return s
53593 }, [])
53594 }
53595 const ux = class ModelPropertyMacroVisitor {
53596 modelPropertyMacro
53597 options
53598 SchemaElement = {
53599 leave: (s, o, i, a, u) => {
53600 void 0 !== s.properties &&
53601 Nu(s.properties) &&
53602 s.properties.forEach((o) => {
53603 if (Nu(o))
53604 try {
53605 const s = this.modelPropertyMacro(serializers_value(o))
53606 o.set('default', s)
53607 } catch (o) {
53608 var a, _
53609 const w = new Error(o, { cause: o })
53610 ;((w.fullPath = [...to_path([...u, i, s]), 'properties']),
53611 null === (a = this.options.dereference.dereferenceOpts) ||
53612 void 0 === a ||
53613 null === (a = a.errors) ||
53614 void 0 === a ||
53615 null === (_ = a.push) ||
53616 void 0 === _ ||
53617 _.call(a, w))
53618 }
53619 })
53620 },
53621 }
53622 constructor({ modelPropertyMacro: s, options: o }) {
53623 ;((this.modelPropertyMacro = s), (this.options = o))
53624 }
53625 }
53626 var px = (function () {
53627 function XUniqWith(s, o) {

Callers

nothing calls this directly

Calls 5

NuFunction · 0.85
serializers_valueFunction · 0.85
to_pathFunction · 0.85
forEachMethod · 0.45
setMethod · 0.45

Tested by

no test coverage detected