pub struct SourceFileData {Show 14 fields
pub statements: NodeList,
pub end_of_file_token: NodeIndex,
pub file_name: String,
pub text: Arc<str>,
pub language_version: u32,
pub language_variant: u32,
pub script_kind: u32,
pub is_declaration_file: bool,
pub has_no_default_lib: bool,
pub comments: Vec<CommentRange>,
pub parent: NodeIndex,
pub id: u32,
pub modifier_flags: u32,
pub transform_flags: u32,
}Expand description
Data for source files
Fields§
§statements: NodeList§end_of_file_token: NodeIndex§file_name: String§text: Arc<str>Source text. Uses custom serialization to handle Arc
language_version: u32§language_variant: u32§script_kind: u32§is_declaration_file: bool§has_no_default_lib: bool§comments: Vec<CommentRange>Cached comment ranges for the entire file (computed once during parsing). This avoids O(N) rescanning on every hover/documentation request.
parent: NodeIndex§id: u32§modifier_flags: u32§transform_flags: u32Trait Implementations§
Source§impl Clone for SourceFileData
impl Clone for SourceFileData
Source§fn clone(&self) -> SourceFileData
fn clone(&self) -> SourceFileData
Returns a duplicate of the value. Read more
1.0.0 · 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 SourceFileData
impl Debug for SourceFileData
Source§impl<'de> Deserialize<'de> for SourceFileData
impl<'de> Deserialize<'de> for SourceFileData
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for SourceFileData
impl RefUnwindSafe for SourceFileData
impl Send for SourceFileData
impl Sync for SourceFileData
impl Unpin for SourceFileData
impl UnsafeUnpin for SourceFileData
impl UnwindSafe for SourceFileData
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