If I run the declare command it returns some functions
declare
$ declare -F | grep \'f [^_]\' declare -f dequote declare -f quote declare -f quote_readl
To find the file name and line number of a function declaration in bash, use shopt -s extdebug:
shopt -s extdebug
$ shopt -s extdebug $ declare -F quote quote 143 /usr/share/bash-completion/bash_completion