Enum sixtyfps_compilerlib::parser::SyntaxKind [−][src]
#[repr(u16)] pub enum SyntaxKind {}Show variants
Error, Eof, Whitespace, Comment, StringLiteral, NumberLiteral, ColorLiteral, Identifier, DoubleArrow, PlusEqual, MinusEqual, StarEqual, DivEqual, LessEqual, GreaterEqual, EqualEqual, NotEqual, ColonEqual, FatArrow, Arrow, OrOr, AndAnd, LBrace, RBrace, LParent, RParent, LAngle, RAngle, LBracket, RBracket, Plus, Minus, Star, Div, Equal, Colon, Comma, Semicolon, Bang, Dot, Question, Dollar, At, Document, Component, SubElement, Element, RepeatedElement, RepeatedIndex, ConditionalElement, CallbackDeclaration, ReturnType, CallbackConnection, PropertyDeclaration, PropertyAnimation, QualifiedName, DeclaredIdentifier, ChildrenPlaceholder, Binding, TwoWayBinding, BindingExpression, CodeBlock, ReturnStatement, Expression, StringTemplate, AtImageUrl, AtLinearGradient, 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, StructDeclaration,
Variants
Token
Token
Token
Token
Token
Token
Token
Token
Token
Token
Token
Token
Token
Token
Token
Token
Token
Token
Token
Token
Token
Token
Token
Token
Token
Token
Token
Token
Token
Token
Token
Token
Token
Token
Token
Token
Token
Token
Token
Token
Token
DeclaredIdentifier := Element { ... }
id := Element { ... }
-> type
(but without the ->)
Declaration of a propery.
QualifiedName are the properties name
wraps Identifiers, like Rectangle
or SomeModule.SomeType
Wraps single identifier (to disambiguate when there are other identifier in the production)
xxx <=> something
the right-hand-side of a binding
Concetenate the Expressions to make a string (usually expended from a template string)
@image-url("foo.png")
@linear-gradient(...)
expression()
expression += expression
condition ? first : second
expr + expr
- expr
[ ... ]
{ foo: bar }
foo: bar
inside an ObjectLiteral
states: [...]
The DeclaredIdentifier is the state name. The Expression, if any, is the condition.
binding within a state
transitions: [...]
There is an idientfier “in” or “out”, the DeclaredIdentifier is the state name
Export a set of declared components by name
Declare the first identifier to be exported, either under its name or instead under the name of the second identifier.
import { foo, bar, baz } from “blah”; The import uri is stored as string literal.
{ foo as bar } or just { foo }
The representation of a type
{foo: string, bar: string}
foo: type
inside an ObjectType
[ type ]
`struct Foo := { … }
Trait Implementations
impl Clone for SyntaxKind
[src]
impl Clone for SyntaxKind
[src]fn clone(&self) -> SyntaxKind
[src]
pub fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl Copy for SyntaxKind
[src]
impl Copy for SyntaxKind
[src]impl Eq for SyntaxKind
[src]
impl Eq for SyntaxKind
[src]impl PartialEq<SyntaxKind> for SyntaxKind
[src]
impl PartialEq<SyntaxKind> for SyntaxKind
[src]impl StructuralEq for SyntaxKind
[src]
impl StructuralEq for SyntaxKind
[src]impl StructuralPartialEq for SyntaxKind
[src]
impl StructuralPartialEq for SyntaxKind
[src]impl TryFrom<u16> for SyntaxKind
[src]
impl TryFrom<u16> for SyntaxKind
[src]type Error = TryFromPrimitiveError<Self>
The type returned in the event of a conversion error.
fn try_from(number: u16) -> Result<Self, TryFromPrimitiveError<Self>>
[src]
impl TryFromPrimitive for SyntaxKind
[src]
impl TryFromPrimitive for SyntaxKind
[src]type Primitive = u16
const NAME: &'static str
[src]
fn try_from_primitive(
number: Self::Primitive
) -> Result<Self, TryFromPrimitiveError<Self>>
[src]
number: Self::Primitive
) -> Result<Self, TryFromPrimitiveError<Self>>
Auto Trait Implementations
impl RefUnwindSafe for SyntaxKind
impl RefUnwindSafe for SyntaxKind
impl Send for SyntaxKind
impl Send for SyntaxKind
impl Sync for SyntaxKind
impl Sync for SyntaxKind
impl Unpin for SyntaxKind
impl Unpin for SyntaxKind
impl UnwindSafe for SyntaxKind
impl UnwindSafe for SyntaxKind