Skip to main content

op_resolve_gate

Function op_resolve_gate 

Source
pub fn op_resolve_gate(body: &str, gate_type: &str) -> (String, Vec<String>)
Expand description

Resolve all gated items matching a typed gate. Finds items with [/<gate_type>] and flips them to [x]. Returns (new_body, resolved_ids).

Only matches typed gates — untyped [/] items are never resolved by this op.