1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-25 17:47:44 +00:00

LibJS: Add Reference class to represent a base.property reference

Expression nodes can now be asked to produce a Reference. We then use
this to implement the "delete" operator without downcasting the child
node to a MemberExpression manually.
This commit is contained in:
Andreas Kling 2020-04-27 12:10:16 +02:00
parent 3a12a8a348
commit 67b8e6fc5b
5 changed files with 105 additions and 9 deletions

View file

@ -66,6 +66,7 @@ class Interpreter;
class LexicalEnvironment;
class MarkedValueList;
class PrimitiveString;
class Reference;
class ScopeNode;
class Shape;
class Statement;