MCPcopy Create free account
hub / github.com/Effect-TS/effect / _rebuild

Method _rebuild

packages/effect/src/SchemaAST.ts:711–716  ·  view source on GitHub ↗
(recur: (ast: AST) => AST, checks: Checks | undefined, encodingChecks: Checks | undefined)

Source from the content-addressed store, hash-verified

709 }
710 }
711 private _rebuild(recur: (ast: AST) => AST, checks: Checks | undefined, encodingChecks: Checks | undefined) {
712 const tps = mapOrSame(this.typeParameters, recur)
713 return tps === this.typeParameters && checks === this.checks && encodingChecks === this.encodingChecks ?
714 this :
715 new Declaration(tps, this.run, this.annotations, checks, undefined, this.context, encodingChecks)
716 }
717 /** @internal */
718 recur(recur: (ast: AST) => AST) {
719 return this._rebuild(recur, this.checks, this.encodingChecks)

Callers 2

recurMethod · 0.95
flipMethod · 0.95

Calls 1

mapOrSameFunction · 0.85

Tested by

no test coverage detected