()
| 780 | } |
| 781 | |
| 782 | func (self *_parser) parseVariableStatement() *ast.VariableStatement { |
| 783 | |
| 784 | idx := self.expect(token.VAR) |
| 785 | |
| 786 | list := self.parseVarDeclarationList(idx) |
| 787 | self.ensurePatternInit(list) |
| 788 | self.semicolon() |
| 789 | |
| 790 | return &ast.VariableStatement{ |
| 791 | Var: idx, |
| 792 | List: list, |
| 793 | } |
| 794 | } |
| 795 | |
| 796 | func (self *_parser) parseLexicalDeclaration(tok token.Token) *ast.LexicalDeclaration { |
| 797 | idx := self.expect(tok) |
no test coverage detected