pub enum SemanticTokenType {
Show 21 variants
Variable,
VariableDeclaration,
VariableReadonly,
Parameter,
Function,
FunctionDeclaration,
Method,
Class,
Namespace,
Type,
Keyword,
KeywordControl,
Modifier,
Number,
String,
Regex,
Comment,
CommentDoc,
Operator,
Punctuation,
Label,
}Expand description
Semantic analysis types for hover, tokens, and code understanding. Semantic token types for syntax highlighting in the Parse/Complete workflow.
Variants§
Variable
Variable reference (scalar, array, or hash)
VariableDeclaration
Variable declaration site
VariableReadonly
Read-only variable (constant)
Parameter
Function parameter
Function
Function/subroutine reference
FunctionDeclaration
Function/subroutine declaration
Method
Object method call
Class
Class/package name
Namespace
Package namespace
Type
Type annotation (modern Perl)
Keyword
Language keyword (if, while, etc.)
KeywordControl
Control flow keyword (return, next, last)
Modifier
Variable modifier (my, our, local, state)
Number
Numeric literal
String
String literal
Regex
Regular expression
Comment
Regular comment
CommentDoc
Documentation comment (POD)
Operator
Operator (+, -, =~, etc.)
Punctuation
Punctuation marks and delimiters
Label
Code label for goto statements
Trait Implementations§
Source§impl Clone for SemanticTokenType
impl Clone for SemanticTokenType
Source§fn clone(&self) -> SemanticTokenType
fn clone(&self) -> SemanticTokenType
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 SemanticTokenType
impl Debug for SemanticTokenType
Source§impl PartialEq for SemanticTokenType
impl PartialEq for SemanticTokenType
impl Copy for SemanticTokenType
impl Eq for SemanticTokenType
impl StructuralPartialEq for SemanticTokenType
Auto Trait Implementations§
impl Freeze for SemanticTokenType
impl RefUnwindSafe for SemanticTokenType
impl Send for SemanticTokenType
impl Sync for SemanticTokenType
impl Unpin for SemanticTokenType
impl UnsafeUnpin for SemanticTokenType
impl UnwindSafe for SemanticTokenType
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<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
Compare self to
key and return true if they are equal.