Parse function and variable declarations uniformly, whether they're at teh top level, or inside a method.