module scheme // Syntax may be partially unwrapped pair/vector structure. Existing wrapped // fragments retain their exact handles; only ordinary symbols gain context. fn datum_to_syntax(template Value, datum Value) !Value { info := syntax_identifier_info(template)! object := syntax_object_ref(template)! if datum.tag !in [.pair, .vector, .symbol] { return datum } return map_anchored_syntax_value_graph(datum, true, syntax_identifier_context(template)!, info.wrap, object.data.owner, info) }