const go/token.NoPos
86 uses
go/token (current package)
position.go#L86: const NoPos Pos = 0
position.go#L90: return p != NoPos
position.go#L347: if p != NoPos {
position.go#L501: if p != NoPos {
position.go#L513: if p != NoPos {
go/ast
ast.go#L211: return token.NoPos
ast.go#L224: return token.NoPos
ast.go#L244: return token.NoPos
ast.go#L256: return token.NoPos
ast.go#L584: func NewIdent(name string) *Ident { return &Ident{token.NoPos, name, nil} }
ast.go#L1079: func (p *Package) Pos() token.Pos { return token.NoPos }
ast.go#L1080: func (p *Package) End() token.Pos { return token.NoPos }
filter.go#L339: var separator = &Comment{token.NoPos, "//"}
scope.go#L133: return token.NoPos
go/parser
parser.go#L1035: Func: token.NoPos,
parser.go#L1064: typ = &ast.FuncType{Func: token.NoPos, Params: params, Results: results}
go/printer
nodes.go#L118: p.exprList(token.NoPos, xlist, 1, mode, token.NoPos, false)
nodes.go#L475: p.setComment(&ast.CommentGroup{List: []*ast.Comment{{Slash: token.NoPos, Text: text}}})
nodes.go#L1346: p.exprList(s.TokPos, s.Rhs, depth, 0, token.NoPos, false)
nodes.go#L1369: p.exprList(token.NoPos, s.Results, 1, noIndent, token.NoPos, false)
nodes.go#L1372: p.exprList(token.NoPos, s.Results, 1, 0, token.NoPos, false)
nodes.go#L1560: p.exprList(token.NoPos, s.Values, 1, 0, token.NoPos, false)
nodes.go#L1642: p.exprList(token.NoPos, s.Values, 1, 0, token.NoPos, false)
go/types
builtins.go#L865: tpar := NewTypeName(token.NoPos, check.pkg, tp.obj.name, nil)
builtins.go#L880: list[i] = NewVar(token.NoPos, nil, "", Default(param))
builtins.go#L886: result = NewTuple(NewVar(token.NoPos, nil, "", res))
call.go#L758: if _, obj := check.scope.LookupParent(ident.Name, token.NoPos); obj != nil {
errors.go#L183: pos = token.NoPos
errors.go#L292: return posSpan{token.NoPos, token.NoPos, token.NoPos}
eval.go#L62: pos = token.NoPos
infer.go#L191: params = check.subst(token.NoPos, params, smap, nil).(*Tuple)
infer.go#L629: if t1 := check.subst(token.NoPos, t0, smap, nil); t1 != t0 {
instantiate.go#L54: if i, err := (*Checker)(nil).verify(token.NoPos, tparams, targs); err != nil {
instantiate.go#L59: inst := (*Checker)(nil).instance(token.NoPos, orig, targs, ctxt)
interface.go#L29: func (t *Interface) typeSet() *_TypeSet { return computeInterfaceTypeSet(t.check, token.NoPos, t) }
object.go#L193: return &PkgName{object{nil, pos, pkg, name, Typ[Invalid], 0, black, token.NoPos}, imported, false}
object.go#L209: return &Const{object{nil, pos, pkg, name, typ, 0, colorFor(typ), token.NoPos}, val}
object.go#L230: return &TypeName{object{nil, pos, pkg, name, typ, 0, colorFor(typ), token.NoPos}}
object.go#L290: return &Var{object: object{nil, pos, pkg, name, typ, 0, colorFor(typ), token.NoPos}}
object.go#L295: return &Var{object: object{nil, pos, pkg, name, typ, 0, colorFor(typ), token.NoPos}, used: true} // parameters are always 'used'
object.go#L302: return &Var{object: object{nil, pos, pkg, name, typ, 0, colorFor(typ), token.NoPos}, embedded: embedded, isField: true}
object.go#L333: return &Func{object{nil, pos, pkg, name, typ, 0, colorFor(typ), token.NoPos}, false}
operand.go#L67: return token.NoPos
package.go#L26: scope := NewScope(Universe, token.NoPos, token.NoPos, fmt.Sprintf("package %q", path))
predicates.go#L287: ybound := check.subst(token.NoPos, ytparams[i].bound, smap, nil)
predicates.go#L293: yparams = check.subst(token.NoPos, y.params, smap, nil).(*Tuple)
predicates.go#L294: yresults = check.subst(token.NoPos, y.results, smap, nil).(*Tuple)
predicates.go#L306: xset := computeUnionTypeSet(nil, unionSets, token.NoPos, x)
predicates.go#L307: yset := computeUnionTypeSet(nil, unionSets, token.NoPos, y)
resolver.go#L120: check.declare(check.pkg.scope, ident, obj, token.NoPos)
resolver.go#L336: check.declare(fileScope, nil, pkgName, token.NoPos)
resolver.go#L423: check.declare(pkg.scope, d.decl.Name, obj, token.NoPos)
signature.go#L179: scope := NewScope(check.scope, token.NoPos, token.NoPos, "function body (temp. scope)")
signature.go#L196: recv = NewParam(token.NoPos, nil, "", Typ[Invalid]) // ignore recv below
universe.go#L76: def(NewTypeName(token.NoPos, nil, t.name, t))
universe.go#L79: def(NewTypeName(token.NoPos, nil, t.name, t))
universe.go#L86: def(NewTypeName(token.NoPos, nil, "any", &Interface{complete: true, tset: &topTypeSet}))
universe.go#L90: obj := NewTypeName(token.NoPos, nil, "error", nil)
universe.go#L95: recv := NewVar(token.NoPos, nil, "", typ)
universe.go#L96: res := NewVar(token.NoPos, nil, "", Typ[String])
universe.go#L98: err := NewFunc(token.NoPos, nil, "Error", sig)
universe.go#L102: computeInterfaceTypeSet(nil, token.NoPos, ityp) // prevent races due to lazy computation of tset
universe.go#L110: obj := NewTypeName(token.NoPos, nil, "comparable", nil)
universe.go#L134: def(NewConst(token.NoPos, nil, c.name, Typ[c.kind], c.val))
universe.go#L229: Universe = NewScope(nil, token.NoPos, token.NoPos, "universe")
golang.org/x/tools/internal/gcimporter
bimport.go#L309: return token.NoPos
bimport.go#L663: recv = types.NewVar(token.NoPos, parent, "", baseType)
bimport.go#L747: return types.NewVar(token.NoPos, pkg, name, t), isddd
iexport.go#L582: if pos == token.NoPos {
iexport.go#L800: w.pos(token.NoPos)
iimport.go#L724: return token.NoPos
iimport.go#L756: return token.NoPos
iimport.go#L844: recv = types.NewVar(token.NoPos, r.currPkg, "", base)
ureader_yes.go#L177: return token.NoPos
golang.org/x/tools/internal/typeparams
common.go#L47: return nil, token.NoPos, nil, token.NoPos