Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(56)

Side by Side Diff: tools/dom/scripts/databasebuilder.py

Issue 1752983003: Moved ChromiumSubscribeUniform to web_gl (Closed) Base URL: git@github.com:dart-lang/sdk.git@integration
Patch Set: Merged from integration to master Created 4 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « tools/dom/scripts/dartdomgenerator.py ('k') | tools/dom/scripts/htmldartgenerator.py » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 599 matching lines...) Expand 10 before | Expand all | Expand 10 after
610 610
611 # Parse the IDL files in serial. 611 # Parse the IDL files in serial.
612 for file_path in file_paths: 612 for file_path in file_paths:
613 file_path = os.path.normpath(file_path) 613 file_path = os.path.normpath(file_path)
614 idl_file = _load_idl_file(self.build, file_path, import_options) 614 idl_file = _load_idl_file(self.build, file_path, import_options)
615 _logger.info('Processing %s' % os.path.splitext(os.path.basename(file_path ))[0]) 615 _logger.info('Processing %s' % os.path.splitext(os.path.basename(file_path ))[0])
616 self._process_idl_file(idl_file, import_options, is_dart_idl) 616 self._process_idl_file(idl_file, import_options, is_dart_idl)
617 617
618 end_time = time.time() 618 end_time = time.time()
619 619
620 for warning in report_unions_to_any():
621 _logger.warning(warning)
622
620 print 'Total %s files %sprocessed in databasebuilder in %s seconds' % \ 623 print 'Total %s files %sprocessed in databasebuilder in %s seconds' % \
621 (len(file_paths), '', round((end_time - start_time), 2)) 624 (len(file_paths), '', round((end_time - start_time), 2))
622 625
623 def _process_idl_file(self, idl_file, import_options, dart_idl = False): 626 def _process_idl_file(self, idl_file, import_options, dart_idl = False):
624 # TODO(terry): strip_ext_attributes on an idl_file does nothing. 627 # TODO(terry): strip_ext_attributes on an idl_file does nothing.
625 #self._strip_ext_attributes(idl_file) 628 #self._strip_ext_attributes(idl_file)
626 self._resolve_type_defs(idl_file) 629 self._resolve_type_defs(idl_file)
627 self._rename_types(idl_file, import_options) 630 self._rename_types(idl_file, import_options)
628 631
629 def enabled(idl_node): 632 def enabled(idl_node):
(...skipping 389 matching lines...) Expand 10 before | Expand all | Expand 10 after
1019 | columns[0] | columns[1] | columns[2] | ... | 1022 | columns[0] | columns[1] | columns[2] | ... |
1020 """ 1023 """
1021 if len(columns) > 0: 1024 if len(columns) > 0:
1022 for column in columns: 1025 for column in columns:
1023 value = '' if not column else column 1026 value = '' if not column else column
1024 sys.stdout.write('|{0:^{1}}'.format(value, self._TABULATE_WIDTH())) 1027 sys.stdout.write('|{0:^{1}}'.format(value, self._TABULATE_WIDTH()))
1025 else: 1028 else:
1026 sys.stdout.write('|{0:^{1}}'.format('', self._TABULATE_WIDTH())) 1029 sys.stdout.write('|{0:^{1}}'.format('', self._TABULATE_WIDTH()))
1027 1030
1028 sys.stdout.write('|\n') 1031 sys.stdout.write('|\n')
OLDNEW
« no previous file with comments | « tools/dom/scripts/dartdomgenerator.py ('k') | tools/dom/scripts/htmldartgenerator.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698