Skip to main content

plan_inline_variable

Function plan_inline_variable 

Source
pub fn plan_inline_variable(
    file: &Path,
    content: &str,
    line: usize,
    col: usize,
) -> Result<InlineVariableOutcome, String>
Expand description

Build an inline-variable plan without touching the filesystem.

file is the absolute path to the file (used for language detection). content is the current file content. line and col are 1-based (pointing at the variable name in its declaration).