pub struct PythonAnalyzer { /* private fields */ }Expand description
Python-specific analyzer
Implementations§
Source§impl PythonAnalyzer
impl PythonAnalyzer
pub fn new() -> Self
Sourcepub fn analyze_decorators(&self, content: &str) -> Result<Vec<DecoratorInfo>>
pub fn analyze_decorators(&self, content: &str) -> Result<Vec<DecoratorInfo>>
Analyze Python decorators
Sourcepub fn analyze_metaclasses(&self, content: &str) -> Result<Vec<MetaclassInfo>>
pub fn analyze_metaclasses(&self, content: &str) -> Result<Vec<MetaclassInfo>>
Analyze Python metaclasses
Sourcepub fn analyze_inheritance(&self, content: &str) -> Result<Vec<InheritanceInfo>>
pub fn analyze_inheritance(&self, content: &str) -> Result<Vec<InheritanceInfo>>
Analyze Python inheritance
Sourcepub fn analyze_security(
&self,
content: &str,
) -> Result<PythonSecurityAssessment>
pub fn analyze_security( &self, content: &str, ) -> Result<PythonSecurityAssessment>
Analyze Python security vulnerabilities and features
Sourcepub fn analyze_performance(
&self,
content: &str,
) -> Result<PythonPerformanceAnalysis>
pub fn analyze_performance( &self, content: &str, ) -> Result<PythonPerformanceAnalysis>
Analyze Python performance patterns and issues
Sourcepub fn analyze_frameworks(
&self,
content: &str,
) -> Result<Vec<PythonFrameworkInfo>>
pub fn analyze_frameworks( &self, content: &str, ) -> Result<Vec<PythonFrameworkInfo>>
Analyze Python frameworks with enhanced details
Sourcepub fn analyze_type_hints(
&self,
content: &str,
) -> Result<PythonTypeHintAnalysis>
pub fn analyze_type_hints( &self, content: &str, ) -> Result<PythonTypeHintAnalysis>
Analyze Python type hints comprehensively
Sourcepub fn analyze_async_await(
&self,
content: &str,
) -> Result<PythonAsyncAwaitAnalysis>
pub fn analyze_async_await( &self, content: &str, ) -> Result<PythonAsyncAwaitAnalysis>
Analyze Python async/await patterns comprehensively
Sourcepub fn analyze_package_dependencies(
&self,
content: &str,
) -> Result<PythonPackageDependencyAnalysis>
pub fn analyze_package_dependencies( &self, content: &str, ) -> Result<PythonPackageDependencyAnalysis>
Analyze Python package dependencies comprehensively
Sourcepub fn analyze_modern_features(
&self,
content: &str,
) -> Result<ModernPythonFeatureAnalysis>
pub fn analyze_modern_features( &self, content: &str, ) -> Result<ModernPythonFeatureAnalysis>
Analyze modern Python features comprehensively
Sourcepub fn get_python_recommendations(
&self,
decorators: &[DecoratorInfo],
metaclasses: &[MetaclassInfo],
inheritance: &[InheritanceInfo],
) -> Vec<String>
pub fn get_python_recommendations( &self, decorators: &[DecoratorInfo], metaclasses: &[MetaclassInfo], inheritance: &[InheritanceInfo], ) -> Vec<String>
Get Python-specific recommendations