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

Method ObjectElement

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

Source from the content-addressed store, hash-verified

46042 constructor({ specPath: s, ignoredFields: o, ...i }) {
46043 ;(super({ ...i }), (this.specPath = s), (this.ignoredFields = o || []))
46044 }
46045 ObjectElement(s) {
46046 const o = this.specPath(s),
46047 i = this.retrieveFixedFields(o)
46048 return (
46049 s.forEach((s, a, u) => {
46050 if (
46051 ju(a) &&
46052 i.includes(serializers_value(a)) &&
46053 !this.ignoredFields.includes(serializers_value(a))
46054 ) {
46055 const i = this.toRefractedElement([...o, 'fixedFields', serializers_value(a)], s),
46056 _ = new Su.Pr(cloneDeep(a), i)
46057 ;(this.copyMetaAndAttributes(u, _),
46058 _.classes.push('fixed-field'),
46059 this.element.content.push(_))
46060 } else
46061 this.ignoredFields.includes(serializers_value(a)) ||
46062 this.element.content.push(cloneDeep(u))
46063 }),
46064 this.copyMetaAndAttributes(s, this.element),
46065 qu
46066 )
46067 }
46068 }
46069 const Rd = class ParentSchemaAwareVisitor {

Callers

nothing calls this directly

Calls 9

juFunction · 0.85
serializers_valueFunction · 0.85
cloneDeepFunction · 0.85
retrieveFixedFieldsMethod · 0.45
forEachMethod · 0.45
includesMethod · 0.45
toRefractedElementMethod · 0.45
copyMetaAndAttributesMethod · 0.45
pushMethod · 0.45

Tested by

no test coverage detected