pub enum Expression {
Show 65 variants Eval { eval: Span, argument: Box<SingleArgument>, }, Empty { empty: Span, argument: Box<SingleArgument>, }, Die { die: Span, argument: Option<Box<SingleArgument>>, }, Exit { exit: Span, argument: Option<Box<SingleArgument>>, }, Isset { isset: Span, arguments: ArgumentList, }, Unset { unset: Span, arguments: ArgumentList, }, Print { print: Span, value: Option<Box<Self>>, argument: Option<Box<SingleArgument>>, }, Literal(Literal), ArithmeticOperation(ArithmeticOperation), AssignmentOperation(AssignmentOperation), BitwiseOperation(BitwiseOperation), ComparisonOperation(ComparisonOperation), LogicalOperation(LogicalOperation), Concat { left: Box<Self>, dot: Span, right: Box<Self>, }, Instanceof { left: Box<Self>, instanceof: Span, right: Box<Self>, }, Reference { ampersand: Span, right: Box<Self>, }, Parenthesized { start: Span, expr: Box<Self>, end: Span, }, ErrorSuppress { at: Span, expr: Box<Self>, }, Identifier(Identifier), Variable(Variable), Include { include: Span, path: Box<Self>, }, IncludeOnce { include_once: Span, path: Box<Self>, }, Require { require: Span, path: Box<Self>, }, RequireOnce { require_once: Span, path: Box<Self>, }, FunctionCall { target: Box<Self>, arguments: ArgumentList, }, FunctionClosureCreation { target: Box<Self>, placeholder: ArgumentPlaceholder, }, MethodCall { target: Box<Self>, arrow: Span, method: Box<Self>, arguments: ArgumentList, }, MethodClosureCreation { target: Box<Self>, arrow: Span, method: Box<Self>, placeholder: ArgumentPlaceholder, }, NullsafeMethodCall { target: Box<Self>, question_arrow: Span, method: Box<Self>, arguments: ArgumentList, }, StaticMethodCall { target: Box<Self>, double_colon: Span, method: Identifier, arguments: ArgumentList, }, StaticVariableMethodCall { target: Box<Self>, double_colon: Span, method: Variable, arguments: ArgumentList, }, StaticMethodClosureCreation { target: Box<Self>, double_colon: Span, method: Identifier, placeholder: ArgumentPlaceholder, }, StaticVariableMethodClosureCreation { target: Box<Self>, double_colon: Span, method: Variable, placeholder: ArgumentPlaceholder, }, PropertyFetch { target: Box<Self>, arrow: Span, property: Box<Self>, }, NullsafePropertyFetch { target: Box<Self>, question_arrow: Span, property: Box<Self>, }, StaticPropertyFetch { target: Box<Self>, double_colon: Span, property: Variable, }, ConstantFetch { target: Box<Self>, double_colon: Span, constant: Identifier, }, Static, Self_, Parent, ShortArray { start: Span, items: CommaSeparated<ArrayItem>, end: Span, }, Array { array: Span, start: Span, items: CommaSeparated<ArrayItem>, end: Span, }, List { list: Span, start: Span, items: Vec<ListEntry>, end: Span, }, Closure(Closure), ArrowFunction(ArrowFunction), New { new: Span, target: Box<Self>, arguments: Option<ArgumentList>, }, InterpolatedString { parts: Vec<StringPart>, }, Heredoc { parts: Vec<StringPart>, }, Nowdoc { value: ByteString, }, ShellExec { parts: Vec<StringPart>, }, AnonymousClass(AnonymousClass), Bool { value: bool, }, ArrayIndex { array: Box<Self>, left_bracket: Span, index: Option<Box<Self>>, right_bracket: Span, }, Null, MagicConstant(MagicConstant), ShortTernary { condition: Box<Self>, question_colon: Span, else: Box<Self>, }, Ternary { condition: Box<Self>, question: Span, then: Box<Self>, colon: Span, else: Box<Self>, }, Coalesce { lhs: Box<Self>, double_question: Span, rhs: Box<Self>, }, Clone { target: Box<Self>, }, Match { keyword: Span, left_parenthesis: Span, condition: Box<Self>, right_parenthesis: Span, left_brace: Span, default: Option<Box<DefaultMatchArm>>, arms: Vec<MatchArm>, right_brace: Span, }, Throw { value: Box<Self>, }, Yield { key: Option<Box<Self>>, value: Option<Box<Self>>, }, YieldFrom { value: Box<Self>, }, Cast { cast: Span, kind: CastKind, value: Box<Self>, }, Noop,
}

Variants§

§

Eval

Fields

§eval: Span
§argument: Box<SingleArgument>
§

Empty

Fields

§empty: Span
§argument: Box<SingleArgument>
§

Die

Fields

§die: Span
§

Exit

Fields

§exit: Span
§

Isset

Fields

§isset: Span
§arguments: ArgumentList
§

Unset

Fields

§unset: Span
§arguments: ArgumentList
§

Print

Fields

§print: Span
§value: Option<Box<Self>>
§

Literal(Literal)

§

ArithmeticOperation(ArithmeticOperation)

§

AssignmentOperation(AssignmentOperation)

§

BitwiseOperation(BitwiseOperation)

§

ComparisonOperation(ComparisonOperation)

§

LogicalOperation(LogicalOperation)

§

Concat

Fields

§left: Box<Self>
§dot: Span
§right: Box<Self>
§

Instanceof

Fields

§left: Box<Self>
§instanceof: Span
§right: Box<Self>
§

Reference

Fields

§ampersand: Span
§right: Box<Self>
§

Parenthesized

Fields

§start: Span
§expr: Box<Self>
§end: Span
§

ErrorSuppress

Fields

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

Identifier(Identifier)

§

Variable(Variable)

§

Include

Fields

§include: Span
§path: Box<Self>
§

IncludeOnce

Fields

§include_once: Span
§path: Box<Self>
§

Require

Fields

§require: Span
§path: Box<Self>
§

RequireOnce

Fields

§require_once: Span
§path: Box<Self>
§

FunctionCall

Fields

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

FunctionClosureCreation

Fields

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

MethodCall

Fields

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

MethodClosureCreation

Fields

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

NullsafeMethodCall

Fields

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

StaticMethodCall

Fields

§target: Box<Self>
§double_colon: Span
§method: Identifier
§arguments: ArgumentList
§

StaticVariableMethodCall

Fields

§target: Box<Self>
§double_colon: Span
§method: Variable
§arguments: ArgumentList
§

StaticMethodClosureCreation

Fields

§target: Box<Self>
§double_colon: Span
§method: Identifier
§placeholder: ArgumentPlaceholder
§

StaticVariableMethodClosureCreation

Fields

§target: Box<Self>
§double_colon: Span
§method: Variable
§placeholder: ArgumentPlaceholder
§

PropertyFetch

Fields

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

NullsafePropertyFetch

Fields

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

StaticPropertyFetch

Fields

§target: Box<Self>
§double_colon: Span
§property: Variable
§

ConstantFetch

Fields

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

Static

§

Self_

§

Parent

§

ShortArray

Fields

§start: Span
§end: Span
§

Array

Fields

§array: Span
§start: Span
§end: Span
§

List

Fields

§list: Span
§start: Span
§items: Vec<ListEntry>
§end: Span
§

Closure(Closure)

§

ArrowFunction(ArrowFunction)

§

New

Fields

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

InterpolatedString

Fields

§parts: Vec<StringPart>
§

Heredoc

Fields

§parts: Vec<StringPart>
§

Nowdoc

Fields

§value: ByteString
§

ShellExec

Fields

§parts: Vec<StringPart>
§

AnonymousClass(AnonymousClass)

§

Bool

Fields

§value: bool
§

ArrayIndex

Fields

§array: Box<Self>
§left_bracket: Span
§index: Option<Box<Self>>
§right_bracket: Span
§

Null

§

MagicConstant(MagicConstant)

§

ShortTernary

Fields

§condition: Box<Self>
§question_colon: Span
§else: Box<Self>
§

Ternary

Fields

§condition: Box<Self>
§question: Span
§then: Box<Self>
§colon: Span
§else: Box<Self>
§

Coalesce

Fields

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

Clone

Fields

§target: Box<Self>
§

Match

Fields

§keyword: Span
§left_parenthesis: Span
§condition: Box<Self>
§right_parenthesis: Span
§left_brace: Span
§arms: Vec<MatchArm>
§right_brace: Span
§

Throw

Fields

§value: Box<Self>
§

Yield

Fields

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

YieldFrom

Fields

§value: Box<Self>
§

Cast

Fields

§cast: Span
§kind: CastKind
§value: Box<Self>
§

Noop

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
The name of the generated JSON Schema. Read more
Generates a JSON Schema for this type. Read more
Whether JSON Schemas generated for this type should be re-used where possible using the $ref keyword. Read more
This method tests for self and other values to be equal, and is used by ==.
This method tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
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.