Struct JavaScriptAnalyzer

Source
pub struct JavaScriptAnalyzer { /* private fields */ }
Expand description

JavaScript/TypeScript-specific analyzer

Implementations§

Source§

impl JavaScriptAnalyzer

Source

pub fn new() -> Self

Source

pub fn detect_frameworks(&self, content: &str) -> Result<Vec<FrameworkInfo>>

Detect framework usage with enhanced analysis

Source

pub fn analyze_react_patterns( &self, content: &str, ) -> Result<Vec<ReactComponentInfo>>

Analyze React components and patterns with enhanced capabilities

Source

pub fn analyze_nodejs_patterns( &self, content: &str, ) -> Result<Vec<NodeJsPatternInfo>>

Analyze Node.js patterns with enhanced database detection

Source

pub fn analyze_modern_js_features( &self, content: &str, ) -> Result<Vec<ModernJsFeatureInfo>>

Analyze modern JavaScript features with TypeScript support

Source

pub fn get_comprehensive_recommendations( &self, frameworks: &[FrameworkInfo], components: &[ReactComponentInfo], nodejs_patterns: &[NodeJsPatternInfo], modern_features: &[ModernJsFeatureInfo], ) -> Vec<String>

Get comprehensive recommendations based on analysis

Source

pub fn analyze_vue_patterns( &self, content: &str, ) -> Result<Vec<VueComponentInfo>>

Analyze Vue.js components and patterns (Phase 1.3)

Source

pub fn analyze_angular_patterns( &self, content: &str, ) -> Result<Vec<AngularComponentInfo>>

Analyze Angular components and patterns (Phase 1.3)

Source

pub fn analyze_security_assessment( &self, content: &str, ) -> Result<SecurityAssessment>

Analyze security patterns and vulnerabilities (Phase 1.3)

Source

pub fn analyze_performance_patterns( &self, content: &str, ) -> Result<PerformanceAnalysis>

Analyze performance patterns and optimizations (Phase 1.3)

Source

pub fn analyze_websocket_patterns( &self, content: &str, ) -> Result<Option<WebSocketAnalysis>>

Analyze WebSocket patterns and real-time features (Phase 1.3)

Source

pub fn analyze_enhanced_typescript( &self, content: &str, ) -> Result<TypeScriptAnalysisInfo>

Analyze enhanced TypeScript features (Phase 1.3)

Trait Implementations§

Source§

impl Default for JavaScriptAnalyzer

Source§

fn default() -> Self

Returns the “default value” for a type. Read more

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.