Function cairo_lang_starknet::plugin::events::is_starknet_event
source · pub fn is_starknet_event(
db: &dyn SyntaxGroup,
diagnostics: &mut Vec<PluginDiagnostic>,
item: &Item,
module_kind: StarknetModuleKind
) -> bool
Expand description
Checks whether the given item is an event, and if so - makes sure it’s valid.