Updated class Identify::getFunctionDeclarations

I basically copied getAssignmentStatements and modified it for function
declarations.