Enum moore_svlog_syntax::ast::ExprData [] [src]

pub enum ExprData {
    DummyExpr,
    LiteralExpr(Lit),
    IdentExpr(Identifier),
    SysIdentExpr(Identifier),
    IndexExpr {
        indexee: Box<Expr>,
        index: Box<Expr>,
    },
    UnaryExpr {
        op: Op,
        expr: Box<Expr>,
        postfix: bool,
    },
    BinaryExpr {
        op: Op,
        lhs: Box<Expr>,
        rhs: Box<Expr>,
    },
    TernaryExpr {
        cond: Box<Expr>,
        true_expr: Box<Expr>,
        false_expr: Box<Expr>,
    },
    AssignExpr {
        op: AssignOp,
        lhs: Box<Expr>,
        rhs: Box<Expr>,
    },
    CallExpr(Box<Expr>, Vec<CallArg>),
    TypeExpr(Box<Type>),
    ConstructorCallExpr(Vec<CallArg>),
    ClassNewExpr(Option<Box<Expr>>),
    ArrayNewExpr(Box<Expr>, Option<Box<Expr>>),
    EmptyQueueExpr,
    StreamConcatExpr {
        slice: Option<StreamConcatSlice>,
        exprs: Vec<StreamExpr>,
    },
    ConcatExpr {
        repeat: Option<Box<Expr>>,
        exprs: Vec<Expr>,
    },
    MinTypMaxExpr {
        min: Box<Expr>,
        typ: Box<Expr>,
        max: Box<Expr>,
    },
    RangeExpr {
        mode: RangeMode,
        lhs: Box<Expr>,
        rhs: Box<Expr>,
    },
    MemberExpr {
        expr: Box<Expr>,
        name: Identifier,
    },
    PatternExpr(Vec<PatternField>),
}

Variants

Fields of IndexExpr

Fields of UnaryExpr

Fields of BinaryExpr

Fields of TernaryExpr

Fields of AssignExpr

Fields of StreamConcatExpr

Fields of ConcatExpr

Fields of MinTypMaxExpr

Fields of RangeExpr

Fields of MemberExpr

Trait Implementations

impl Debug for ExprData
[src]

[src]

Formats the value using the given formatter.

impl Clone for ExprData
[src]

[src]

Returns a copy of the value. Read more

1.0.0
[src]

Performs copy-assignment from source. Read more

impl PartialEq for ExprData
[src]

[src]

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

[src]

This method tests for !=.

impl Eq for ExprData
[src]

impl Encodable for ExprData
[src]

[src]

Serialize a value using an Encoder.

impl Decodable for ExprData
[src]

[src]

Deserialize a value using a Decoder.