summaryrefslogtreecommitdiff
path: root/Userland/Libraries/LibJS/AST.cpp
diff options
context:
space:
mode:
authorIdan Horowitz <idan.horowitz@gmail.com>2022-04-01 20:58:27 +0300
committerLinus Groh <mail@linusgroh.de>2022-04-01 21:24:45 +0100
commit086969277e74d8ba065bf8145d3aeb0dec0bfee5 (patch)
tree02b3699a66735ef806d9b46353491f18f8e4e7b4 /Userland/Libraries/LibJS/AST.cpp
parent0376c127f6e98e03607700d0b3f5154b7014b2f8 (diff)
downloadserenity-086969277e74d8ba065bf8145d3aeb0dec0bfee5.zip
Everywhere: Run clang-format
Diffstat (limited to 'Userland/Libraries/LibJS/AST.cpp')
-rw-r--r--Userland/Libraries/LibJS/AST.cpp18
1 files changed, 9 insertions, 9 deletions
diff --git a/Userland/Libraries/LibJS/AST.cpp b/Userland/Libraries/LibJS/AST.cpp
index 141f4ae590..0cce9e4665 100644
--- a/Userland/Libraries/LibJS/AST.cpp
+++ b/Userland/Libraries/LibJS/AST.cpp
@@ -1955,7 +1955,7 @@ void ScopeNode::dump(int indent) const
void BinaryExpression::dump(int indent) const
{
- const char* op_string = nullptr;
+ char const* op_string = nullptr;
switch (m_op) {
case BinaryOp::Addition:
op_string = "+";
@@ -2035,7 +2035,7 @@ void BinaryExpression::dump(int indent) const
void LogicalExpression::dump(int indent) const
{
- const char* op_string = nullptr;
+ char const* op_string = nullptr;
switch (m_op) {
case LogicalOp::And:
op_string = "&&";
@@ -2058,7 +2058,7 @@ void LogicalExpression::dump(int indent) const
void UnaryExpression::dump(int indent) const
{
- const char* op_string = nullptr;
+ char const* op_string = nullptr;
switch (m_op) {
case UnaryOp::BitwiseNot:
op_string = "~";
@@ -2153,7 +2153,7 @@ void ClassMethod::dump(int indent) const
outln("(Key)");
m_key->dump(indent + 1);
- const char* kind_string = nullptr;
+ char const* kind_string = nullptr;
switch (m_kind) {
case Kind::Method:
kind_string = "Method";
@@ -2346,7 +2346,7 @@ void FunctionDeclaration::dump(int indent) const
FunctionNode::dump(indent, class_name());
}
-ThrowCompletionOr<void> FunctionDeclaration::for_each_bound_name(ThrowCompletionOrVoidCallback<const FlyString&>&& callback) const
+ThrowCompletionOr<void> FunctionDeclaration::for_each_bound_name(ThrowCompletionOrVoidCallback<FlyString const&>&& callback) const
{
if (name().is_empty())
return {};
@@ -2757,7 +2757,7 @@ Completion UpdateExpression::execute(Interpreter& interpreter, GlobalObject& glo
void AssignmentExpression::dump(int indent) const
{
- const char* op_string = nullptr;
+ char const* op_string = nullptr;
switch (m_op) {
case AssignmentOp::Assignment:
op_string = "=";
@@ -2818,7 +2818,7 @@ void AssignmentExpression::dump(int indent) const
void UpdateExpression::dump(int indent) const
{
- const char* op_string = nullptr;
+ char const* op_string = nullptr;
switch (m_op) {
case UpdateOp::Increment:
op_string = "++";
@@ -2903,7 +2903,7 @@ ThrowCompletionOr<void> VariableDeclaration::for_each_bound_name(ThrowCompletion
void VariableDeclaration::dump(int indent) const
{
- const char* declaration_kind_string = nullptr;
+ char const* declaration_kind_string = nullptr;
switch (m_declaration_kind) {
case DeclarationKind::Let:
declaration_kind_string = "Let";
@@ -2927,7 +2927,7 @@ void VariableDeclaration::dump(int indent) const
void VariableDeclarator::dump(int indent) const
{
ASTNode::dump(indent);
- m_target.visit([indent](const auto& value) { value->dump(indent + 1); });
+ m_target.visit([indent](auto const& value) { value->dump(indent + 1); });
if (m_init)
m_init->dump(indent + 1);
}