mirror of
https://github.com/danog/parser.git
synced 2025-01-22 21:11:55 +01:00
parser: support class constant fetches
This commit is contained in:
parent
8cf226a35d
commit
c372b9e9bd
@ -2359,6 +2359,11 @@ impl Parser {
|
|||||||
self.next();
|
self.next();
|
||||||
Expression::Identifier { name: ident }
|
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);
|
return expected_token_err!(["`{`", "`$`", "an identifier"], self);
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user