pub struct CommandAnalyzer { /* private fields */ }Expand description
Comprehensive analyzer that orchestrates all analysis sub-modules
Implementations§
Source§impl CommandAnalyzer
impl CommandAnalyzer
pub fn new() -> Self
Sourcepub fn analyze_project(
&mut self,
project_path: &str,
) -> Result<Vec<CommandInfo>, Box<dyn Error>>
pub fn analyze_project( &mut self, project_path: &str, ) -> Result<Vec<CommandInfo>, Box<dyn Error>>
Analyze a complete project for Tauri commands and types
Sourcepub fn analyze_project_with_verbose(
&mut self,
project_path: &str,
verbose: bool,
) -> Result<Vec<CommandInfo>, Box<dyn Error>>
pub fn analyze_project_with_verbose( &mut self, project_path: &str, verbose: bool, ) -> Result<Vec<CommandInfo>, Box<dyn Error>>
Analyze a complete project for Tauri commands and types with verbose output
Sourcepub fn analyze_file(
&mut self,
file_path: &Path,
) -> Result<Vec<CommandInfo>, Box<dyn Error>>
pub fn analyze_file( &mut self, file_path: &Path, ) -> Result<Vec<CommandInfo>, Box<dyn Error>>
Analyze a single file for Tauri commands (backward compatibility for tests)
Sourcepub fn extract_type_names(
&self,
rust_type: &str,
type_names: &mut HashSet<String>,
)
pub fn extract_type_names( &self, rust_type: &str, type_names: &mut HashSet<String>, )
Extract type names from a Rust type string
Sourcepub fn get_discovered_structs(&self) -> &HashMap<String, StructInfo>
pub fn get_discovered_structs(&self) -> &HashMap<String, StructInfo>
Get discovered structs
Sourcepub fn get_discovered_events(&self) -> &[EventInfo]
pub fn get_discovered_events(&self) -> &[EventInfo]
Get discovered events
Sourcepub fn get_all_discovered_channels(
&self,
commands: &[CommandInfo],
) -> Vec<ChannelInfo>
pub fn get_all_discovered_channels( &self, commands: &[CommandInfo], ) -> Vec<ChannelInfo>
Get all discovered channels from all commands
Sourcepub fn get_dependency_graph(&self) -> &TypeDependencyGraph
pub fn get_dependency_graph(&self) -> &TypeDependencyGraph
Get the dependency graph for visualization
Sourcepub fn topological_sort_types(&self, types: &HashSet<String>) -> Vec<String>
pub fn topological_sort_types(&self, types: &HashSet<String>) -> Vec<String>
Sort types topologically to ensure dependencies are declared before being used
Sourcepub fn visualize_dependencies(&self, commands: &[CommandInfo]) -> String
pub fn visualize_dependencies(&self, commands: &[CommandInfo]) -> String
Generate a text-based visualization of the dependency graph
Sourcepub fn generate_dot_graph(&self, commands: &[CommandInfo]) -> String
pub fn generate_dot_graph(&self, commands: &[CommandInfo]) -> String
Generate a DOT graph visualization of the dependency graph
Sourcepub fn map_rust_type_to_typescript(&mut self, rust_type: &str) -> String
pub fn map_rust_type_to_typescript(&mut self, rust_type: &str) -> String
Map a Rust type to its TypeScript equivalent
Trait Implementations§
Auto Trait Implementations§
impl Freeze for CommandAnalyzer
impl RefUnwindSafe for CommandAnalyzer
impl !Send for CommandAnalyzer
impl !Sync for CommandAnalyzer
impl Unpin for CommandAnalyzer
impl UnwindSafe for CommandAnalyzer
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