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

Method parseMaybeAsyncFunction

parser/statement.go:197–204  ·  view source on GitHub ↗
(declaration bool)

Source from the content-addressed store, hash-verified

195}
196
197func (self *_parser) parseMaybeAsyncFunction(declaration bool) *ast.FunctionLiteral {
198 if self.peek() == token.FUNCTION {
199 idx := self.idx
200 self.next()
201 return self.parseFunction(declaration, true, idx)
202 }
203 return nil
204}
205
206func (self *_parser) parseFunction(declaration, async bool, start file.Idx) *ast.FunctionLiteral {
207

Callers 2

parseStatementMethod · 0.95

Calls 3

peekMethod · 0.95
nextMethod · 0.95
parseFunctionMethod · 0.95

Tested by

no test coverage detected