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<SourceFileData, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<SourceFileData, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl Serialize for SourceFileData
impl Serialize for SourceFileData
Source§fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
Serialize this value into the given Serde serializer. 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
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