# HG changeset patch # User Paul Boddie # Date 1338852025 -7200 # Node ID 43f315a8e0f0ae4c7b4dc00481578b397a87d864 # Parent 57d6f164821b05a1d9441b1b1edbc0803d727c4d Added warning annotations where no attribute access targets are found from usage observations. diff -r 57d6f164821b -r 43f315a8e0f0 micropython/report.py --- a/micropython/report.py Mon Jun 04 01:50:55 2012 +0200 +++ b/micropython/report.py Tue Jun 05 01:20:25 2012 +0200 @@ -86,6 +86,11 @@ z-index: 3; } + .no-targets { + background-color: #d00; + color: white; + } + .accessor, .name, .operation { @@ -921,7 +926,7 @@ self._accessor_end(target_names) self._span_start("attr") self.stream.write(".") - self._span(node.attrname, "attrname") + self._span(node.attrname, "attrname" + (not target_names and " no-targets" or "")) self._span_end() self._span_end() @@ -1013,7 +1018,7 @@ self._accessor_end(target_names) self._span_start("attr") self.stream.write(".") - self._span(node.attrname, "attrname") + self._span(node.attrname, "attrname" + (not target_names and " no-targets" or "")) self._span_end() self._span_end()