cairo_lang_semantic::items::function_with_body

Function get_implicit_precedence

source
pub fn get_implicit_precedence<'a>(
    diagnostics: &mut SemanticDiagnostics,
    resolver: &mut Resolver<'_>,
    attributes: &'a [Attribute],
) -> (ImplicitPrecedence, Option<&'a Attribute>)
Expand description

Get ImplicitPrecedence of the given function by looking at its attributes.

Returns the generated implicit precedence and the attribute used to get it, if one exists. If there is no implicit precedence influencing attribute, then this function returns ImplicitPrecedence::UNSPECIFIED.