Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(340)

Side by Side Diff: sky/engine/bindings/scripts/idlnode.py

Issue 915293003: Rename sky/engine/bindings2 to sky/engine/bindings (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: more better Created 5 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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
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
OLDNEW
« no previous file with comments | « sky/engine/bindings/scripts/idl_validator.py ('k') | sky/engine/bindings/scripts/interface_dependency_resolver.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698