cairo_lang_sierra_generator::statements_locations

Function maybe_code_location

Source
pub fn maybe_code_location(
    db: &dyn DefsGroup,
    location: StableLocation,
) -> Option<(SourceFileFullPath, SourceCodeSpan)>
Expand description

Returns a location in the user file corresponding to the given StableLocation. It consists of a full path to the file and a text span in the file.