collect source map data for function declarations (first step towards #22)