pub fn get_starknet_event_variants(
db: &dyn SyntaxGroup,
diagnostics: &mut Vec<PluginDiagnostic>,
item: &ModuleItem,
module_kind: StarknetModuleKind,
) -> Option<Vec<SmolStr>>
Expand description
Checks whether the given item is a starknet event, and if so - makes sure it’s valid and returns its variants. Returns None if it’s not a starknet event.