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.
This commit is contained in:
Emanuele Torre 2020-05-26 19:52:03 +02:00 committed by GitHub
parent 11405c5139
commit d1bc1f5783
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
Notes: sideshowbarker 2024-07-19 06:06:31 +09:00

View file

@ -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; }