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

Function onItem

packages/effect/src/SchemaAST.ts:1844–1847  ·  view source on GitHub ↗
(s, item, i)

Source from the content-addressed store, hash-verified

1842 issues: Array<SchemaIssue.Issue> | undefined
1843}, unknown>()({
1844 onItem(s, item, i) {
1845 const value = i < s.len ? item : InternalParser.missing
1846 return s.getParser(s.tailThreshold, i).parser(value, s.options)
1847 },
1848 step(s, item, exit, i) {
1849 if (exit._tag === "Failure") {
1850 return wrapPropertyKeyIssue(s, s.ast, i, exit)

Callers

nothing calls this directly

Calls 2

compileMethod · 0.80
getParserMethod · 0.45

Tested by

no test coverage detected