Skip to main content

with_source

Function with_source 

Source
pub fn with_source(
    prog: Result<Program, String>,
    src: &str,
) -> Result<Program, String>
Expand description

Attach the text a program was parsed from, which its functions’ spans index (Function.prototype.toString).