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 311 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
322 'ShadowRoot.getElementsByName': [ | 322 'ShadowRoot.getElementsByName': [ |
323 "@Creates('NodeList|HtmlCollection')", | 323 "@Creates('NodeList|HtmlCollection')", |
324 "@Returns('NodeList|HtmlCollection')", | 324 "@Returns('NodeList|HtmlCollection')", |
325 ], | 325 ], |
326 | 326 |
327 'ShadowRoot.getElementsByTagName': [ | 327 'ShadowRoot.getElementsByTagName': [ |
328 "@Creates('NodeList|HtmlCollection')", | 328 "@Creates('NodeList|HtmlCollection')", |
329 "@Returns('NodeList|HtmlCollection')", | 329 "@Returns('NodeList|HtmlCollection')", |
330 ], | 330 ], |
331 | 331 |
332 'SQLResultSetRowList.item': ["@Creates('=Object')"], | |
333 | |
334 # Touch targets are Elements in a Document, or the Document. | 332 # Touch targets are Elements in a Document, or the Document. |
335 'Touch.target': [ | 333 'Touch.target': [ |
336 "@Creates('Element|Document')", | 334 "@Creates('Element|Document')", |
337 "@Returns('Element|Document')", | 335 "@Returns('Element|Document')", |
338 ], | 336 ], |
339 | 337 |
340 'TrackEvent.track': [ | 338 'TrackEvent.track': [ |
341 "@Creates('Null')", | 339 "@Creates('Null')", |
342 ], | 340 ], |
343 | 341 |
(...skipping 543 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
887 pass | 885 pass |
888 else: | 886 else: |
889 _logger.warn('Unknown support_level - %s:%s' % (interface_id, member_id)) | 887 _logger.warn('Unknown support_level - %s:%s' % (interface_id, member_id)) |
890 | 888 |
891 return annotations | 889 return annotations |
892 | 890 |
893 def Flush(self): | 891 def Flush(self): |
894 json_file = open(self._api_status_path, 'w+') | 892 json_file = open(self._api_status_path, 'w+') |
895 json.dump(self._types, json_file, indent=2, separators=(',', ': '), sort_key
s=True) | 893 json.dump(self._types, json_file, indent=2, separators=(',', ': '), sort_key
s=True) |
896 json_file.close() | 894 json_file.close() |
OLD | NEW |