pub struct LanguageSupport { /* private fields */ }
Expand description
Main language support coordinator
Implementations§
Source§impl LanguageSupport
impl LanguageSupport
Sourcepub fn get_language_features(&self, language: AstLanguage) -> LanguageFeatures
pub fn get_language_features(&self, language: AstLanguage) -> LanguageFeatures
Get language features and capabilities
Sourcepub fn extract_functions(
&mut self,
content: &str,
language: AstLanguage,
) -> Result<Vec<FunctionInfo>>
pub fn extract_functions( &mut self, content: &str, language: AstLanguage, ) -> Result<Vec<FunctionInfo>>
Extract all functions and classes from source code
Sourcepub fn analyze_documentation(
&self,
content: &str,
language: AstLanguage,
) -> Result<DocumentationCoverage>
pub fn analyze_documentation( &self, content: &str, language: AstLanguage, ) -> Result<DocumentationCoverage>
Analyze documentation coverage
Sourcepub fn calculate_language_metrics(
&self,
content: &str,
language: AstLanguage,
) -> Result<LanguageMetrics>
pub fn calculate_language_metrics( &self, content: &str, language: AstLanguage, ) -> Result<LanguageMetrics>
Get language-specific complexity metrics
Sourcepub fn is_supported(&self, language: AstLanguage) -> bool
pub fn is_supported(&self, language: AstLanguage) -> bool
Check if a language is supported
Sourcepub fn supported_languages(&self) -> Vec<AstLanguage>
pub fn supported_languages(&self) -> Vec<AstLanguage>
Get all supported languages
Trait Implementations§
Auto Trait Implementations§
impl Freeze for LanguageSupport
impl RefUnwindSafe for LanguageSupport
impl Send for LanguageSupport
impl Sync for LanguageSupport
impl Unpin for LanguageSupport
impl UnwindSafe for LanguageSupport
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
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more