| 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 os | 6 import os |
| 7 import sys | 7 import sys |
| 8 | 8 |
| 9 import idl_definitions | 9 import idl_definitions |
| 10 from idl_types import IdlType, IdlUnionType, IdlArrayOrSequenceType | 10 from idl_types import IdlType, IdlUnionType, IdlArrayOrSequenceType |
| (...skipping 794 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 805 """IDLDictNode specialization for one annotation.""" | 805 """IDLDictNode specialization for one annotation.""" |
| 806 def __init__(self, ast=None): | 806 def __init__(self, ast=None): |
| 807 IDLDictNode.__init__(self, ast) | 807 IDLDictNode.__init__(self, ast) |
| 808 self.id = None | 808 self.id = None |
| 809 if not ast: | 809 if not ast: |
| 810 return | 810 return |
| 811 for arg in self._find_all(ast, 'AnnotationArg'): | 811 for arg in self._find_all(ast, 'AnnotationArg'): |
| 812 name = self._find_first(arg, 'Id') | 812 name = self._find_first(arg, 'Id') |
| 813 value = self._find_first(arg, 'AnnotationArgValue') | 813 value = self._find_first(arg, 'AnnotationArgValue') |
| 814 self[name] = value | 814 self[name] = value |
| OLD | NEW |