mirror of
https://github.com/RGBCube/serenity
synced 2025-07-27 00:37:45 +00:00
LibJS: Add JS_CELL macro and use it in all JS::Cell subclasses
This is similar to what we already had with JS_OBJECT (and also JS_ENVIRONMENT) but sits at the top of the Cell inheritance hierarchy.
This commit is contained in:
parent
94f016b363
commit
6e973ce69b
16 changed files with 37 additions and 23 deletions
|
@ -28,6 +28,8 @@ struct PrivateName {
|
|||
};
|
||||
|
||||
class PrivateEnvironment : public Cell {
|
||||
JS_CELL(PrivateEnvironment, Cell);
|
||||
|
||||
public:
|
||||
explicit PrivateEnvironment(PrivateEnvironment* parent);
|
||||
|
||||
|
@ -36,7 +38,6 @@ public:
|
|||
void add_private_name(Badge<ClassExpression>, FlyString description);
|
||||
|
||||
private:
|
||||
virtual StringView class_name() const override { return "PrivateEnvironment"sv; }
|
||||
virtual void visit_edges(Visitor&) override;
|
||||
|
||||
auto find_private_name(FlyString const& description) const
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue