[][src]Function rslint_core::util::is_const

pub fn is_const(expr: Expr, boolean_pos: bool, notes: &mut Vec<&str>) -> bool

Check whether an expr is constant and is always falsey or truthy