Skip to main content

Run

Function Run 

Source
pub fn Run(Source: &str, Options: &Options) -> Result<Option<String>>
Expand description

Parse Source, run up to super::Constant::MaxIterations elimination passes, then return the patched source text.

Preferred path: span-based text patching via TryPatchSource preserves inline comments and blank lines. Falls back to prettyplease::unparse when span-location data is unavailable.

Returns Ok(None) when no bindings were eliminated (caller can skip the write-back).