From d1bc1f5783f31a9339c192e889a24ccd82813b4f Mon Sep 17 00:00:00 2001 From: Emanuele Torre Date: Tue, 26 May 2020 19:52:03 +0200 Subject: [PATCH] LibJS: Fix style inconsistencies in AST.h (#2403) Our current configuration clang-format allows both of these styles: ------------------ class A : B , C { ----------------- class A : B , C { ------------------ I was not able to find a setting of clang-format to only allow the latter style (or disallow the first style), but let's at least be consistent with the style within a file. --- Libraries/LibJS/AST.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Libraries/LibJS/AST.h b/Libraries/LibJS/AST.h index 31c95e5f9c..4dd15e5723 100644 --- a/Libraries/LibJS/AST.h +++ b/Libraries/LibJS/AST.h @@ -207,7 +207,8 @@ private: virtual const char* class_name() const override { return "FunctionDeclaration"; } }; -class FunctionExpression final : public Expression +class FunctionExpression final + : public Expression , public FunctionNode { public: static bool must_have_name() { return false; }