pub struct JavaScriptAnalyzer { /* private fields */ }
Expand description
JavaScript/TypeScript-specific analyzer
Implementations§
Source§impl JavaScriptAnalyzer
impl JavaScriptAnalyzer
pub fn new() -> Self
Sourcepub fn detect_frameworks(&self, content: &str) -> Result<Vec<FrameworkInfo>>
pub fn detect_frameworks(&self, content: &str) -> Result<Vec<FrameworkInfo>>
Detect framework usage with enhanced analysis
Sourcepub fn analyze_react_patterns(
&self,
content: &str,
) -> Result<Vec<ReactComponentInfo>>
pub fn analyze_react_patterns( &self, content: &str, ) -> Result<Vec<ReactComponentInfo>>
Analyze React components and patterns with enhanced capabilities
Sourcepub fn analyze_nodejs_patterns(
&self,
content: &str,
) -> Result<Vec<NodeJsPatternInfo>>
pub fn analyze_nodejs_patterns( &self, content: &str, ) -> Result<Vec<NodeJsPatternInfo>>
Analyze Node.js patterns with enhanced database detection
Sourcepub fn analyze_modern_js_features(
&self,
content: &str,
) -> Result<Vec<ModernJsFeatureInfo>>
pub fn analyze_modern_js_features( &self, content: &str, ) -> Result<Vec<ModernJsFeatureInfo>>
Analyze modern JavaScript features with TypeScript support
Sourcepub fn get_comprehensive_recommendations(
&self,
frameworks: &[FrameworkInfo],
components: &[ReactComponentInfo],
nodejs_patterns: &[NodeJsPatternInfo],
modern_features: &[ModernJsFeatureInfo],
) -> Vec<String>
pub fn get_comprehensive_recommendations( &self, frameworks: &[FrameworkInfo], components: &[ReactComponentInfo], nodejs_patterns: &[NodeJsPatternInfo], modern_features: &[ModernJsFeatureInfo], ) -> Vec<String>
Get comprehensive recommendations based on analysis
Sourcepub fn analyze_vue_patterns(
&self,
content: &str,
) -> Result<Vec<VueComponentInfo>>
pub fn analyze_vue_patterns( &self, content: &str, ) -> Result<Vec<VueComponentInfo>>
Analyze Vue.js components and patterns (Phase 1.3)
Sourcepub fn analyze_angular_patterns(
&self,
content: &str,
) -> Result<Vec<AngularComponentInfo>>
pub fn analyze_angular_patterns( &self, content: &str, ) -> Result<Vec<AngularComponentInfo>>
Analyze Angular components and patterns (Phase 1.3)
Sourcepub fn analyze_security_assessment(
&self,
content: &str,
) -> Result<SecurityAssessment>
pub fn analyze_security_assessment( &self, content: &str, ) -> Result<SecurityAssessment>
Analyze security patterns and vulnerabilities (Phase 1.3)
Sourcepub fn analyze_performance_patterns(
&self,
content: &str,
) -> Result<PerformanceAnalysis>
pub fn analyze_performance_patterns( &self, content: &str, ) -> Result<PerformanceAnalysis>
Analyze performance patterns and optimizations (Phase 1.3)
Sourcepub fn analyze_websocket_patterns(
&self,
content: &str,
) -> Result<Option<WebSocketAnalysis>>
pub fn analyze_websocket_patterns( &self, content: &str, ) -> Result<Option<WebSocketAnalysis>>
Analyze WebSocket patterns and real-time features (Phase 1.3)
Sourcepub fn analyze_enhanced_typescript(
&self,
content: &str,
) -> Result<TypeScriptAnalysisInfo>
pub fn analyze_enhanced_typescript( &self, content: &str, ) -> Result<TypeScriptAnalysisInfo>
Analyze enhanced TypeScript features (Phase 1.3)
Trait Implementations§
Auto Trait Implementations§
impl Freeze for JavaScriptAnalyzer
impl RefUnwindSafe for JavaScriptAnalyzer
impl Send for JavaScriptAnalyzer
impl Sync for JavaScriptAnalyzer
impl Unpin for JavaScriptAnalyzer
impl UnwindSafe for JavaScriptAnalyzer
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