cairo_lang_sierra_generator::statements_locations

Function maybe_containing_function_identifier

Source
pub fn maybe_containing_function_identifier(
    db: &dyn DefsGroup,
    location: StableLocation,
) -> Option<String>
Expand description

Returns an identifier of the function that contains the given StableLocation. It is a fully qualified path to the function which contains:

  • fully qualified path to the file module,
  • relative path to the function in the file module.