go/token.FileSet.Position (method)
27 uses
go/token (current package)
position.go#L587: func (s *FileSet) Position(p Pos) (pos Position) {
go/ast
commentmap.go#L82: r.pos = r.fset.Position(r.comment.Pos())
commentmap.go#L83: r.end = r.fset.Position(r.comment.End())
commentmap.go#L157: qpos = fset.Position(q.Pos()) // current node position
commentmap.go#L171: pgend = fset.Position(pg.End())
commentmap.go#L214: 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#L1039: importMap[imp.path] = append(importMap[imp.path], fset.Position(imp.pos))
read.go#L477: info.parseErr = scanner.Error{Pos: info.fset.Position(spec.Pos()), Msg: "invalid import path: " + path}
read.go#L500: info.directives = append(info.directives, Directive{c.Text, info.fset.Position(c.Slash)})
go/types
api.go#L65: return fmt.Sprintf("%s: %s", err.Fset.Position(err.Pos), err.Msg)
errors.go#L97: fmt.Fprintf(&buf, "%s: ", err.check.fset.Position(p.posn.Pos()))
eval.go#L81: return fmt.Errorf("no position %s found in package %s", fset.Position(pos), pkg.name)
expr.go#L1151: panic(fmt.Sprintf("%s: unknown expression type %T", check.fset.Position(e.Pos()), e))
format.go#L29: arg = fset.Position(a).String()
format.go#L92: check.fset.Position(pos),
labels.go#L158: check.fset.Position(varDeclPos).Line,
resolver.go#L77: check.errorf(s, code, "extra init expr at %s", check.fset.Position(init.Pos()))
resolver.go#L259: fileDir := dir(check.fset.Position(file.Name.Pos()).Filename)
stmt.go#L145: check.errorf(d, DuplicateDefault, "multiple defaults (first at %s)", check.fset.Position(first.Pos()))
golang.org/x/tools/go/packages
packages.go#L1108: Pos: err.Fset.Position(err.Pos).String(),
golang.org/x/tools/internal/gcimporter
iexport.go#L885: p := w.p.fset.Position(pos)
iexport.go#L919: p := w.p.fset.Position(pos)
gotest.tools/v3/internal/source
defers.go#L15: case fileset.Position(node.End()).Line == lineNum:
source.go#L70: case fileset.Position(node.Pos()).Line == lineNum: