go/ast.Ident.Pos (method)

20 uses

	go/ast (current package)
		ast.go#L207: 		return f.Names[0].Pos()
		ast.go#L470: func (x *Ident) Pos() token.Pos    { return x.NamePos }
		ast.go#L758: func (s *LabeledStmt) Pos() token.Pos    { return s.Label.Pos() }
		ast.go#L911: 		return s.Name.Pos()
		ast.go#L915: func (s *ValueSpec) Pos() token.Pos { return s.Names[0].Pos() }
		ast.go#L916: func (s *TypeSpec) Pos() token.Pos  { return s.Name.Pos() }
		resolve.go#L162: 				p.errorf(ident.Pos(), "undeclared name: %s", ident.Name)
		scope.go#L98: 				return n.Pos()
		scope.go#L103: 			return d.Name.Pos()
		scope.go#L109: 				return n.Pos()
		scope.go#L114: 			return d.Name.Pos()
		scope.go#L118: 			return d.Name.Pos()
		scope.go#L122: 			return d.Label.Pos()
		scope.go#L127: 				return ident.Pos()

	go/parser
		parser.go#L111: 			p.error(ident.Pos(), fmt.Sprintf("label %s undefined", ident.Name))
		parser.go#L134: 				p.error(ident.Pos(), fmt.Sprintf("%s redeclared in this block%s", ident.Name, prevDecl))

	go/printer
		nodes.go#L333: 				parLineBeg = p.lineFor(par.Names[0].Pos())
		nodes.go#L1050: 	if line := p.lineFor(x.Sel.Pos()); p.pos.IsValid() && p.pos.Line < line {
		nodes.go#L1051: 		p.print(indent, newline, x.Sel.Pos(), x.Sel)
		nodes.go#L1057: 	p.print(x.Sel.Pos(), x.Sel)