pub struct FileAnalysis {
pub path: CompactString,
pub content_hash: u64,
pub language: Option<CompactString>,
pub symbols: Vec<Symbol>,
pub imports: Vec<RawImport>,
pub has_opaque_imports: bool,
}Expand description
Symbols and imports extracted from one source file.
Fields§
§path: CompactStringRepository-relative source path.
content_hash: u64Content hash supplied by the caller.
language: Option<CompactString>Resolved language name, or None when the path is unsupported.
symbols: Vec<Symbol>Symbols in source order.
imports: Vec<RawImport>Literal imports in source order.
has_opaque_imports: boolWhether at least one dynamic or CommonJS import had a non-literal argument.
Trait Implementations§
Source§impl Clone for FileAnalysis
impl Clone for FileAnalysis
Source§fn clone(&self) -> FileAnalysis
fn clone(&self) -> FileAnalysis
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 FileAnalysis
impl Debug for FileAnalysis
impl Eq for FileAnalysis
Source§impl PartialEq for FileAnalysis
impl PartialEq for FileAnalysis
impl StructuralPartialEq for FileAnalysis
Auto Trait Implementations§
impl Freeze for FileAnalysis
impl RefUnwindSafe for FileAnalysis
impl Send for FileAnalysis
impl Sync for FileAnalysis
impl Unpin for FileAnalysis
impl UnsafeUnpin for FileAnalysis
impl UnwindSafe for FileAnalysis
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<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.