pub enum PurescriptElementType {
Show 111 variants
Whitespace,
Newline,
Comment,
Ado,
Case,
Class,
Data,
Derive,
Do,
Else,
False,
Forall,
Foreign,
If,
Import,
In,
Infix,
Infixl,
Infixr,
Instance,
Let,
Module,
Newtype,
Of,
Then,
True,
Type,
Where,
Arrow,
FatArrow,
Backslash,
Pipe,
Equal,
ColonColon,
Dot,
DotDot,
Plus,
Minus,
Star,
Slash,
Percent,
Caret,
EqualEqual,
NotEqual,
Less,
Greater,
LessEqual,
GreaterEqual,
And,
Or,
Not,
LeftParen,
RightParen,
LeftBracket,
RightBracket,
LeftBrace,
RightBrace,
Comma,
Semicolon,
Colon,
Dollar,
Append,
LeftArrow,
Underscore,
Identifier,
Constructor,
Operator,
StringLiteral,
IntLiteral,
NumberLiteral,
CharLiteral,
ModuleDeclaration,
ImportDeclaration,
DataDeclaration,
NewtypeDeclaration,
TypeAliasDeclaration,
ClassDeclaration,
InstanceDeclaration,
ForeignImportDeclaration,
TypeSignature,
ValueDeclaration,
Pattern,
Expression,
LiteralExpression,
IdentifierExpression,
PrefixExpression,
InfixExpression,
ApplicationExpression,
LambdaExpression,
LetExpression,
CaseExpression,
CaseArm,
DoExpression,
TypeNode,
SourceFile,
Compose,
ComposeFlipped,
Apply,
ApplyFlipped,
Bind,
BindFlipped,
Question,
Exclamation,
At,
Tick,
UpperIdentifier,
QualifiedIdentifier,
BooleanLiteral,
Root,
Eof,
Error,
}Expand description
Element types for PureScript AST.
Variants§
Whitespace
Whitespace.
Newline
Newline.
Comment
Comment.
Ado
ado
Case
case
Class
class
Data
data
Derive
derive
Do
do
Else
else
False
false
Forall
forall
Foreign
foreign
If
if
Import
import
In
in
Infix
infix
Infixl
infixl
Infixr
infixr
Instance
instance
Let
let
Module
module
Newtype
newtype
Of
of
Then
then
True
true
Type
type
Where
where
Arrow
->
FatArrow
=>
Backslash
\
Pipe
|
Equal
=
ColonColon
::
Dot
.
DotDot
..
Plus
+
Minus
-
Star
*
Slash
/
Percent
%
Caret
^
EqualEqual
==
NotEqual
/=
Less
<
Greater
>
LessEqual
<=
GreaterEqual
>=
And
&&
Or
||
Not
!
LeftParen
(
RightParen
)
LeftBracket
[
RightBracket
]
LeftBrace
{
RightBrace
}
Comma
,
Semicolon
;
Colon
:
Dollar
$
Append
<>
LeftArrow
<-
Underscore
_
Identifier
Identifier.
Constructor
Constructor.
Operator
Operator.
StringLiteral
String literal.
IntLiteral
Integer literal.
NumberLiteral
Float literal.
CharLiteral
Char literal.
ModuleDeclaration
A module declaration.
ImportDeclaration
An import declaration.
DataDeclaration
A data declaration.
NewtypeDeclaration
A newtype declaration.
TypeAliasDeclaration
A type alias declaration.
ClassDeclaration
A class declaration.
InstanceDeclaration
An instance declaration.
ForeignImportDeclaration
A foreign import declaration.
TypeSignature
A type signature.
ValueDeclaration
A value declaration.
Pattern
A pattern.
Expression
An expression.
LiteralExpression
A literal expression.
IdentifierExpression
An identifier expression.
PrefixExpression
A prefix expression.
InfixExpression
An infix expression.
ApplicationExpression
A function application.
LambdaExpression
A lambda expression.
LetExpression
A let expression.
CaseExpression
A case expression.
CaseArm
A case arm.
DoExpression
A do expression.
TypeNode
A type.
SourceFile
Source file node.
Compose
<<<
ComposeFlipped
>>>
Apply
$
ApplyFlipped
#
Bind
>>=
BindFlipped
=<<
Question
?
Exclamation
!
At
@
Tick
Backtick
UpperIdentifier
Upper case identifier
QualifiedIdentifier
Qualified identifier
BooleanLiteral
Boolean literal
Root
Root node
Eof
End of file
Error
Error node.
Trait Implementations§
Source§impl Clone for PurescriptElementType
impl Clone for PurescriptElementType
Source§fn clone(&self) -> PurescriptElementType
fn clone(&self) -> PurescriptElementType
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreimpl Copy for PurescriptElementType
Source§impl Debug for PurescriptElementType
impl Debug for PurescriptElementType
Source§impl<'de> Deserialize<'de> for PurescriptElementType
impl<'de> Deserialize<'de> for PurescriptElementType
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 PurescriptElementType
impl ElementType for PurescriptElementType
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
impl Eq for PurescriptElementType
Source§impl From<PurescriptElementType> for PurescriptTokenType
impl From<PurescriptElementType> for PurescriptTokenType
Source§fn from(element: PurescriptElementType) -> Self
fn from(element: PurescriptElementType) -> Self
Source§impl From<PurescriptTokenType> for PurescriptElementType
impl From<PurescriptTokenType> for PurescriptElementType
Source§fn from(token: PurescriptTokenType) -> Self
fn from(token: PurescriptTokenType) -> Self
Source§impl Hash for PurescriptElementType
impl Hash for PurescriptElementType
Source§impl PartialEq for PurescriptElementType
impl PartialEq for PurescriptElementType
Source§fn eq(&self, other: &PurescriptElementType) -> bool
fn eq(&self, other: &PurescriptElementType) -> bool
self and other values to be equal, and is used by ==.