useDeclMap for resolving function calls