@internal
()
| 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 ? |