pub enum Expression {
Show 59 variants Eval { value: Box<Expression>, }, Die { value: Option<Box<Expression>>, }, Exit { value: Option<Box<Expression>>, }, ArithmeticOperation(ArithmeticOperation), AssignmentOperation(AssignmentOperation), BitwiseOperation(BitwiseOperation), ComparisonOperation(ComparisonOperation), LogicalOperation(LogicalOperation), Concat { left: Box<Expression>, span: Span, right: Box<Expression>, }, Instanceof { left: Box<Expression>, span: Span, right: Box<Expression>, }, Reference { span: Span, right: Box<Expression>, }, Parenthesized { start: Span, expr: Box<Expression>, end: Span, }, List { items: Vec<ListItem>, }, Empty, ErrorSuppress { span: Span, expr: Box<Self>, }, LiteralInteger { span: Span, value: ByteString, }, LiteralFloat { span: Span, value: ByteString, }, Identifier(Identifier), Variable(Variable), Include { span: Span, kind: IncludeKind, path: Box<Expression>, }, FunctionCall { target: Box<Self>, arguments: ArgumentList, }, FunctionClosureCreation { target: Box<Self>, placeholder: ArgumentPlaceholder, }, MethodCall { target: Box<Self>, span: Span, method: Box<Self>, arguments: ArgumentList, }, MethodClosureCreation { target: Box<Self>, span: Span, method: Box<Self>, placeholder: ArgumentPlaceholder, }, NullsafeMethodCall { target: Box<Self>, span: Span, method: Box<Self>, arguments: ArgumentList, }, StaticMethodCall { target: Box<Self>, span: Span, method: Box<Self>, arguments: ArgumentList, }, StaticMethodClosureCreation { target: Box<Self>, span: Span, method: Box<Self>, placeholder: ArgumentPlaceholder, }, Static, Self_, Parent, Array { items: Vec<ArrayItem>, }, Closure(Closure), ArrowFunction(ArrowFunction), New { span: Span, target: Box<Self>, arguments: Option<ArgumentList>, }, LiteralString { span: Span, value: ByteString, }, InterpolatedString { parts: Vec<StringPart>, }, Heredoc { parts: Vec<StringPart>, }, Nowdoc { value: ByteString, }, ShellExec { parts: Vec<StringPart>, }, PropertyFetch { target: Box<Self>, property: Box<Self>, }, NullsafePropertyFetch { target: Box<Self>, property: Box<Self>, }, StaticPropertyFetch { target: Box<Self>, property: Box<Self>, }, ConstFetch { target: Box<Self>, constant: SimpleIdentifier, }, AnonymousClass(AnonymousClass), Bool { value: bool, }, ArrayIndex { array: Box<Self>, index: Option<Box<Self>>, }, Null, MagicConst { span: Span, constant: MagicConst, }, Ternary { condition: Box<Self>, then: Box<Self>, else: Box<Self>, }, ShortTernary { condition: Box<Self>, span: Span, else: Box<Self>, }, Coalesce { lhs: Box<Self>, rhs: Box<Self>, }, Clone { target: Box<Self>, }, Match { condition: Box<Self>, default: Option<Box<DefaultMatchArm>>, arms: Vec<MatchArm>, }, Throw { value: Box<Expression>, }, Yield { key: Option<Box<Self>>, value: Option<Box<Self>>, }, YieldFrom { value: Box<Self>, }, BitwiseNot { span: Span, value: Box<Self>, }, Print { span: Span, value: Box<Self>, }, Cast { span: Span, kind: CastKind, value: Box<Self>, },
}

Variants§

§

Eval

Fields

§value: Box<Expression>
§

Die

Fields

§

Exit

Fields

§

ArithmeticOperation(ArithmeticOperation)

§

AssignmentOperation(AssignmentOperation)

§

BitwiseOperation(BitwiseOperation)

§

ComparisonOperation(ComparisonOperation)

§

LogicalOperation(LogicalOperation)

§

Concat

Fields

§span: Span
§right: Box<Expression>
§

Instanceof

Fields

§span: Span
§right: Box<Expression>
§

Reference

Fields

§span: Span
§right: Box<Expression>
§

Parenthesized

Fields

§start: Span
§end: Span
§

List

Fields

§items: Vec<ListItem>
§

Empty

§

ErrorSuppress

Fields

§span: Span
§expr: Box<Self>
§

LiteralInteger

Fields

§span: Span
§value: ByteString
§

LiteralFloat

Fields

§span: Span
§value: ByteString
§

Identifier(Identifier)

§

Variable(Variable)

§

Include

Fields

§span: Span
§

FunctionCall

Fields

§target: Box<Self>
§arguments: ArgumentList
§

FunctionClosureCreation

Fields

§target: Box<Self>
§placeholder: ArgumentPlaceholder
§

MethodCall

Fields

§target: Box<Self>
§span: Span
§method: Box<Self>
§arguments: ArgumentList
§

MethodClosureCreation

Fields

§target: Box<Self>
§span: Span
§method: Box<Self>
§placeholder: ArgumentPlaceholder
§

NullsafeMethodCall

Fields

§target: Box<Self>
§span: Span
§method: Box<Self>
§arguments: ArgumentList
§

StaticMethodCall

Fields

§target: Box<Self>
§span: Span
§method: Box<Self>
§arguments: ArgumentList
§

StaticMethodClosureCreation

Fields

§target: Box<Self>
§span: Span
§method: Box<Self>
§placeholder: ArgumentPlaceholder
§

Static

§

Self_

§

Parent

§

Array

Fields

§items: Vec<ArrayItem>
§

Closure(Closure)

§

ArrowFunction(ArrowFunction)

§

New

Fields

§span: Span
§target: Box<Self>
§arguments: Option<ArgumentList>
§

LiteralString

Fields

§span: Span
§value: ByteString
§

InterpolatedString

Fields

§parts: Vec<StringPart>
§

Heredoc

Fields

§parts: Vec<StringPart>
§

Nowdoc

Fields

§value: ByteString
§

ShellExec

Fields

§parts: Vec<StringPart>
§

PropertyFetch

Fields

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

NullsafePropertyFetch

Fields

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

StaticPropertyFetch

Fields

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

ConstFetch

Fields

§target: Box<Self>
§

AnonymousClass(AnonymousClass)

§

Bool

Fields

§value: bool
§

ArrayIndex

Fields

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

Null

§

MagicConst

Fields

§span: Span
§constant: MagicConst
§

Ternary

Fields

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

ShortTernary

Fields

§condition: Box<Self>
§span: Span
§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>
§

BitwiseNot

Fields

§span: Span
§value: Box<Self>
§

Print

Fields

§span: Span
§value: Box<Self>
§

Cast

Fields

§span: Span
§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
Deserialize this value from the given Serde deserializer. 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
Serialize this value into the given Serde serializer. 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.