def obj.arr

bend-toon-codec@0.1.0.0 · src/step.bend:85

import bend-toon-codec@0.1.0.0/src/step.bend as Step
import Base
import bend-toon-codec@0.1.0.0/src/json.bend as J
import bend-toon-codec@0.1.0.0/src/frame.bend as F

85def obj.arr(+r: Result<&2, &2, String, Start>, +k: String, +dp: U32, +a: F.Att, +fs: J.Json, +rest: List<&2, F.Fr>, +root: Maybe<&2, J.Json>, +bmin: U32, +strict: Bool) -> Result<&2, &2, String, F.St>:
86  match r:
87    case Fail{e}:
88      Fail{e}
89    case Done{SVal{v}}:
90      F.put.field(strict, dp, a, fs, k, v, rest, root, bmin)
91    case Done{SOpen{fr}}:
92      Done{F.St{Con{fr, Con{F.FObj{dp, a, fs}, rest}}, root, bmin}}

Uses (12)

Used by (1)