| 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 for the systems to generate | 6 """This module provides shared functionality for the systems to generate |
| 7 native binding from the IDL database.""" | 7 native binding from the IDL database.""" |
| 8 | 8 |
| 9 import emitter | 9 import emitter |
| 10 import os | 10 import os |
| (...skipping 949 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 960 parent_interface = _FindInHierarchy(database, parent_interface, test) | 960 parent_interface = _FindInHierarchy(database, parent_interface, test) |
| 961 if parent_interface: | 961 if parent_interface: |
| 962 return parent_interface | 962 return parent_interface |
| 963 | 963 |
| 964 def _ToWebKitName(name): | 964 def _ToWebKitName(name): |
| 965 name = name[0].lower() + name[1:] | 965 name = name[0].lower() + name[1:] |
| 966 name = re.sub(r'^(hTML|uRL|jS|xML|xSLT)', lambda s: s.group(1).lower(), | 966 name = re.sub(r'^(hTML|uRL|jS|xML|xSLT)', lambda s: s.group(1).lower(), |
| 967 name) | 967 name) |
| 968 return re.sub(r'^(create|exclusive)', lambda s: 'is' + s.group(1).capitalize()
, | 968 return re.sub(r'^(create|exclusive)', lambda s: 'is' + s.group(1).capitalize()
, |
| 969 name) | 969 name) |
| OLD | NEW |