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

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

Issue 26115003: Fixing dart2js size regression from CustomElement.detail (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 7 years, 2 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 | Annotate | Revision Log
« no previous file with comments | « sdk/lib/html/dart2js/html_dart2js.dart ('k') | no next file » | 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) 2012, the Dart project authors. Please see the AUTHORS file 2 # Copyright (c) 2012, 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 """This module provides shared functionality to provide Dart metadata for 6 """This module provides shared functionality to provide Dart metadata for
7 DOM APIs. 7 DOM APIs.
8 """ 8 """
9 9
10 import copy 10 import copy
(...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after
49 'CanvasRenderingContext2D.fillStyle': [ 49 'CanvasRenderingContext2D.fillStyle': [
50 "@Creates('String|CanvasGradient|CanvasPattern')", 50 "@Creates('String|CanvasGradient|CanvasPattern')",
51 "@Returns('String|CanvasGradient|CanvasPattern')", 51 "@Returns('String|CanvasGradient|CanvasPattern')",
52 ], 52 ],
53 53
54 'CanvasRenderingContext2D.strokeStyle': [ 54 'CanvasRenderingContext2D.strokeStyle': [
55 "@Creates('String|CanvasGradient|CanvasPattern')", 55 "@Creates('String|CanvasGradient|CanvasPattern')",
56 "@Returns('String|CanvasGradient|CanvasPattern')", 56 "@Returns('String|CanvasGradient|CanvasPattern')",
57 ], 57 ],
58 58
59 'CustomEvent.detail': [ 59 'CustomEvent._detail': [
60 "@Creates('Null')", 60 "@Creates('Null')",
61 ], 61 ],
62 62
63 # Normally Window is nevernull, but starting from a <template> element in 63 # Normally Window is nevernull, but starting from a <template> element in
64 # JavaScript, this will be null: 64 # JavaScript, this will be null:
65 # template.content.ownerDocument.defaultView 65 # template.content.ownerDocument.defaultView
66 'Document.window': [ 66 'Document.window': [
67 "@Creates('Window|=Object|Null')", 67 "@Creates('Window|=Object|Null')",
68 "@Returns('Window|=Object|Null')", 68 "@Returns('Window|=Object|Null')",
69 ], 69 ],
(...skipping 705 matching lines...) Expand 10 before | Expand all | Expand 10 after
775 pass 775 pass
776 else: 776 else:
777 _logger.warn('Unknown support_level - %s:%s' % (interface_id, member_id)) 777 _logger.warn('Unknown support_level - %s:%s' % (interface_id, member_id))
778 778
779 return annotations 779 return annotations
780 780
781 def Flush(self): 781 def Flush(self):
782 json_file = open(self._api_status_path, 'w+') 782 json_file = open(self._api_status_path, 'w+')
783 json.dump(self._types, json_file, indent=2, separators=(',', ': '), sort_key s=True) 783 json.dump(self._types, json_file, indent=2, separators=(',', ': '), sort_key s=True)
784 json_file.close() 784 json_file.close()
OLDNEW
« no previous file with comments | « sdk/lib/html/dart2js/html_dart2js.dart ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698