mirror of
https://github.com/danog/parser.git
synced 2025-01-22 21:11:55 +01:00
parser: support array type in class props
This commit is contained in:
parent
4068931aa1
commit
d97e23db94
@ -965,7 +965,7 @@ impl Parser {
|
||||
}
|
||||
}
|
||||
},
|
||||
TokenKind::Question | TokenKind::Identifier(_) | TokenKind::QualifiedIdentifier(_) | TokenKind::FullyQualifiedIdentifier(_) => {
|
||||
TokenKind::Question | TokenKind::Identifier(_) | TokenKind::QualifiedIdentifier(_) | TokenKind::FullyQualifiedIdentifier(_) | TokenKind::Array => {
|
||||
let prop_type = self.type_string()?;
|
||||
let var = self.var()?;
|
||||
let mut value = None;
|
||||
|
Loading…
x
Reference in New Issue
Block a user