FunctionDeclaration ::= "function" Identifier ( "(" ( FormalParameterList )? ")" ) FunctionBody
(&mut self)
| 510 | |
| 511 | /// FunctionDeclaration ::= "function" Identifier ( "(" ( FormalParameterList )? ")" ) FunctionBody |
| 512 | fn function_declaration(&mut self) -> Option<Rc<Node>> { |
| 513 | let id = self.identifier(); |
| 514 | let params = self.parameter_list(); |
| 515 | Node::new_function_declaration(id, params, self.function_body()) |
| 516 | } |
| 517 | |
| 518 | /// SourceElement ::= FunctionDeclaration | Statement |
| 519 | fn source_element(&mut self) -> Option<Rc<Node>> { |
no test coverage detected