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

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

Issue 1779023002: Trying to fix SQLResultSetRowList's subscript operator to do type conversion (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: Use _OperationRequiresConversion instead of supplemental IDL" 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/dom.json ('k') | tools/dom/scripts/generator.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) 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
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
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()
OLDNEW
« no previous file with comments | « tools/dom/dom.json ('k') | tools/dom/scripts/generator.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698