Skip to main content

edit_body

Function edit_body 

Source
pub fn edit_body(source: &str, valid: bool) -> String
Expand description

A body-only edit: a comparison inside a handler body becomes ill-typed and back (> 0) to > "x")). Nothing outside that body changes, so it is the edit an incremental analysis is meant to make cheap, and, like edit_source, it moves the diagnostics so the client can see its own round. The signature edit edit_source makes is the pessimistic one for a cache.