func refersTo(n ast.Node, x *ast.Ident) bool {
	id, ok := n.(*ast.Ident)
	// The test of id.Name == x.Name handles top-level unresolved
	// identifiers, which all have Obj == nil.
	return ok && id.Obj == x.Obj && id.Name == x.Name
}
func refersTo(n ast.Node, x *ast.Ident) bool {
	id, ok := n.(*ast.Ident)
	
	
	return ok && id.Obj == x.Obj && id.Name == x.Name
}
func refersTo ( n ast . Node , x * ast . Ident ) bool { id , ok := n . ( * ast . Ident ) // The test of id.Name == x.Name handles top-level unresolved // identifiers, which all have Obj == nil. return ok && id . Obj == x . Obj && id . Name == x . Name }
// refersTo returns true if n is a reference to the same object as x.
refersTo returns true if n is a reference to the same object as x .