pub struct ParseContext {
pub repo_id: String,
pub file_path: PathBuf,
pub old_tree: Option<Tree>,
pub content: String,
}Expand description
Parse context for JavaScript/TypeScript files
Fields§
§repo_id: StringRepository ID
file_path: PathBufFile path being parsed
old_tree: Option<Tree>Previous tree for incremental parsing
content: StringFile content
Trait Implementations§
Source§impl Clone for ParseContext
impl Clone for ParseContext
Source§fn clone(&self) -> ParseContext
fn clone(&self) -> ParseContext
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 moreAuto Trait Implementations§
impl Freeze for ParseContext
impl RefUnwindSafe for ParseContext
impl Send for ParseContext
impl Sync for ParseContext
impl Unpin for ParseContext
impl UnwindSafe for ParseContext
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