go/token.FileSet.Position (method)
12 uses
go/token (current package)
position.go#L524: func (s *FileSet) Position(p Pos) (pos Position) {
go/ast
commentmap.go#L94: r.pos = r.fset.Position(r.comment.Pos())
commentmap.go#L95: r.end = r.fset.Position(r.comment.End())
commentmap.go#L173: qpos = fset.Position(q.Pos()) // current node position
commentmap.go#L187: pgend = fset.Position(pg.End())
commentmap.go#L230: pend = fset.Position(p.End())
print.go#L247: p.printf("%s", p.fset.Position(v))
resolve.go#L22: p.errors.Add(p.fset.Position(pos), msg)
resolve.go#L38: prevDecl = fmt.Sprintf("\n\tprevious declaration at %s", p.fset.Position(pos))
go/build
build.go#L957: importMap[imp.path] = append(importMap[imp.path], fset.Position(imp.pos))
golang.org/x/pkgsite/internal/godoc
godoc.go#L63: filename := p.Fset.Position(f.Package).Filename
render.go#L122: p := p.Fset.Position(n.Pos())
![]() |
The pages are generated with Golds v0.3.2-preview. (GOOS=darwin GOARCH=amd64) Golds is a Go 101 project developed by Tapir Liu. PR and bug reports are welcome and can be submitted to the issue list. Please follow @Go100and1 (reachable from the left QR code) to get the latest news of Golds. |