Resolve compound variable by its object and attributes :param var: an object of variable :param attrs: a sequence of variable's attributes separated by \t (i.e.: obj\tattr1\tattr2) :return: a dictionary of variables's fields
(var, attrs)
| 165 | |
| 166 | |
| 167 | def resolve_compound_var_object_fields(var, attrs): |
| 168 | """ |
| 169 | Resolve compound variable by its object and attributes |
| 170 | |
| 171 | :param var: an object of variable |
| 172 | :param attrs: a sequence of variable's attributes separated by \t (i.e.: obj\tattr1\tattr2) |
| 173 | :return: a dictionary of variables's fields |
| 174 | """ |
| 175 | attr_list = attrs.split("\t") |
| 176 | |
| 177 | for k in attr_list: |
| 178 | type, _type_name, resolver = get_type(var) |
| 179 | var = resolver.resolve(var, k) |
| 180 | |
| 181 | try: |
| 182 | type, _type_name, resolver = get_type(var) |
| 183 | return resolver.get_dictionary(var) |
| 184 | except: |
| 185 | pydev_log.exception() |
| 186 | |
| 187 | |
| 188 | def custom_operation(dbg, thread_id, frame_id, scope, attrs, style, code_or_file, operation_fn_name): |
nothing calls this directly
no test coverage detected