go/token.FileSet.Position (method)
25 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#L981: importMap[imp.path] = append(importMap[imp.path], fset.Position(imp.pos))
go/types
api.go#L62: return fmt.Sprintf("%s: %s", err.Fset.Position(err.Pos), err.Msg)
errors.go#L88: arg = fset.Position(a).String()
errors.go#L132: check.fset.Position(pos),
eval.go#L82: return fmt.Errorf("no position %s found in package %s", fset.Position(pos), pkg.name)
expr.go#L1646: panic(fmt.Sprintf("%s: unknown expression type %T", check.fset.Position(e.Pos()), e))
labels.go#L160: check.fset.Position(varDeclPos).Line,
resolver.go#L75: check.errorf(s, code, "extra init expr at %s", check.fset.Position(init.Pos()))
resolver.go#L250: fileDir := dir(check.fset.Position(file.Name.Pos()).Filename)
stmt.go#L147: check.errorf(d, _DuplicateDefault, "multiple defaults (first at %s)", check.fset.Position(first.Pos()))
golang.org/x/tools/go/packages
packages.go#L927: Pos: err.Fset.Position(err.Pos).String(),
golang.org/x/tools/internal/gcimporter
bexport.go#L274: pos := p.fset.Position(obj.Pos())
iexport.go#L598: p := w.p.fset.Position(pos)
iexport.go#L632: 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: