(layout: Layout, r: Reader)
| 5131 | } |
| 5132 | |
| 5133 | function decodeValue(layout: Layout, r: Reader): unknown { |
| 5134 | if (r.nesting >= MAX_NESTING_DEPTH) { |
| 5135 | invalid(`nesting depth at most ${MAX_NESTING_DEPTH}`, r.nesting + 1, r.options) |
| 5136 | } |
| 5137 | r.nesting++ |
| 5138 | try { |
| 5139 | return decodeValueUnchecked(layout, r) |
| 5140 | } finally { |
| 5141 | r.nesting-- |
| 5142 | } |
| 5143 | } |
| 5144 | |
| 5145 | function decodeValueUnchecked(layout: Layout, r: Reader): unknown { |
| 5146 | switch (layout._) { |
no test coverage detected