| OLD | NEW |
| 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 184 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 195 'IDBVersionChangeEvent.newVersion': [ | 195 'IDBVersionChangeEvent.newVersion': [ |
| 196 "@Creates('int|String|Null')", | 196 "@Creates('int|String|Null')", |
| 197 "@Returns('int|String|Null')", | 197 "@Returns('int|String|Null')", |
| 198 ], | 198 ], |
| 199 | 199 |
| 200 'IDBVersionChangeEvent.oldVersion': [ | 200 'IDBVersionChangeEvent.oldVersion': [ |
| 201 "@Creates('int|String|Null')", | 201 "@Creates('int|String|Null')", |
| 202 "@Returns('int|String|Null')", | 202 "@Returns('int|String|Null')", |
| 203 ], | 203 ], |
| 204 | 204 |
| 205 'MessageEvent.ports': ["@Creates('JSExtendableArray')"], | |
| 206 | |
| 207 'MessageEvent.data': [ | 205 'MessageEvent.data': [ |
| 208 "@annotation_Creates_SerializedScriptValue", | 206 "@annotation_Creates_SerializedScriptValue", |
| 209 "@annotation_Returns_SerializedScriptValue", | 207 "@annotation_Returns_SerializedScriptValue", |
| 210 ], | 208 ], |
| 211 | 209 |
| 210 'MessageEvent.ports': ["@Creates('JSExtendableArray')"], |
| 211 |
| 212 'MessageEvent.source': [ |
| 213 "@Creates('Null')", |
| 214 "@Returns('EventTarget|=Object')", |
| 215 ], |
| 216 |
| 212 'Metadata.modificationTime': [ | 217 'Metadata.modificationTime': [ |
| 213 "@Creates('Null')", # JS date object. | 218 "@Creates('Null')", # JS date object. |
| 214 ], | 219 ], |
| 215 | 220 |
| 216 'MouseEvent.relatedTarget': [ | 221 'MouseEvent.relatedTarget': [ |
| 217 "@Creates('Node')", | 222 "@Creates('Node')", |
| 218 "@Returns('EventTarget|=Object')", | 223 "@Returns('EventTarget|=Object')", |
| 219 ], | 224 ], |
| 220 | 225 |
| 221 'PopStateEvent.state': [ | 226 'PopStateEvent.state': [ |
| (...skipping 534 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 756 pass | 761 pass |
| 757 else: | 762 else: |
| 758 _logger.warn('Unknown support_level - %s:%s' % (interface_id, member_id)) | 763 _logger.warn('Unknown support_level - %s:%s' % (interface_id, member_id)) |
| 759 | 764 |
| 760 return annotations | 765 return annotations |
| 761 | 766 |
| 762 def Flush(self): | 767 def Flush(self): |
| 763 json_file = open(self._api_status_path, 'w+') | 768 json_file = open(self._api_status_path, 'w+') |
| 764 json.dump(self._types, json_file, indent=2, separators=(',', ': '), sort_key
s=True) | 769 json.dump(self._types, json_file, indent=2, separators=(',', ': '), sort_key
s=True) |
| 765 json_file.close() | 770 json_file.close() |
| OLD | NEW |