(declarationList *[]*ast.Binding)
| 304 | } |
| 305 | |
| 306 | func (self *_parser) parseVariableDeclaration(declarationList *[]*ast.Binding) *ast.Binding { |
| 307 | node := &ast.Binding{ |
| 308 | Target: self.parseBindingTarget(), |
| 309 | } |
| 310 | |
| 311 | if declarationList != nil { |
| 312 | *declarationList = append(*declarationList, node) |
| 313 | } |
| 314 | |
| 315 | if self.token == token.ASSIGN { |
| 316 | self.next() |
| 317 | node.Initializer = self.parseAssignmentExpression() |
| 318 | } |
| 319 | |
| 320 | return node |
| 321 | } |
| 322 | |
| 323 | func (self *_parser) parseVariableDeclarationList() (declarationList []*ast.Binding) { |
| 324 | for { |
no test coverage detected