Initialiser ::= "=" AssignmentExpression
(&mut self)
| 346 | |
| 347 | /// Initialiser ::= "=" AssignmentExpression |
| 348 | fn initialiser(&mut self) -> Option<Rc<Node>> { |
| 349 | let t = match self.t.next() { |
| 350 | Some(token) => token, |
| 351 | None => return None, |
| 352 | }; |
| 353 | |
| 354 | match t { |
| 355 | Token::Punctuator('=') => self.assignment_expression(), |
| 356 | _ => None, |
| 357 | } |
| 358 | } |
| 359 | |
| 360 | /// VariableDeclarationList ::= VariableDeclaration ( "," VariableDeclaration )* |
| 361 | /// VariableDeclaration ::= Identifier ( Initialiser )? |
no test coverage detected