pub struct FileExtraction {
pub path: PathBuf,
pub lang: LangId,
pub symbols: Vec<Symbol>,
pub imports: Vec<UnresolvedImport>,
pub references: Vec<UnresolvedReference>,
pub diagnostics: Vec<Diagnostic>,
pub ast_node_count: usize,
pub text: Option<Arc<str>>,
}Fields§
§path: PathBuf§lang: LangId§symbols: Vec<Symbol>§imports: Vec<UnresolvedImport>§references: Vec<UnresolvedReference>§diagnostics: Vec<Diagnostic>§ast_node_count: usizeTotal number of tree-sitter AST nodes in the parse tree.
text: Option<Arc<str>>Analyzed source text, retained only when the caller asked for it and the bytes are valid UTF-8. Ranges index these bytes, so a lossy copy would shift every offset; consumers convert positions against this text instead of re-reading the file. Never serialized: shard records carry symbol data, not source.
Implementations§
Trait Implementations§
Source§impl Clone for FileExtraction
impl Clone for FileExtraction
Source§fn clone(&self) -> FileExtraction
fn clone(&self) -> FileExtraction
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for FileExtraction
impl Debug for FileExtraction
Auto Trait Implementations§
impl Freeze for FileExtraction
impl RefUnwindSafe for FileExtraction
impl Send for FileExtraction
impl Sync for FileExtraction
impl Unpin for FileExtraction
impl UnsafeUnpin for FileExtraction
impl UnwindSafe for FileExtraction
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> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§fn in_current_span(self) -> Instrumented<Self> ⓘ
fn in_current_span(self) -> Instrumented<Self> ⓘ
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