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

Method getParser

packages/effect/src/SchemaAST.ts:704–710  ·  view source on GitHub ↗

@internal

()

Source from the content-addressed store, hash-verified

702 }
703 /** @internal */
704 getParser(): SchemaParser.Parser {
705 let run: ReturnType<typeof this.run>
706 return (input, options) => {
707 if (input === InternalParser.missing) return InternalParser.missingExit
708 return (run ??= this.run(this.typeParameters))(input, this, options)
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 ?

Callers

nothing calls this directly

Calls 1

runMethod · 0.45

Tested by

no test coverage detected