| OLD | NEW |
| 1 #!/usr/bin/python | 1 #!/usr/bin/python |
| 2 # Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file | 2 # Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file |
| 3 # for details. All rights reserved. Use of this source code is governed by a | 3 # for details. All rights reserved. Use of this source code is governed by a |
| 4 # BSD-style license that can be found in the LICENSE file. | 4 # BSD-style license that can be found in the LICENSE file. |
| 5 | 5 |
| 6 import copy | 6 import copy |
| 7 import database | 7 import database |
| 8 import logging | 8 import logging |
| 9 import monitored | 9 import monitored |
| 10 import multiprocessing | 10 import multiprocessing |
| (...skipping 283 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 294 def _build_signatures_map(self, idl_node_list): | 294 def _build_signatures_map(self, idl_node_list): |
| 295 """Creates a hash table mapping signatures to idl_nodes for the | 295 """Creates a hash table mapping signatures to idl_nodes for the |
| 296 given list of nodes""" | 296 given list of nodes""" |
| 297 res = {} | 297 res = {} |
| 298 for idl_node in idl_node_list: | 298 for idl_node in idl_node_list: |
| 299 sig = self._sign(idl_node) | 299 sig = self._sign(idl_node) |
| 300 if sig is None: | 300 if sig is None: |
| 301 continue | 301 continue |
| 302 if sig in res: | 302 if sig in res: |
| 303 op = res[sig] | 303 op = res[sig] |
| 304 # Only report if the the operations that match are either both suppresse
d | 304 # Only report if the operations that match are either both suppressed |
| 305 # or both not suppressed. Optional args aren't part of type signature | 305 # or both not suppressed. Optional args aren't part of type signature |
| 306 # for this routine. Suppressing a non-optional type and supplementing | 306 # for this routine. Suppressing a non-optional type and supplementing |
| 307 # with an optional type appear the same. | 307 # with an optional type appear the same. |
| 308 if idl_node.is_fc_suppressed == op.is_fc_suppressed: | 308 if idl_node.is_fc_suppressed == op.is_fc_suppressed: |
| 309 raise RuntimeError('Warning: Multiple members have the same ' | 309 raise RuntimeError('Warning: Multiple members have the same ' |
| 310 ' signature: "%s"' % sig) | 310 ' signature: "%s"' % sig) |
| 311 res[sig] = idl_node | 311 res[sig] = idl_node |
| 312 return res | 312 return res |
| 313 | 313 |
| 314 def _get_parent_interfaces(self, interface): | 314 def _get_parent_interfaces(self, interface): |
| (...skipping 707 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1022 | columns[0] | columns[1] | columns[2] | ... | | 1022 | columns[0] | columns[1] | columns[2] | ... | |
| 1023 """ | 1023 """ |
| 1024 if len(columns) > 0: | 1024 if len(columns) > 0: |
| 1025 for column in columns: | 1025 for column in columns: |
| 1026 value = '' if not column else column | 1026 value = '' if not column else column |
| 1027 sys.stdout.write('|{0:^{1}}'.format(value, self._TABULATE_WIDTH())) | 1027 sys.stdout.write('|{0:^{1}}'.format(value, self._TABULATE_WIDTH())) |
| 1028 else: | 1028 else: |
| 1029 sys.stdout.write('|{0:^{1}}'.format('', self._TABULATE_WIDTH())) | 1029 sys.stdout.write('|{0:^{1}}'.format('', self._TABULATE_WIDTH())) |
| 1030 | 1030 |
| 1031 sys.stdout.write('|\n') | 1031 sys.stdout.write('|\n') |
| OLD | NEW |