micropython/report.py | raw changeset files shortlog |
1.1 --- a/micropython/report.py Tue Nov 06 00:16:26 2012 +0100 1.2 +++ b/micropython/report.py Mon Nov 12 23:55:42 2012 +0100 1.3 @@ -635,6 +635,9 @@ 1.4 self.program.unknown_target_nodes = [] 1.5 self.units = [] 1.6 1.7 + def get_unit(self): 1.8 + return self.units[-1] 1.9 + 1.10 def to_stream(self, stream): 1.11 1.12 "Write the annotated code to the given 'stream'."