source_string_at_location

Function source_string_at_location 

Source
pub fn source_string_at_location<'a>(
    id: u32,
    source: &'a str,
    location: &SourceLocation,
) -> &'a str
Expand description

Get the source string at the given location.

ยงArguments

  • id - The source index
  • source - The source string
  • location - The source location. The index in the location must be the same as the id if it is present.