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

Side by Side Diff: lib/html/scripts/idlnode.py

Issue 10913125: Remove lib/dom directory! (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 8 years, 3 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 | Annotate | Revision Log
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 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
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
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698