Re-exportsยง
use super::DangerousUnaryOperator;๐use crate::linter::EarlyLintPass;๐use crate::linter::LintContext;๐use crate::sol::Severity;๐use crate::sol::SolLint;๐use solar::ast::Expr;๐use solar::ast::ExprKind;๐use solar::ast::UnOpKind;๐
Staticsยง
Functionsยง
- leads_
with_ ๐fusable_ unary - Whether the leftmost operand of
expris a-or~unary, following the left spine of binary and ternary expressions sox =- a + 1(x = (-a) + 1) is caught as well.