summaryrefslogtreecommitdiff
path: root/Libraries/LibJS
diff options
context:
space:
mode:
authorEmanuele Torre <torreemanuele6@gmail.com>2020-05-26 19:52:03 +0200
committerGitHub <noreply@github.com>2020-05-26 19:52:03 +0200
commitd1bc1f5783f31a9339c192e889a24ccd82813b4f (patch)
treea97aa438668f594a54f7889f92afcd0c697cb32e /Libraries/LibJS
parent11405c513961b9c3ea274d9e07ede4b4caf6c4cc (diff)
downloadserenity-d1bc1f5783f31a9339c192e889a24ccd82813b4f.zip
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.
Diffstat (limited to 'Libraries/LibJS')
-rw-r--r--Libraries/LibJS/AST.h3
1 files changed, 2 insertions, 1 deletions
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; }