pub enum ElixirSyntaxKind {
Show 173 variants
Whitespace,
Newline,
Comment,
Identifier,
Atom,
Variable,
Number,
Float,
String,
Character,
Sigil,
After,
And,
Case,
Catch,
Cond,
Def,
Defp,
Defmodule,
Defstruct,
Defprotocol,
Defimpl,
Defmacro,
Defmacrop,
Do,
Else,
Elsif,
End,
False,
Fn,
If,
In,
Not,
Or,
Receive,
Rescue,
True,
Try,
Unless,
When,
With,
Plus,
Minus,
Star,
Slash,
Equal,
EqualEqual,
NotEqual,
EqualEqualEqual,
NotEqualEqual,
Less,
Greater,
LessEqual,
GreaterEqual,
PlusPlus,
MinusMinus,
StarStar,
Exclamation,
Question,
Ampersand,
At,
Caret,
Tilde,
LeftShift,
RightShift,
MatchOp,
PipeRight,
LeftParen,
RightParen,
LeftBrace,
RightBrace,
LeftBracket,
RightBracket,
Comma,
Semicolon,
Dot,
Colon,
Arrow,
Pipe,
PipePipe,
Hash,
Error,
Eof,
SourceFile,
Module,
Function,
ParameterList,
Parameter,
BlockExpression,
LetStatement,
ExpressionStatement,
IdentifierExpression,
LiteralExpression,
BooleanLiteral,
ParenthesizedExpression,
BinaryExpression,
UnaryExpression,
CallExpression,
FieldExpression,
IndexExpression,
IfExpression,
MatchExpression,
LoopExpression,
WhileExpression,
ForExpression,
BreakExpression,
ContinueExpression,
ReturnExpression,
StructExpression,
TupleExpression,
ArrayExpression,
RangeExpression,
ClosureExpression,
AsyncBlockExpression,
UnsafeBlockExpression,
TryExpression,
AwaitExpression,
MacroCall,
Path,
PathSegment,
GenericArgs,
TypePath,
TupleType,
ArrayType,
SliceType,
ReferenceType,
PointerType,
FunctionType,
TraitObjectType,
ImplTraitType,
InferredType,
NeverType,
Pattern,
IdentifierPattern,
WildcardPattern,
TuplePattern,
StructPattern,
TupleStructPattern,
SlicePattern,
ReferencePattern,
LiteralPattern,
RangePattern,
OrPattern,
RestPattern,
StructDeclaration,
EnumDeclaration,
UnionDeclaration,
TraitDeclaration,
ImplDeclaration,
ModuleDeclaration,
UseDeclaration,
ConstDeclaration,
StaticDeclaration,
TypeAliasDeclaration,
ExternBlock,
ExternFunction,
Attribute,
Visibility,
GenericParams,
GenericParam,
TypeParam,
ConstParam,
LifetimeParam,
WhereClause,
WherePredicate,
ReturnType,
FieldList,
Field,
Variant,
VariantList,
AssociatedItem,
TraitItem,
ImplItem,
}Expand description
Represents all possible syntax kinds in the Elixir programming language.
Variants§
Whitespace
Whitespace characters (spaces, tabs)
Newline
Newline character
Comment
Comment
Identifier
Identifier (variable names, function names, etc.)
Atom
Atom literal
Variable
Variable name
Number
Number literal
Float
Float literal
String
String literal
Character
Character literal
Sigil
Sigil literal
After
after keyword
And
and keyword
Case
case keyword
Catch
catch keyword
Cond
cond keyword
Def
def keyword
Defp
defp keyword (private function)
Defmodule
defmodule keyword
Defstruct
defstruct keyword
Defprotocol
defprotocol keyword
Defimpl
defimpl keyword
Defmacro
defmacro keyword
Defmacrop
defmacrop keyword (private macro)
Do
do keyword
Else
else keyword
Elsif
elsif keyword
End
end keyword
False
false keyword
Fn
fn keyword
If
if keyword
In
in keyword
Not
not keyword
Or
or keyword
Receive
receive keyword
Rescue
rescue keyword
True
true keyword
Try
try keyword
Unless
unless keyword
When
when keyword
With
with keyword
Plus
plus operator (+)
Minus
minus operator (-)
Star
multiplication operator (*)
Slash
division operator (/)
Equal
assignment operator (=)
EqualEqual
equality operator (==)
NotEqual
inequality operator (!=)
EqualEqualEqual
strict equality operator (===)
NotEqualEqual
strict inequality operator (!==)
Less
less than operator (<)
Greater
greater than operator (>)
LessEqual
less than or equal operator (<=)
GreaterEqual
greater than or equal operator (>=)
PlusPlus
concatenation operator (++)
MinusMinus
subtraction operator (–)
StarStar
exponentiation operator (**)
Exclamation
exclamation mark (!)
Question
question mark (?)
Ampersand
ampersand (&)
At
at symbol (@)
Caret
caret (^)
Tilde
tilde (~)
LeftShift
left shift operator (<<)
RightShift
right shift operator (>>)
MatchOp
match operator (=~)
PipeRight
pipe right operator (|>)
LeftParen
RightParen
LeftBrace
RightBrace
LeftBracket
RightBracket
Comma
Semicolon
Dot
Colon
Arrow
Pipe
PipePipe
Hash
Error
Eof
SourceFile
Module
Function
ParameterList
Parameter
BlockExpression
LetStatement
ExpressionStatement
IdentifierExpression
LiteralExpression
BooleanLiteral
ParenthesizedExpression
BinaryExpression
UnaryExpression
CallExpression
FieldExpression
IndexExpression
IfExpression
MatchExpression
LoopExpression
WhileExpression
ForExpression
BreakExpression
ContinueExpression
ReturnExpression
StructExpression
TupleExpression
ArrayExpression
RangeExpression
ClosureExpression
AsyncBlockExpression
UnsafeBlockExpression
TryExpression
AwaitExpression
MacroCall
Path
PathSegment
GenericArgs
TypePath
TupleType
ArrayType
SliceType
ReferenceType
PointerType
FunctionType
TraitObjectType
ImplTraitType
InferredType
NeverType
Pattern
IdentifierPattern
WildcardPattern
TuplePattern
StructPattern
TupleStructPattern
SlicePattern
ReferencePattern
LiteralPattern
RangePattern
OrPattern
RestPattern
StructDeclaration
EnumDeclaration
UnionDeclaration
TraitDeclaration
ImplDeclaration
ModuleDeclaration
UseDeclaration
ConstDeclaration
StaticDeclaration
TypeAliasDeclaration
ExternBlock
ExternFunction
Attribute
Visibility
GenericParams
GenericParam
TypeParam
ConstParam
LifetimeParam
WhereClause
WherePredicate
ReturnType
FieldList
Field
Variant
VariantList
AssociatedItem
TraitItem
ImplItem
Implementations§
Source§impl ElixirSyntaxKind
impl ElixirSyntaxKind
pub fn is_keyword(self) -> bool
Trait Implementations§
Source§impl Clone for ElixirSyntaxKind
impl Clone for ElixirSyntaxKind
Source§fn clone(&self) -> ElixirSyntaxKind
fn clone(&self) -> ElixirSyntaxKind
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more