| 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 base functionality for systems to generate | 6 """This module provides base functionality for systems to generate |
| 7 Dart APIs from the IDL database.""" | 7 Dart APIs from the IDL database.""" |
| 8 | 8 |
| 9 import os | 9 import os |
| 10 from generator import * | 10 from generator import * |
| (...skipping 222 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 233 self.templates = templates | 233 self.templates = templates |
| 234 self.database = database | 234 self.database = database |
| 235 self.emitters = emitters | 235 self.emitters = emitters |
| 236 self.type_registry = type_registry | 236 self.type_registry = type_registry |
| 237 self.renamer = renamer | 237 self.renamer = renamer |
| 238 self.output_dir = output_dir | 238 self.output_dir = output_dir |
| 239 | 239 |
| 240 | 240 |
| 241 def IsReadOnly(attribute): | 241 def IsReadOnly(attribute): |
| 242 return attribute.is_read_only or 'Replaceable' in attribute.ext_attrs | 242 return attribute.is_read_only or 'Replaceable' in attribute.ext_attrs |
| OLD | NEW |