(
s: ObjectParserState,
key: PropertyKey,
index: Index,
exitKey?: Exit.Exit<unknown, SchemaIssue.Issue>
)
| 2980 | return Exit.void |
| 2981 | } |
| 2982 | const parseIndex = ( |
| 2983 | s: ObjectParserState, |
| 2984 | key: PropertyKey, |
| 2985 | index: Index, |
| 2986 | exitKey?: Exit.Exit<unknown, SchemaIssue.Issue> |
| 2987 | ): Effect.Effect<void, SchemaIssue.Issue, any> => { |
| 2988 | if (!exitKey) { |
| 2989 | const eff = index.parserKey(key, s.options) |
| 2990 | if (!effectIsExit(eff)) { |
| 2991 | return Effect.flatMap(Effect.exit(eff), (exit) => parseIndex(s, key, index, exit)) |
| 2992 | } |
| 2993 | exitKey = eff |
| 2994 | } |
| 2995 | if (exitKey._tag === "Failure") { |
| 2996 | return wrapPropertyKeyIssue(s, ast, key, exitKey) ?? Exit.void |
| 2997 | } |
| 2998 | const k2 = InternalParser.isSameExit(exitKey) |
| 2999 | ? key |
| 3000 | : (exitKey as InternalParser.Success<PropertyKey, SchemaIssue.Issue>)[InternalParser.args] |
| 3001 | const inputValue = s.input[key] |
| 3002 | const result = index.parserValue(inputValue, s.options) |
| 3003 | return effectIsExit(result) |
| 3004 | ? finishIndex(s, key, k2, inputValue, result) |
| 3005 | : Effect.flatMap(Effect.exit(result), (exit) => finishIndex(s, key, k2, inputValue, exit)) |
| 3006 | } |
| 3007 | const parseStringIndex = ( |
| 3008 | s: ObjectParserState, |
| 3009 | key: PropertyKey, |
nothing calls this directly
no test coverage detected