sway_ir::analysis::memory_utils

Function get_referred_symbol

Source
pub fn get_referred_symbol(context: &Context<'_>, val: Value) -> Option<Symbol>
Expand description

Return Symbol referred by val if there is exactly one symbol referred, or None if there are no Symbols referred or if there is more then one referred.