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

Method parseProgram

parser/statement.go:886–894  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

884}
885
886func (self *_parser) parseProgram() *ast.Program {
887 prg := &ast.Program{
888 Body: self.parseSourceElements(),
889 DeclarationList: self.scope.declarationList,
890 File: self.file,
891 }
892 self.file.SetSourceMap(self.parseSourceMap())
893 return prg
894}
895
896func extractSourceMapLine(str string) string {
897 for {

Callers 1

parseMethod · 0.95

Calls 3

parseSourceElementsMethod · 0.95
parseSourceMapMethod · 0.95
SetSourceMapMethod · 0.80

Tested by

no test coverage detected