Include more info in --dump-exit-contexts.
Chris Pressey
3 years ago
140 | 140 | ) |
141 | 141 | |
142 | 142 | def to_json_data(self): |
143 | type_ = self.routine.location.type | |
143 | 144 | return { |
145 | 'routine_inputs': ','.join(sorted(loc.name for loc in type_.inputs)), | |
146 | 'routine_outputs': ','.join(sorted(loc.name for loc in type_.outputs)), | |
147 | 'routine_trashes': ','.join(sorted(loc.name for loc in type_.trashes)), | |
144 | 148 | 'touched': ','.join(sorted(loc.name for loc in self._touched)), |
145 | 149 | 'range': dict((loc.name, '{}-{}'.format(rng[0], rng[1])) for (loc, rng) in self._range.items()), |
146 | 150 | 'writeable': ','.join(sorted(loc.name for loc in self._writeable)), |