updateFunctionDeclaration