Skip to content

Commit 20a0fc5

Browse files
0xtechnobabbleawesomekling
authored andcommitted
LibJS: Rename BitNot -> BitwiseNot to match other bitwise operators
1 parent 3389021 commit 20a0fc5

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

Libraries/LibJS/AST.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -186,7 +186,7 @@ Value UnaryExpression::execute(Interpreter& interpreter) const
186186
{
187187
auto lhs_result = m_lhs->execute(interpreter);
188188
switch (m_op) {
189-
case UnaryOp::BitNot:
189+
case UnaryOp::BitwiseNot:
190190
return bitwise_not(lhs_result);
191191
case UnaryOp::Not:
192192
return Value(!lhs_result.to_boolean());
@@ -297,7 +297,7 @@ void UnaryExpression::dump(int indent) const
297297
{
298298
const char* op_string = nullptr;
299299
switch (m_op) {
300-
case UnaryOp::BitNot:
300+
case UnaryOp::BitwiseNot:
301301
op_string = "~";
302302
break;
303303
case UnaryOp::Not:

Libraries/LibJS/AST.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -304,7 +304,7 @@ class LogicalExpression : public Expression {
304304
};
305305

306306
enum class UnaryOp {
307-
BitNot,
307+
BitwiseNot,
308308
Not,
309309
};
310310

0 commit comments

Comments
 (0)