def place.spot

emerging-ezjson@1.3.0.0 · src/pull.bend:187

import emerging-ezjson@1.3.0.0/src/pull.bend as Pull
import Base

187# the stack after a value, and whether that value was the root
188def place.spot(stack: List<&2, Frame>) -> Spot:
189  match stack:
190    case Nil{}:
191      Spot{Nil{}, True{}}
192    case Con{FArr{SVal{}, fresh}, frames}:
193      Spot{FArr{SCom{}, False{}} <> frames, False{}}
194    case Con{FObj{SVal{}, fresh}, frames}:
195      Spot{FObj{SCom{}, False{}} <> frames, False{}}
196    case other:
197      SpotBad{}

Uses (5)

Used by (4)