| 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 243 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 254 "@Creates('int|bool|Null')", | 254 "@Creates('int|bool|Null')", |
| 255 "@Returns('int|bool|Null')", | 255 "@Returns('int|bool|Null')", |
| 256 ], | 256 ], |
| 257 | 257 |
| 258 'WebGLRenderingContext.getRenderbufferParameter': [ | 258 'WebGLRenderingContext.getRenderbufferParameter': [ |
| 259 "@Creates('int|Null')", | 259 "@Creates('int|Null')", |
| 260 "@Returns('int|Null')", | 260 "@Returns('int|Null')", |
| 261 ], | 261 ], |
| 262 | 262 |
| 263 'WebGLRenderingContext.getShaderParameter': [ | 263 'WebGLRenderingContext.getShaderParameter': [ |
| 264 "@Creates('int|Null')", | 264 "@Creates('int|bool|Null')", |
| 265 "@Returns('int|Null')", | 265 "@Returns('int|bool|Null')", |
| 266 ], | 266 ], |
| 267 | 267 |
| 268 'WebGLRenderingContext.getTexParameter': [ | 268 'WebGLRenderingContext.getTexParameter': [ |
| 269 "@Creates('int|Null')", | 269 "@Creates('int|Null')", |
| 270 "@Returns('int|Null')", | 270 "@Returns('int|Null')", |
| 271 ], | 271 ], |
| 272 | 272 |
| 273 'WebGLRenderingContext.getUniform': [ | 273 'WebGLRenderingContext.getUniform': [ |
| 274 "@Creates('Null|num|String|bool|JSExtendableArray|Float32List|Int32List" | 274 "@Creates('Null|num|String|bool|JSExtendableArray|Float32List|Int32List" |
| 275 "|Uint32List')", | 275 "|Uint32List')", |
| (...skipping 476 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 752 pass | 752 pass |
| 753 else: | 753 else: |
| 754 _logger.warn('Unknown support_level - %s:%s' % (interface_id, member_id)) | 754 _logger.warn('Unknown support_level - %s:%s' % (interface_id, member_id)) |
| 755 | 755 |
| 756 return annotations | 756 return annotations |
| 757 | 757 |
| 758 def Flush(self): | 758 def Flush(self): |
| 759 json_file = open(self._api_status_path, 'w+') | 759 json_file = open(self._api_status_path, 'w+') |
| 760 json.dump(self._types, json_file, indent=2, separators=(',', ': '), sort_key
s=True) | 760 json.dump(self._types, json_file, indent=2, separators=(',', ': '), sort_key
s=True) |
| 761 json_file.close() | 761 json_file.close() |
| OLD | NEW |