pub enum Expression {
Show 45 variants Empty, VariadicPlaceholder, ErrorSuppress { expr: Box<Self>, }, Increment { value: Box<Self>, }, Decrement { value: Box<Self>, }, Int { i: i64, }, Float { f: f64, }, Variable { name: ByteString, }, DynamicVariable { name: Box<Self>, }, Infix { lhs: Box<Self>, op: InfixOp, rhs: Box<Self>, }, Call { target: Box<Self>, args: Vec<Arg>, }, Identifier { name: ByteString, }, Array { items: Vec<ArrayItem>, }, Closure { params: Vec<Param>, uses: Vec<ClosureUse>, return_type: Option<Type>, body: Block, static: bool, by_ref: bool, }, ArrowFunction { params: Vec<Param>, return_type: Option<Type>, expr: Box<Self>, by_ref: bool, static: bool, }, New { target: Box<Self>, args: Vec<Arg>, }, ConstantString { value: ByteString, }, InterpolatedString { parts: Vec<StringPart>, }, PropertyFetch { target: Box<Self>, property: Box<Self>, }, NullsafePropertyFetch { target: Box<Self>, property: Box<Self>, }, NullsafeMethodCall { target: Box<Self>, method: Box<Self>, args: Vec<Arg>, }, StaticPropertyFetch { target: Box<Self>, property: Box<Self>, }, ConstFetch { target: Box<Self>, constant: Identifier, }, MethodCall { target: Box<Self>, method: Box<Self>, args: Vec<Arg>, }, StaticMethodCall { target: Box<Self>, method: Box<Self>, args: Vec<Arg>, }, AnonymousClass { extends: Option<Identifier>, implements: Vec<Identifier>, body: Block, }, Bool { value: bool, }, ArrayIndex { array: Box<Self>, index: Option<Box<Self>>, }, Null, BooleanNot { value: Box<Self>, }, MagicConst { constant: MagicConst, }, Ternary { condition: Box<Self>, then: Option<Box<Self>>, else: Box<Self>, }, Coalesce { lhs: Box<Self>, rhs: Box<Self>, }, Clone { target: Box<Self>, }, Match { condition: Box<Self>, arms: Vec<MatchArm>, }, Throw { value: Box<Expression>, }, Yield { key: Option<Box<Self>>, value: Option<Box<Self>>, }, YieldFrom { value: Box<Self>, }, Negate { value: Box<Self>, }, UnaryPlus { value: Box<Self>, }, BitwiseNot { value: Box<Self>, }, PreDecrement { value: Box<Self>, }, PreIncrement { value: Box<Self>, }, Print { value: Box<Self>, }, Cast { kind: CastKind, value: Box<Self>, },
}

Variants§

§

Empty

§

VariadicPlaceholder

§

ErrorSuppress

Fields

§expr: Box<Self>
§

Increment

Fields

§value: Box<Self>
§

Decrement

Fields

§value: Box<Self>
§

Int

Fields

§i: i64
§

Float

Fields

§f: f64
§

Variable

Fields

§

DynamicVariable

Fields

§name: Box<Self>
§

Infix

Fields

§lhs: Box<Self>
§rhs: Box<Self>
§

Call

Fields

§target: Box<Self>
§args: Vec<Arg>
§

Identifier

Fields

§

Array

Fields

§items: Vec<ArrayItem>
§

Closure

Fields

§params: Vec<Param>
§return_type: Option<Type>
§body: Block
§static: bool
§by_ref: bool
§

ArrowFunction

Fields

§params: Vec<Param>
§return_type: Option<Type>
§expr: Box<Self>
§by_ref: bool
§static: bool
§

New

Fields

§target: Box<Self>
§args: Vec<Arg>
§

ConstantString

Fields

§value: ByteString
§

InterpolatedString

Fields

§parts: Vec<StringPart>
§

PropertyFetch

Fields

§target: Box<Self>
§property: Box<Self>
§

NullsafePropertyFetch

Fields

§target: Box<Self>
§property: Box<Self>
§

NullsafeMethodCall

Fields

§target: Box<Self>
§method: Box<Self>
§args: Vec<Arg>
§

StaticPropertyFetch

Fields

§target: Box<Self>
§property: Box<Self>
§

ConstFetch

Fields

§target: Box<Self>
§constant: Identifier
§

MethodCall

Fields

§target: Box<Self>
§method: Box<Self>
§args: Vec<Arg>
§

StaticMethodCall

Fields

§target: Box<Self>
§method: Box<Self>
§args: Vec<Arg>
§

AnonymousClass

Fields

§extends: Option<Identifier>
§implements: Vec<Identifier>
§body: Block
§

Bool

Fields

§value: bool
§

ArrayIndex

Fields

§array: Box<Self>
§index: Option<Box<Self>>
§

Null

§

BooleanNot

Fields

§value: Box<Self>
§

MagicConst

Fields

§constant: MagicConst
§

Ternary

Fields

§condition: Box<Self>
§then: Option<Box<Self>>
§else: Box<Self>
§

Coalesce

Fields

§lhs: Box<Self>
§rhs: Box<Self>
§

Clone

Fields

§target: Box<Self>
§

Match

Fields

§condition: Box<Self>
§arms: Vec<MatchArm>
§

Throw

Fields

§value: Box<Expression>
§

Yield

Fields

§key: Option<Box<Self>>
§value: Option<Box<Self>>
§

YieldFrom

Fields

§value: Box<Self>
§

Negate

Fields

§value: Box<Self>
§

UnaryPlus

Fields

§value: Box<Self>
§

BitwiseNot

Fields

§value: Box<Self>
§

PreDecrement

Fields

§value: Box<Self>
§

PreIncrement

Fields

§value: Box<Self>
§

Print

Fields

§value: Box<Self>
§

Cast

Fields

§kind: CastKind
§value: Box<Self>

Trait Implementations§

Returns a copy of the value. Read more
Performs copy-assignment from source. Read more
Formats the value using the given formatter. Read more
This method tests for self and other values to be equal, and is used by ==. Read more
This method tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason. Read more

Auto Trait Implementations§

Blanket Implementations§

Gets the TypeId of self. Read more
Immutably borrows from an owned value. Read more
Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

The resulting type after obtaining ownership.
Creates owned data from borrowed data, usually by cloning. Read more
Uses borrowed data to replace owned data, usually by cloning. Read more
The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.