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

Method parseBlockStatement

parser/statement.go:15–22  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

13)
14
15func (self *_parser) parseBlockStatement() *ast.BlockStatement {
16 node := &ast.BlockStatement{}
17 node.LeftBrace = self.expect(token.LEFT_BRACE)
18 node.List = self.parseStatementList()
19 node.RightBrace = self.expect(token.RIGHT_BRACE)
20
21 return node
22}
23
24func (self *_parser) parseEmptyStatement() ast.Statement {
25 idx := self.expect(token.SEMICOLON)

Callers 5

parseStatementMethod · 0.95
parseTryStatementMethod · 0.95
parseFunctionBlockMethod · 0.95
parseDoWhileStatementMethod · 0.95
parseIfStatementMethod · 0.95

Calls 2

expectMethod · 0.95
parseStatementListMethod · 0.95

Tested by

no test coverage detected