Enum moore_svlog::ast::ExprData[][src]

pub enum ExprData<'a> {
Show 30 variants DummyExpr, LiteralExpr(Lit), IdentExpr(Spanned<Name>), SysIdentExpr(Spanned<Name>), ThisExpr, DollarExpr, NullExpr, ScopeExpr(Box<Node<'a, ExprData<'a>>, Global>, Spanned<Name>), IndexExpr { indexee: Box<Node<'a, ExprData<'a>>, Global>, index: Box<Node<'a, ExprData<'a>>, Global>, }, UnaryExpr { op: Op, expr: Box<Node<'a, ExprData<'a>>, Global>, postfix: bool, }, BinaryExpr { op: Op, lhs: Box<Node<'a, ExprData<'a>>, Global>, rhs: Box<Node<'a, ExprData<'a>>, Global>, }, TernaryExpr { cond: Box<Node<'a, ExprData<'a>>, Global>, true_expr: Box<Node<'a, ExprData<'a>>, Global>, false_expr: Box<Node<'a, ExprData<'a>>, Global>, }, AssignExpr { op: AssignOp, lhs: Box<Node<'a, ExprData<'a>>, Global>, rhs: Box<Node<'a, ExprData<'a>>, Global>, }, CallExpr(Box<Node<'a, ExprData<'a>>, Global>, Vec<CallArg<'a>, Global>), TypeExpr(Box<Node<'a, TypeData<'a>>, Global>), ConstructorCallExpr(Vec<CallArg<'a>, Global>), ClassNewExpr(Option<Box<Node<'a, ExprData<'a>>, Global>>), ArrayNewExpr(Box<Node<'a, ExprData<'a>>, Global>, Option<Box<Node<'a, ExprData<'a>>, Global>>), EmptyQueueExpr, StreamConcatExpr { slice: Option<StreamConcatSlice<'a>>, exprs: Vec<StreamExpr<'a>, Global>, }, ConcatExpr { repeat: Option<Box<Node<'a, ExprData<'a>>, Global>>, exprs: Vec<Node<'a, ExprData<'a>>, Global>, }, MinTypMaxExpr { min: Box<Node<'a, ExprData<'a>>, Global>, typ: Box<Node<'a, ExprData<'a>>, Global>, max: Box<Node<'a, ExprData<'a>>, Global>, }, RangeExpr { mode: RangeMode, lhs: Box<Node<'a, ExprData<'a>>, Global>, rhs: Box<Node<'a, ExprData<'a>>, Global>, }, MemberExpr { expr: Box<Node<'a, ExprData<'a>>, Global>, name: Spanned<Name>, }, PatternExpr(Vec<Node<'a, PatternFieldData<'a>>, Global>), InsideExpr(Box<Node<'a, ExprData<'a>>, Global>, Vec<ValueRange<'a>, Global>), CastExpr(Node<'a, TypeData<'a>>, Box<Node<'a, ExprData<'a>>, Global>), CastSizeExpr(Box<Node<'a, ExprData<'a>>, Global>, Box<Node<'a, ExprData<'a>>, Global>), CastSignExpr(Spanned<TypeSign>, Box<Node<'a, ExprData<'a>>, Global>), BitsExpr { name: Spanned<Name>, arg: TypeOrExpr<'a>, },
}
Expand description

An expression.

Variants

DummyExpr
LiteralExpr(Lit)

Tuple Fields of LiteralExpr

0: Lit
IdentExpr(Spanned<Name>)

An identifier, like foo.

Tuple Fields of IdentExpr

0: Spanned<Name>
SysIdentExpr(Spanned<Name>)

A system identifier, like $foo.

Tuple Fields of SysIdentExpr

0: Spanned<Name>
ThisExpr
DollarExpr
NullExpr
ScopeExpr(Box<Node<'a, ExprData<'a>>, Global>, Spanned<Name>)

Tuple Fields of ScopeExpr

0: Box<Node<'a, ExprData<'a>>, Global>1: Spanned<Name>
IndexExpr

Fields of IndexExpr

indexee: Box<Node<'a, ExprData<'a>>, Global>index: Box<Node<'a, ExprData<'a>>, Global>
UnaryExpr

Fields of UnaryExpr

op: Opexpr: Box<Node<'a, ExprData<'a>>, Global>postfix: bool
BinaryExpr

Fields of BinaryExpr

op: Oplhs: Box<Node<'a, ExprData<'a>>, Global>rhs: Box<Node<'a, ExprData<'a>>, Global>
TernaryExpr

Fields of TernaryExpr

cond: Box<Node<'a, ExprData<'a>>, Global>true_expr: Box<Node<'a, ExprData<'a>>, Global>false_expr: Box<Node<'a, ExprData<'a>>, Global>
AssignExpr

Fields of AssignExpr

op: AssignOplhs: Box<Node<'a, ExprData<'a>>, Global>rhs: Box<Node<'a, ExprData<'a>>, Global>
CallExpr(Box<Node<'a, ExprData<'a>>, Global>, Vec<CallArg<'a>, Global>)

Tuple Fields of CallExpr

0: Box<Node<'a, ExprData<'a>>, Global>1: Vec<CallArg<'a>, Global>
TypeExpr(Box<Node<'a, TypeData<'a>>, Global>)

Tuple Fields of TypeExpr

0: Box<Node<'a, TypeData<'a>>, Global>
ConstructorCallExpr(Vec<CallArg<'a>, Global>)

Tuple Fields of ConstructorCallExpr

0: Vec<CallArg<'a>, Global>
ClassNewExpr(Option<Box<Node<'a, ExprData<'a>>, Global>>)

Tuple Fields of ClassNewExpr

0: Option<Box<Node<'a, ExprData<'a>>, Global>>
ArrayNewExpr(Box<Node<'a, ExprData<'a>>, Global>, Option<Box<Node<'a, ExprData<'a>>, Global>>)

Tuple Fields of ArrayNewExpr

0: Box<Node<'a, ExprData<'a>>, Global>1: Option<Box<Node<'a, ExprData<'a>>, Global>>
EmptyQueueExpr
StreamConcatExpr

Fields of StreamConcatExpr

slice: Option<StreamConcatSlice<'a>>exprs: Vec<StreamExpr<'a>, Global>
ConcatExpr

Fields of ConcatExpr

repeat: Option<Box<Node<'a, ExprData<'a>>, Global>>exprs: Vec<Node<'a, ExprData<'a>>, Global>
MinTypMaxExpr

Fields of MinTypMaxExpr

min: Box<Node<'a, ExprData<'a>>, Global>typ: Box<Node<'a, ExprData<'a>>, Global>max: Box<Node<'a, ExprData<'a>>, Global>
RangeExpr

Fields of RangeExpr

mode: RangeModelhs: Box<Node<'a, ExprData<'a>>, Global>rhs: Box<Node<'a, ExprData<'a>>, Global>
MemberExpr

A member expression, like a.b.

Fields of MemberExpr

expr: Box<Node<'a, ExprData<'a>>, Global>name: Spanned<Name>
PatternExpr(Vec<Node<'a, PatternFieldData<'a>>, Global>)

Tuple Fields of PatternExpr

0: Vec<Node<'a, PatternFieldData<'a>>, Global>
InsideExpr(Box<Node<'a, ExprData<'a>>, Global>, Vec<ValueRange<'a>, Global>)

Tuple Fields of InsideExpr

0: Box<Node<'a, ExprData<'a>>, Global>1: Vec<ValueRange<'a>, Global>
CastExpr(Node<'a, TypeData<'a>>, Box<Node<'a, ExprData<'a>>, Global>)

Tuple Fields of CastExpr

0: Node<'a, TypeData<'a>>1: Box<Node<'a, ExprData<'a>>, Global>
CastSizeExpr(Box<Node<'a, ExprData<'a>>, Global>, Box<Node<'a, ExprData<'a>>, Global>)

Tuple Fields of CastSizeExpr

0: Box<Node<'a, ExprData<'a>>, Global>1: Box<Node<'a, ExprData<'a>>, Global>
CastSignExpr(Spanned<TypeSign>, Box<Node<'a, ExprData<'a>>, Global>)

Tuple Fields of CastSignExpr

0: Spanned<TypeSign>1: Box<Node<'a, ExprData<'a>>, Global>
BitsExpr

A $bits call.

Fields of BitsExpr

name: Spanned<Name>arg: TypeOrExpr<'a>

Trait Implementations

Walk a visitor over the contents of self.

Get this node’s name, or None if it does not have one.

Describe this node for diagnostics in indefinite form, e.g. “entity”. Read more

Describe this node for diagnostics in definite form, e.g. “entity ‘top’”. Read more

Describe this node for diagnostics in indefinite form, e.g. “entity”.

Describe this node for diagnostics in definite form, e.g. “entity ‘top’”. Read more

Describe this node for diagnostics in indefinite form, e.g. “entity”.

Describe this node for diagnostics in definite form, e.g. “entity ‘top’”. Read more

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

Formats the value using the given formatter. Read more

Apply a function to each child node.

Apply a function to this node.

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.

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

Performs the conversion.

Performs the conversion.

The alignment of pointer.

The type for initializers.

Initializes a with the given initializer. Read more

Dereferences the given pointer. Read more

Mutably dereferences the given pointer. Read more

Drops the object pointed to by the given pointer. Read more

The resulting type after obtaining ownership.

Creates owned data from borrowed data, usually by cloning. Read more

🔬 This is a nightly-only experimental API. (toowned_clone_into)

recently added

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.