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

Method parseWithStatement

parser/statement.go:551–561  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

549}
550
551func (self *_parser) parseWithStatement() ast.Statement {
552 node := &ast.WithStatement{}
553 node.With = self.expect(token.WITH)
554 self.expect(token.LEFT_PARENTHESIS)
555 node.Object = self.parseExpression()
556 self.expect(token.RIGHT_PARENTHESIS)
557 self.scope.allowLet = false
558 node.Body = self.parseStatement()
559
560 return node
561}
562
563func (self *_parser) parseCaseStatement() *ast.CaseStatement {
564

Callers 1

parseStatementMethod · 0.95

Calls 3

expectMethod · 0.95
parseExpressionMethod · 0.95
parseStatementMethod · 0.95

Tested by

no test coverage detected