Extracting names of functions defined in a script with treesitter