pub struct ProjectAnalyzer { /* private fields */ }
Expand description
Main project analyzer
Implementations§
Source§impl ProjectAnalyzer
impl ProjectAnalyzer
Sourcepub async fn analyze_project(&self, root: &Path) -> RazResult<ProjectContext>
pub async fn analyze_project(&self, root: &Path) -> RazResult<ProjectContext>
Analyze a project and return comprehensive context
Sourcepub async fn analyze_file(
&self,
context: &mut ProjectContext,
file_path: &Path,
cursor: Option<Position>,
) -> RazResult<()>
pub async fn analyze_file( &self, context: &mut ProjectContext, file_path: &Path, cursor: Option<Position>, ) -> RazResult<()>
Analyze a specific file and add its context
Sourcepub async fn resolve_test_context(
&self,
context: &ProjectContext,
) -> RazResult<Option<TestContext>>
pub async fn resolve_test_context( &self, context: &ProjectContext, ) -> RazResult<Option<TestContext>>
Resolve test context from current project context and cursor position
Trait Implementations§
Auto Trait Implementations§
impl Freeze for ProjectAnalyzer
impl RefUnwindSafe for ProjectAnalyzer
impl Send for ProjectAnalyzer
impl Sync for ProjectAnalyzer
impl Unpin for ProjectAnalyzer
impl UnwindSafe for ProjectAnalyzer
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