pub struct TokenStaticData {
pub documentation: Option<Documentation<'static>>,
pub hover: Option<HoverResult>,
pub definition: Option<FileRange>,
pub definition_body: Option<FileRange>,
pub references: Vec<ReferenceData>,
pub moniker: Option<MonikerResult>,
pub display_name: Option<String>,
pub signature: Option<String>,
pub kind: SymbolInformationKind,
}Fields§
§documentation: Option<Documentation<'static>>§hover: Option<HoverResult>§definition: Option<FileRange>The position of the token itself.
For example, in fn foo() {} this is the position of foo.
definition_body: Option<FileRange>The position of the entire definition that this token belongs to.
For example, in fn foo() {} this is the position from fn
to the closing brace.
This excludes trivia (whitespace/comments) other than doc comments. This differs from LSP, which includes trivia.
SCIP:
source range of the nearest non-trivial enclosing AST node.
https://github.com/scip-code/scip/blob/20459645420419b3c2a10d6a9f57436abeeb273b/scip.proto#L747-L796
LSP:
range enclosing this symbol not including leading/trailing whitespace but everything else like comments.
references: Vec<ReferenceData>§moniker: Option<MonikerResult>§display_name: Option<String>§signature: Option<String>§kind: SymbolInformationKindTrait Implementations§
Auto Trait Implementations§
impl Freeze for TokenStaticData
impl RefUnwindSafe for TokenStaticData
impl Send for TokenStaticData
impl Sync for TokenStaticData
impl Unpin for TokenStaticData
impl UnsafeUnpin for TokenStaticData
impl UnwindSafe for TokenStaticData
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, R> CollectAndApply<T, R> for T
impl<T, R> CollectAndApply<T, R> for T
§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