MCPcopy Create free account
hub / github.com/dop251/goja / parseVarDeclarationList

Method parseVarDeclarationList

parser/expression.go:334–343  ·  view source on GitHub ↗
(var_ file.Idx)

Source from the content-addressed store, hash-verified

332}
333
334func (self *_parser) parseVarDeclarationList(var_ file.Idx) []*ast.Binding {
335 declarationList := self.parseVariableDeclarationList()
336
337 self.scope.declare(&ast.VariableDeclaration{
338 Var: var_,
339 List: declarationList,
340 })
341
342 return declarationList
343}
344
345func (self *_parser) parseObjectPropertyKey() (string, unistring.String, ast.Expression, token.Token) {
346 if self.token == token.LEFT_BRACKET {

Callers 2

Calls 2

declareMethod · 0.80

Tested by

no test coverage detected