#[repr(u16)]pub enum ElixirElementType {
Show 76 variants
Root = 0,
Whitespace = 1,
Newline = 2,
Comment = 3,
Identifier = 4,
Atom = 5,
Variable = 6,
Number = 7,
Float = 8,
String = 9,
Character = 10,
Sigil = 11,
After = 12,
And = 13,
Case = 14,
Catch = 15,
Cond = 16,
Def = 17,
Defp = 18,
Defmodule = 19,
Defstruct = 20,
Defprotocol = 21,
Defimpl = 22,
Defmacro = 23,
Defmacrop = 24,
Do = 25,
Else = 26,
Elsif = 27,
End = 28,
False = 29,
Fn = 30,
If = 31,
In = 32,
Not = 33,
Or = 34,
Receive = 35,
Rescue = 36,
True = 37,
Try = 38,
Unless = 39,
When = 40,
With = 41,
Plus = 42,
Minus = 43,
Mul = 44,
Div = 45,
Dot = 46,
Comma = 47,
Semicolon = 48,
Colon = 49,
LeftParen = 50,
RightParen = 51,
LeftBrace = 52,
RightBrace = 53,
LeftBracket = 54,
RightBracket = 55,
Arrow = 56,
Pipe = 57,
ModuleDefinition = 58,
FunctionDefinition = 59,
CallExpression = 60,
BinaryExpression = 61,
UnaryExpression = 62,
LiteralExpression = 63,
IdentifierExpression = 64,
AttributeExpression = 65,
AccessExpression = 66,
ListLiteral = 67,
TupleLiteral = 68,
MapLiteral = 69,
KeywordLiteral = 70,
BlockExpression = 71,
MatchExpression = 72,
At = 73,
Percent = 74,
Error = 75,
}Expand description
Element types for Elixir AST.
Variants§
Root = 0
Root element.
Whitespace = 1
Whitespace.
Newline = 2
Newline.
Comment = 3
Comment.
Identifier = 4
Identifier.
Atom = 5
Atom.
Variable = 6
Variable.
Number = 7
Number.
Float = 8
Float.
String = 9
String.
Character = 10
Character.
Sigil = 11
Sigil.
After = 12
after
And = 13
and
Case = 14
case
Catch = 15
catch
Cond = 16
cond
Def = 17
def
Defp = 18
defp
Defmodule = 19
defmodule
Defstruct = 20
defstruct
Defprotocol = 21
defprotocol
Defimpl = 22
defimpl
Defmacro = 23
defmacro
Defmacrop = 24
defmacrop
Do = 25
do
Else = 26
else
Elsif = 27
elsif
End = 28
end
False = 29
false
Fn = 30
fn
If = 31
if
In = 32
in
Not = 33
not
Or = 34
or
Receive = 35
receive
Rescue = 36
rescue
True = 37
true
Try = 38
try
Unless = 39
unless
When = 40
when
With = 41
with
Plus = 42
+
Minus = 43
-
Mul = 44
*
Div = 45
/
Dot = 46
.
Comma = 47
,
Semicolon = 48
;
Colon = 49
:
LeftParen = 50
(
RightParen = 51
)
LeftBrace = 52
{
RightBrace = 53
}
LeftBracket = 54
[
RightBracket = 55
]
Arrow = 56
->
Pipe = 57
|
ModuleDefinition = 58
Module definition.
FunctionDefinition = 59
Function definition.
CallExpression = 60
Call expression.
BinaryExpression = 61
Binary expression.
UnaryExpression = 62
Unary expression.
LiteralExpression = 63
Literal expression.
IdentifierExpression = 64
Identifier expression.
AttributeExpression = 65
Attribute expression.
AccessExpression = 66
Access expression.
ListLiteral = 67
List literal.
TupleLiteral = 68
Tuple literal.
MapLiteral = 69
Map literal.
KeywordLiteral = 70
Keyword literal.
BlockExpression = 71
Block expression.
MatchExpression = 72
Match expression.
At = 73
@
Percent = 74
%
Error = 75
Error element.
Trait Implementations§
Source§impl Clone for ElixirElementType
impl Clone for ElixirElementType
Source§fn clone(&self) -> ElixirElementType
fn clone(&self) -> ElixirElementType
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 ElixirElementType
impl Debug for ElixirElementType
Source§impl<'de> Deserialize<'de> for ElixirElementType
impl<'de> Deserialize<'de> for ElixirElementType
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
Source§impl ElementType for ElixirElementType
impl ElementType for ElixirElementType
Source§type Role = UniversalElementRole
type Role = UniversalElementRole
The associated role type for this element kind.
Source§fn is_role(&self, role: Self::Role) -> bool
fn is_role(&self, role: Self::Role) -> bool
Returns true if this element matches the specified language-specific role.
Source§fn is_universal(&self, role: UniversalElementRole) -> bool
fn is_universal(&self, role: UniversalElementRole) -> bool
Returns true if this element matches the specified universal role.
Source§impl From<ElixirTokenType> for ElixirElementType
impl From<ElixirTokenType> for ElixirElementType
Source§fn from(t: ElixirTokenType) -> Self
fn from(t: ElixirTokenType) -> Self
Converts to this type from the input type.
Source§impl Hash for ElixirElementType
impl Hash for ElixirElementType
Source§impl PartialEq for ElixirElementType
impl PartialEq for ElixirElementType
Source§impl Serialize for ElixirElementType
impl Serialize for ElixirElementType
impl Copy for ElixirElementType
impl Eq for ElixirElementType
impl StructuralPartialEq for ElixirElementType
Auto Trait Implementations§
impl Freeze for ElixirElementType
impl RefUnwindSafe for ElixirElementType
impl Send for ElixirElementType
impl Sync for ElixirElementType
impl Unpin for ElixirElementType
impl UnsafeUnpin for ElixirElementType
impl UnwindSafe for ElixirElementType
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