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

Method position

parser/parser.go:266–268  ·  view source on GitHub ↗
(idx file.Idx)

Source from the content-addressed store, hash-verified

264}
265
266func (self *_parser) position(idx file.Idx) file.Position {
267 return self.file.Position(int(idx) - self.base)
268}

Callers 2

errorMethod · 0.95
TestParserErrFunction · 0.80

Calls 1

PositionMethod · 0.45

Tested by 1

TestParserErrFunction · 0.64