mirror of
https://github.com/RGBCube/serenity
synced 2025-07-27 02:27:43 +00:00
LibJS: Implement private identifiers in optional chains
This commit is contained in:
parent
4c8090a45d
commit
2d48529073
3 changed files with 35 additions and 2 deletions
|
@ -1590,8 +1590,12 @@ public:
|
|||
NonnullRefPtr<Identifier> identifier;
|
||||
Mode mode;
|
||||
};
|
||||
struct PrivateMemberReference {
|
||||
NonnullRefPtr<PrivateIdentifier> private_identifier;
|
||||
Mode mode;
|
||||
};
|
||||
|
||||
using Reference = Variant<Call, ComputedReference, MemberReference>;
|
||||
using Reference = Variant<Call, ComputedReference, MemberReference, PrivateMemberReference>;
|
||||
|
||||
OptionalChain(SourceRange source_range, NonnullRefPtr<Expression> base, Vector<Reference> references)
|
||||
: Expression(source_range)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue