| OLD | NEW |
| 1 #!/usr/bin/python | 1 #!/usr/bin/python |
| 2 # Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file | 2 # Copyright (c) 2011, 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 import sys | 6 import sys |
| 7 | 7 |
| 8 | 8 |
| 9 class IDLNode(object): | 9 class IDLNode(object): |
| 10 """Base class for all IDL elements. | 10 """Base class for all IDL elements. |
| (...skipping 473 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 484 """IDLDictNode specialization for one annotation.""" | 484 """IDLDictNode specialization for one annotation.""" |
| 485 def __init__(self, ast=None): | 485 def __init__(self, ast=None): |
| 486 IDLDictNode.__init__(self, ast) | 486 IDLDictNode.__init__(self, ast) |
| 487 self.id = None | 487 self.id = None |
| 488 if not ast: | 488 if not ast: |
| 489 return | 489 return |
| 490 for arg in self._find_all(ast, 'AnnotationArg'): | 490 for arg in self._find_all(ast, 'AnnotationArg'): |
| 491 name = self._find_first(arg, 'Id') | 491 name = self._find_first(arg, 'Id') |
| 492 value = self._find_first(arg, 'AnnotationArgValue') | 492 value = self._find_first(arg, 'AnnotationArgValue') |
| 493 self[name] = value | 493 self[name] = value |
| OLD | NEW |