pub enum DartElementType {
Show 135 variants
Root,
ClassDeclaration,
FunctionDeclaration,
Whitespace,
Newline,
Identifier,
IntegerLiteral,
DoubleLiteral,
StringLiteral,
BooleanLiteral,
NullLiteral,
Abstract,
As,
Assert,
Async,
Await,
Break,
Case,
Catch,
Class,
Const,
Continue,
Covariant,
Default,
Deferred,
Do,
Dynamic,
Else,
Enum,
Export,
Extends,
Extension,
External,
Factory,
False,
Final,
Finally,
For,
Function,
Get,
Hide,
If,
Implements,
Import,
In,
Interface,
Int,
Is,
Late,
Library,
Mixin,
New,
Null,
On,
Operator,
Part,
Required,
Rethrow,
Return,
Set,
Show,
Static,
Super,
Switch,
Sync,
This,
Throw,
True,
Try,
Typedef,
Var,
Void,
While,
With,
Yield,
Plus,
Minus,
Star,
Slash,
Percent,
TildeSlash,
Equal,
EqualEqual,
BangEqual,
Less,
Greater,
LessEqual,
GreaterEqual,
LeftShift,
RightShift,
Ampersand,
Pipe,
Caret,
Tilde,
Bang,
AmpersandAmpersand,
PipePipe,
Question,
QuestionQuestion,
PlusPlus,
MinusMinus,
PlusEqual,
MinusEqual,
StarEqual,
SlashEqual,
PercentEqual,
TildeSlashEqual,
LeftShiftEqual,
RightShiftEqual,
AmpersandEqual,
PipeEqual,
CaretEqual,
QuestionQuestionEqual,
Arrow,
Dot,
DotDot,
DotDotDot,
QuestionDot,
LeftParen,
RightParen,
LeftBracket,
RightBracket,
LeftBrace,
RightBrace,
Semicolon,
Comma,
Colon,
At,
Hash,
LineComment,
BlockComment,
DocComment,
Error,
Eof,
VariableDeclaration,
}Expand description
Element types for the Dart language.
Variants§
Root
Root element.
ClassDeclaration
Class declaration.
FunctionDeclaration
Function declaration.
Whitespace
Whitespace.
Newline
Newline.
Identifier
Identifier token.
IntegerLiteral
Integer literal token.
DoubleLiteral
Double literal token.
StringLiteral
String literal token.
BooleanLiteral
Boolean literal token.
NullLiteral
Null literal token.
Abstract
abstract keyword.
As
as keyword.
Assert
assert keyword.
Async
async keyword.
Await
await keyword.
Break
break keyword.
Case
case keyword.
Catch
catch keyword.
Class
class keyword.
Const
const keyword.
Continue
continue keyword.
Covariant
covariant keyword.
Default
default keyword.
Deferred
deferred keyword.
Do
do keyword.
Dynamic
dynamic keyword.
Else
else keyword.
Enum
enum keyword.
Export
export keyword.
Extends
extends keyword.
Extension
extension keyword.
External
external keyword.
Factory
factory keyword.
False
false keyword.
Final
final keyword.
Finally
finally keyword.
For
for keyword.
Function
function keyword.
Get
get keyword.
Hide
hide keyword.
If
if keyword.
Implements
implements keyword.
Import
import keyword.
In
in keyword.
Interface
interface keyword.
Int
int keyword.
Is
is keyword.
Late
late keyword.
Library
library keyword.
Mixin
mixin keyword.
New
new keyword.
Null
null keyword.
On
on keyword.
Operator
operator keyword.
Part
part keyword.
Required
required keyword.
Rethrow
rethrow keyword.
Return
return keyword.
Set
set keyword.
Show
show keyword.
Static
static keyword.
Super
super keyword.
Switch
switch keyword.
Sync
sync keyword.
This
this keyword.
Throw
throw keyword.
True
true keyword.
Try
try keyword.
Typedef
typedef keyword.
Var
var keyword.
Void
void keyword.
While
while keyword.
With
with keyword.
Yield
yield keyword.
Plus
Plus operator +.
Minus
Minus operator -.
Star
Star operator *.
Slash
Slash operator /.
Percent
Percent operator %.
TildeSlash
Tilde-slash operator ~/.
Equal
Equal operator =.
EqualEqual
Equality operator ==.
BangEqual
Inequality operator !=.
Less
Less-than operator <.
Greater
Greater-than operator >.
LessEqual
Less-than-or-equal operator <=.
GreaterEqual
Greater-than-or-equal operator >=.
LeftShift
Left shift operator <<.
RightShift
Right shift operator >>.
Ampersand
Bitwise AND operator &.
Pipe
Bitwise OR operator |.
Caret
Bitwise XOR operator ^.
Tilde
Bitwise NOT operator ~.
Bang
Logical NOT operator !.
AmpersandAmpersand
Logical AND operator &&.
PipePipe
Logical OR operator ||.
Question
Question mark operator ?.
QuestionQuestion
Null-aware operator ??.
PlusPlus
Increment operator ++.
MinusMinus
Decrement operator --.
PlusEqual
Addition assignment operator +=.
MinusEqual
Subtraction assignment operator -=.
StarEqual
Multiplication assignment operator *=.
SlashEqual
Division assignment operator /=.
PercentEqual
Modulo assignment operator %=.
TildeSlashEqual
Integer division assignment operator ~/=.
LeftShiftEqual
Left shift assignment operator <<=.
RightShiftEqual
Right shift assignment operator >>=.
AmpersandEqual
Bitwise AND assignment operator &=.
PipeEqual
Bitwise OR assignment operator |=.
CaretEqual
Bitwise XOR assignment operator ^=.
QuestionQuestionEqual
Null-aware assignment operator ??=.
Arrow
Arrow operator =>.
Dot
Dot operator ..
DotDot
Cascade operator ...
DotDotDot
Spread operator ....
QuestionDot
Null-aware access operator ?..
LeftParen
Left parenthesis (.
RightParen
Right parenthesis ).
LeftBracket
Left bracket [.
RightBracket
Right bracket ].
LeftBrace
Left brace {.
RightBrace
Right brace }.
Semicolon
Semicolon ;.
Comma
Comma ,.
Colon
Colon :.
At
At symbol @.
Hash
Hash symbol #.
LineComment
Line comment.
BlockComment
Block comment.
DocComment
Documentation comment.
Error
Error token.
Eof
End of file token.
VariableDeclaration
Variable declaration.
Trait Implementations§
Source§impl Clone for DartElementType
impl Clone for DartElementType
Source§fn clone(&self) -> DartElementType
fn clone(&self) -> DartElementType
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for DartElementType
impl Debug for DartElementType
Source§impl<'de> Deserialize<'de> for DartElementType
impl<'de> Deserialize<'de> for DartElementType
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>,
Source§impl ElementType for DartElementType
Implementation of ElementType trait for DartElementType.
impl ElementType for DartElementType
Implementation of ElementType trait for DartElementType.
Source§type Role = UniversalElementRole
type Role = UniversalElementRole
Source§fn is_role(&self, role: Self::Role) -> bool
fn is_role(&self, role: Self::Role) -> bool
Source§fn is_universal(&self, role: UniversalElementRole) -> bool
fn is_universal(&self, role: UniversalElementRole) -> bool
Source§impl From<DartTokenType> for DartElementType
Converts a DartTokenType to a DartElementType.
impl From<DartTokenType> for DartElementType
Converts a DartTokenType to a DartElementType.
Source§fn from(token: DartTokenType) -> Self
fn from(token: DartTokenType) -> Self
Converts the given token type to its corresponding element type.