Why do you need WND at all? FunctionDecl is a NamedDecl...