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

Method parseForIn

parser/statement.go:601–614  ·  view source on GitHub ↗
(idx file.Idx, into ast.ForInto)

Source from the content-addressed store, hash-verified

599}
600
601func (self *_parser) parseForIn(idx file.Idx, into ast.ForInto) *ast.ForInStatement {
602
603 // Already have consumed "<into> in"
604
605 source := self.parseExpression()
606 self.expect(token.RIGHT_PARENTHESIS)
607
608 return &ast.ForInStatement{
609 For: idx,
610 Into: into,
611 Source: source,
612 Body: self.parseIterationStatement(),
613 }
614}
615
616func (self *_parser) parseForOf(idx file.Idx, into ast.ForInto) *ast.ForOfStatement {
617

Callers 1

Calls 3

parseExpressionMethod · 0.95
expectMethod · 0.95

Tested by

no test coverage detected