try to infer ident if something else was detected
try to infer ident if something else was detected

in some cases, SelectedNode is set to ast.FuncDecl instead of ast.Ident, even if
the -pos flag was given correctly. In many cases, it's not a problem as the
Ident is part of the struct (e.g. for FuncDecl)

godoctor/godoctor