Struct js::syntax::ast::expr::Expr[src]

pub struct Expr {
    pub def: ExprDef,
    pub start: Position,
    pub end: Position,
}

A Javascript expression, including its position

Fields

def

The expression definition

start

The starting position

end

The ending position

Methods

impl Expr

fn new(def: ExprDef, start: Position, end: Position) -> Expr

Create a new expression with a starting and ending position

Trait Implementations

impl Show for Expr

fn fmt(&self, f: &mut Formatter) -> Result

Derived Implementations

impl PartialEq for Expr

fn eq(&self, __arg_0: &Expr) -> bool

fn ne(&self, __arg_0: &Expr) -> bool

impl Clone for Expr

fn clone(&self) -> Expr

fn clone_from(&mut self, source: &Self)