mirror of
https://github.com/danog/parser.git
synced 2025-01-22 13:01:32 +01:00
parser: support class constant fetches
This commit is contained in:
parent
8cf226a35d
commit
c372b9e9bd
@ -2359,6 +2359,11 @@ impl Parser {
|
||||
self.next();
|
||||
Expression::Identifier { name: ident }
|
||||
}
|
||||
TokenKind::Class => {
|
||||
self.next();
|
||||
// FIXME: Can this be represented in a nicer way? Kind of hacky.
|
||||
Expression::Identifier { name: "class".into() }
|
||||
},
|
||||
_ => {
|
||||
return expected_token_err!(["`{`", "`$`", "an identifier"], self);
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user