mirror of
https://github.com/fergalmoran/ladybird.git
synced 2025-12-30 13:19:47 +00:00
LibJS: Rename BinaryOp::{Plus,Minus,Asterisk,Slash}
This commit is contained in:
committed by
Andreas Kling
parent
a4f6f8e0e7
commit
eafd3dbaf8
@@ -273,13 +273,13 @@ Value BinaryExpression::execute(Interpreter& interpreter) const
|
||||
return {};
|
||||
|
||||
switch (m_op) {
|
||||
case BinaryOp::Plus:
|
||||
case BinaryOp::Addition:
|
||||
return add(lhs_result, rhs_result);
|
||||
case BinaryOp::Minus:
|
||||
case BinaryOp::Subtraction:
|
||||
return sub(lhs_result, rhs_result);
|
||||
case BinaryOp::Asterisk:
|
||||
case BinaryOp::Multiplication:
|
||||
return mul(lhs_result, rhs_result);
|
||||
case BinaryOp::Slash:
|
||||
case BinaryOp::Division:
|
||||
return div(lhs_result, rhs_result);
|
||||
case BinaryOp::Modulo:
|
||||
return mod(lhs_result, rhs_result);
|
||||
@@ -406,16 +406,16 @@ void BinaryExpression::dump(int indent) const
|
||||
{
|
||||
const char* op_string = nullptr;
|
||||
switch (m_op) {
|
||||
case BinaryOp::Plus:
|
||||
case BinaryOp::Addition:
|
||||
op_string = "+";
|
||||
break;
|
||||
case BinaryOp::Minus:
|
||||
case BinaryOp::Subtraction:
|
||||
op_string = "-";
|
||||
break;
|
||||
case BinaryOp::Asterisk:
|
||||
case BinaryOp::Multiplication:
|
||||
op_string = "*";
|
||||
break;
|
||||
case BinaryOp::Slash:
|
||||
case BinaryOp::Division:
|
||||
op_string = "/";
|
||||
break;
|
||||
case BinaryOp::Modulo:
|
||||
|
||||
Reference in New Issue
Block a user