def _build_module_db(self):
tdict = collections.defaultdict(lambda: [])<EOL>for callable_name, callable_dict in self._exh_obj.callables_db.items():<EOL><INDENT>fname, line_no = callable_dict["<STR_LIT>"]<EOL>cname = (<EOL>"<STR_LIT>".format(cls_name=callable_name)<EOL>if callable_dict["<STR_LIT:type>"] == "<STR_LIT:class>"<EOL>else callable_name<EOL>)<EOL>tdict[fname].append({"<STR_LIT:name>": cname, "<STR_LIT>": line_no})<EOL><DEDENT>for fname in tdict.keys():<EOL><INDENT>self._module_obj_db[fname] = sorted(<EOL>tdict[fname], key=lambda idict: idict["<STR_LIT>"]<EOL>)<EOL><DEDENT>
Build database of module callables sorted by line number.

The database is a dictionary whose keys are module file names and
whose values are lists of dictionaries containing name and line
number of callables in that module