Skip to main content

set_field_value

Function set_field_value 

Source
pub fn set_field_value(
    cst: &CabalCst,
    field_node: NodeId,
    value: &str,
) -> TextEdit
Expand description

Set a simple scalar field value. Replaces the current value text.

If the field has no value (e.g., field-name:\n), inserts the value after the colon with a space.