[][src]Enum sixtyfps_compilerlib::parser::SyntaxKind

#[repr(u16)]pub enum SyntaxKind {
    Error,
    Eof,
    Whitespace,
    Comment,
    StringLiteral,
    NumberLiteral,
    ColorLiteral,
    Identifier,
    DoubleArrow,
    PlusEqual,
    MinusEqual,
    StarEqual,
    DivEqual,
    LessEqual,
    GreaterEqual,
    EqualEqual,
    NotEqual,
    ColonEqual,
    FatArrow,
    OrOr,
    AndAnd,
    LBrace,
    RBrace,
    LParent,
    RParent,
    LAngle,
    RAngle,
    LBracket,
    RBracket,
    Plus,
    Minus,
    Star,
    Div,
    Equal,
    Colon,
    Comma,
    Semicolon,
    Bang,
    Dot,
    Question,
    Dollar,
    Document,
    Component,
    SubElement,
    Element,
    RepeatedElement,
    RepeatedIndex,
    ConditionalElement,
    SignalDeclaration,
    SignalConnection,
    PropertyDeclaration,
    PropertyAnimation,
    QualifiedName,
    DeclaredIdentifier,
    ChildrenPlaceholder,
    Binding,
    TwoWayBinding,
    BindingExpression,
    CodeBlock,
    Expression,
    BangExpression,
    FunctionCallExpression,
    SelfAssignment,
    ConditionalExpression,
    BinaryExpression,
    UnaryOpExpression,
    Array,
    ObjectLiteral,
    ObjectMember,
    States,
    State,
    StatePropertyChange,
    Transitions,
    Transition,
    ExportsList,
    ExportSpecifier,
    ExportIdentifier,
    ExportName,
    ImportSpecifier,
    ImportIdentifierList,
    ImportIdentifier,
    ExternalName,
    InternalName,
    Type,
    ObjectType,
    ObjectTypeMember,
    ArrayType,
}

Variants

Error
Eof
Whitespace

Token

Comment

Token

StringLiteral

Token

NumberLiteral

Token

ColorLiteral

Token

Identifier

Token

DoubleArrow

Token

PlusEqual

Token

MinusEqual

Token

StarEqual

Token

DivEqual

Token

LessEqual

Token

GreaterEqual

Token

EqualEqual

Token

NotEqual

Token

ColonEqual

Token

FatArrow

Token

OrOr

Token

AndAnd

Token

LBrace

Token

RBrace

Token

LParent

Token

RParent

Token

LAngle

Token

RAngle

Token

LBracket

Token

RBracket

Token

Plus

Token

Minus

Token

Star

Token

Div

Token

Equal

Token

Colon

Token

Comma

Token

Semicolon

Token

Bang

Token

Dot

Token

Question

Token

Dollar

Token

Document
Component
SubElement

Note: This is in fact the same as Component as far as the parser is concerned

Element
RepeatedElement
RepeatedIndex
ConditionalElement
SignalDeclaration
SignalConnection
PropertyDeclaration

Declaration of a propery.

PropertyAnimation

QualifiedName are the properties name

QualifiedName

wraps Identifiers, like Rectangle or SomeModule.SomeType

DeclaredIdentifier

Wraps single identifier (to disambiguate when there are other identifier in the production)

ChildrenPlaceholder
Binding
TwoWayBinding

xxx <=> something

BindingExpression

the right-hand-side of a binding

CodeBlock
Expression
BangExpression

foo!bar

FunctionCallExpression

expression()

SelfAssignment

expression += expression

ConditionalExpression

condition ? first : second

BinaryExpression

expr + expr

UnaryOpExpression

- expr

Array

[ ... ]

ObjectLiteral

{ foo: bar }

ObjectMember

foo: bar inside an ObjectLiteral

States

states: [...]

State

The DeclaredIdentifier is the state name. The Expression, if any, is the condition.

StatePropertyChange

binding within a state

Transitions

transitions: [...]

Transition

There is an idientfier "to" or "out", the DeclaredIdentifier is the state name

ExportsList

Export a set of declared components by name

ExportSpecifier

Declare the first identifier to be exported, either under its name or instead under the name of the second identifier.

ExportIdentifier
ExportName
ImportSpecifier

import { foo, bar, baz } from "blah"; The import uri is stored as string literal.

ImportIdentifierList
ImportIdentifier

{ foo as bar } or just { foo }

ExternalName
InternalName
Type

The representation of a type

ObjectType

{foo: string, bar: string}

ObjectTypeMember

foo: type inside an ObjectType

ArrayType

[ type ]

Trait Implementations

impl Clone for SyntaxKind[src]

impl Copy for SyntaxKind[src]

impl Debug for SyntaxKind[src]

impl Eq for SyntaxKind[src]

impl From<SyntaxKind> for u16[src]

impl From<SyntaxKind> for SyntaxKind[src]

impl PartialEq<SyntaxKind> for SyntaxKind[src]

impl StructuralEq for SyntaxKind[src]

impl StructuralPartialEq for SyntaxKind[src]

impl TryFrom<u16> for SyntaxKind[src]

type Error = TryFromPrimitiveError<Self>

The type returned in the event of a conversion error.

impl TryFromPrimitive for SyntaxKind[src]

type Primitive = u16

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.