(async, allowAwait, allowYield bool)
| 264 | } |
| 265 | |
| 266 | func (self *_parser) parseFunctionBlock(async, allowAwait, allowYield bool) (body *ast.BlockStatement, declarationList []*ast.VariableDeclaration) { |
| 267 | self.openScope() |
| 268 | self.scope.inFunction = true |
| 269 | self.scope.inAsync = async |
| 270 | self.scope.allowAwait = allowAwait |
| 271 | self.scope.allowYield = allowYield |
| 272 | defer self.closeScope() |
| 273 | body = self.parseBlockStatement() |
| 274 | declarationList = self.scope.declarationList |
| 275 | return |
| 276 | } |
| 277 | |
| 278 | func (self *_parser) parseArrowFunctionBody(async bool) (ast.ConciseBody, []*ast.VariableDeclaration) { |
| 279 | if self.token == token.LEFT_BRACE { |
no test coverage detected