struct FileState {
state: Vec<SemanticToken>,
}Fields§
§state: Vec<SemanticToken>Implementations§
source§impl FileState
impl FileState
fn diff(&self, new: &FileState) -> SemanticTokensFullDeltaResult
fn color_section( origin: Node<'_>, root: &Arc<RootGraph>, source: &Rope, file: &AstDocument, utf16_line: &HashSet<usize>, token: &mut Vec<AbsToken>, )
sourcefn create_path(node: Node<'_>, source: &Rope) -> Option<Path>
fn create_path(node: Node<'_>, source: &Rope) -> Option<Path>
if node is a path create a Path
sourcefn handle_path(root: &Arc<RootGraph>, file: &AstDocument, path: Path) -> bool
fn handle_path(root: &Arc<RootGraph>, file: &AstDocument, path: Path) -> bool
if it is a attribute path return true otherwise false
fn new(origin: &Url, tree: Tree, source: &Rope, root: &Arc<RootGraph>) -> Self
Auto Trait Implementations§
impl Freeze for FileState
impl RefUnwindSafe for FileState
impl Send for FileState
impl Sync for FileState
impl Unpin for FileState
impl UnwindSafe for FileState
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
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§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