pub struct EventParser;Expand description
Parser for Tauri event emissions
Implementations§
Source§impl EventParser
impl EventParser
pub fn new() -> Self
Sourcepub fn extract_events_from_ast(
&self,
ast: &SynFile,
file_path: &Path,
type_resolver: &mut TypeResolver,
) -> Result<Vec<EventInfo>, Box<dyn Error>>
pub fn extract_events_from_ast( &self, ast: &SynFile, file_path: &Path, type_resolver: &mut TypeResolver, ) -> Result<Vec<EventInfo>, Box<dyn Error>>
Extract event emissions from a cached AST Looks for patterns like:
- app.emit(“event-name”, payload)
- window.emit(“event-name”, payload)
- app.emit_to(“label”, “event-name”, payload)
Trait Implementations§
Source§impl Debug for EventParser
impl Debug for EventParser
Auto Trait Implementations§
impl Freeze for EventParser
impl RefUnwindSafe for EventParser
impl Send for EventParser
impl Sync for EventParser
impl Unpin for EventParser
impl UnwindSafe for EventParser
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more