SemanticAnalyzerProvider

Trait SemanticAnalyzerProvider 

Source
pub trait SemanticAnalyzerProvider: Send + Sync {
    // Required methods
    fn language(&self) -> &str;
    fn analyze(&self, code: &str) -> ProviderResult<SemanticInfo>;
    fn extract_symbols(&self, code: &str) -> ProviderResult<Vec<Symbol>>;
    fn get_hover_info(
        &self,
        code: &str,
        position: Position,
    ) -> ProviderResult<Option<String>>;
}
Expand description

Trait for language-specific semantic analysis providers

Required Methods§

Source

fn language(&self) -> &str

Get the language identifier this provider handles

Source

fn analyze(&self, code: &str) -> ProviderResult<SemanticInfo>

Analyze code and extract semantic information

Source

fn extract_symbols(&self, code: &str) -> ProviderResult<Vec<Symbol>>

Extract symbols from code

Source

fn get_hover_info( &self, code: &str, position: Position, ) -> ProviderResult<Option<String>>

Get hover information at a specific position

Implementors§