pub enum VariableDeclarationKeyword {
Const(Keyword<Const>),
Let(Keyword<Let>),
}Variants§
Implementations§
source§impl VariableDeclarationKeyword
impl VariableDeclarationKeyword
pub fn is_token_variable_keyword(token: &TSXToken) -> bool
pub fn as_str(&self) -> &str
pub fn get_position(&self) -> &Span
Trait Implementations§
source§impl Clone for VariableDeclarationKeyword
impl Clone for VariableDeclarationKeyword
source§fn clone(&self) -> VariableDeclarationKeyword
fn clone(&self) -> VariableDeclarationKeyword
Returns a copy 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 VariableDeclarationKeyword
impl Debug for VariableDeclarationKeyword
source§impl PartialEq<VariableDeclarationKeyword> for VariableDeclarationKeyword
impl PartialEq<VariableDeclarationKeyword> for VariableDeclarationKeyword
source§fn eq(&self, other: &VariableDeclarationKeyword) -> bool
fn eq(&self, other: &VariableDeclarationKeyword) -> bool
This method tests for
self and other values to be equal, and is used
by ==.source§impl SelfRustTokenize for VariableDeclarationKeyword
impl SelfRustTokenize for VariableDeclarationKeyword
fn append_to_token_stream(&self, token_stream: &mut TokenStream)
source§fn to_tokens(&self) -> TokenStream
fn to_tokens(&self) -> TokenStream
Returns the tokens used to construct self