pub enum SemanticTokenType {
Show 15 variants
Function,
Method,
Variable,
Parameter,
Property,
Class,
Enum,
EnumMember,
Type,
Decorator,
Number,
String,
Comment,
Signal,
Constant,
}Expand description
The semantic role of a SemanticToken — a GDScript-named subset of the LSP standard token
types. Richer than a TextMate grammar: it distinguishes a type from a variable, a parameter from
a local, a member from a global, a declaration from a use.
Variants§
Function
A free function / a function call.
Method
A method (a function that is a class member).
Variable
A local variable / var.
Parameter
A function parameter.
Property
A member field accessed via ..
Class
A class / class_name.
Enum
An enum.
EnumMember
An enum variant.
Type
A type name (in a : T, as T, is T, extends T, -> T position).
Decorator
An annotation, e.g. @export.
Number
A numeric literal.
String
A string literal (incl. StringName / NodePath).
Comment
A comment.
Signal
A signal.
Constant
A const.
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 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for SemanticTokenType
Source§impl Debug for SemanticTokenType
impl Debug for SemanticTokenType
Source§impl<'de> Deserialize<'de> for SemanticTokenType
impl<'de> Deserialize<'de> for SemanticTokenType
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Eq for SemanticTokenType
Source§impl PartialEq for SemanticTokenType
impl PartialEq for SemanticTokenType
Source§fn eq(&self, other: &SemanticTokenType) -> bool
fn eq(&self, other: &SemanticTokenType) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for SemanticTokenType
impl Serialize 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