fn is_enum_lit_name_ref(
sema: &Semantics<'_, RootDatabase>,
enum_: Enum,
name_ref: &NameRef,
) -> boolExpand description
Checks if a name reference is part of an enum variant literal expression. Used to filter references when searching for enum variant constructors.
§Arguments
sema- Semantic analysis contextenum_- The enum type to check againstname_ref- The name reference to check
§Returns
true if the name reference is used as part of constructing a variant of the given enum.