// Visit adds the names of all identifiers to the dictionary.
Visit adds the names of all identifiers to the dictionary.
// Visit adds the names of all identifiers to the dictionary .
func (a *adder) Visit(n ast.Node) ast.Visitor {
	if n, ok := n.(*ast.Ident); ok {
		ok = a.spelling.Add(n.Name)
		if !ok {
			a.failed++
		}
	}
	return a
}
func ( a * adder ) Visit ( n ast . Node ) ast . Visitor { if n , ok := n . ( * ast . Ident ) ; ok { ok = a . spelling . Add ( n . Name ) if ! ok { a . failed ++ } } return a }
Visit adds the names of all identifiers to the dictionary.
Visit adds the names of all identifiers to the dictionary .