pub enum SemanticTokenModifier {
Declaration,
Definition,
Readonly,
Static,
Deprecated,
Abstract,
Async,
Modification,
Documentation,
DefaultLibrary,
}Expand description
Semantic analysis types for hover, tokens, and code understanding. Semantic token modifiers for Analyze/Complete stage highlighting.
Provides additional context about semantic tokens beyond their base type, enabling rich editor highlighting with detailed symbol information.
§LSP Integration
Maps to LSP SemanticTokenModifiers for consistent editor experience
across different LSP clients with full Perl language semantics.
Variants§
Declaration
Symbol is being declared at this location
Definition
Symbol is being defined at this location
Readonly
Symbol is read-only (constant)
Static
Symbol has static storage duration (state variables)
Deprecated
Symbol is deprecated and should not be used
Abstract
Symbol is abstract (method without implementation)
Async
Symbol represents an asynchronous operation
Modification
Symbol is being modified (written to)
Documentation
Symbol is documentation-related (POD)
DefaultLibrary
Symbol is from the Perl standard library
Trait Implementations§
Source§impl Clone for SemanticTokenModifier
impl Clone for SemanticTokenModifier
Source§fn clone(&self) -> SemanticTokenModifier
fn clone(&self) -> SemanticTokenModifier
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for SemanticTokenModifier
impl Debug for SemanticTokenModifier
Source§impl PartialEq for SemanticTokenModifier
impl PartialEq for SemanticTokenModifier
impl Copy for SemanticTokenModifier
impl Eq for SemanticTokenModifier
impl StructuralPartialEq for SemanticTokenModifier
Auto Trait Implementations§
impl Freeze for SemanticTokenModifier
impl RefUnwindSafe for SemanticTokenModifier
impl Send for SemanticTokenModifier
impl Sync for SemanticTokenModifier
impl Unpin for SemanticTokenModifier
impl UnsafeUnpin for SemanticTokenModifier
impl UnwindSafe for SemanticTokenModifier
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key and return true if they are equal.