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

Unified Diff: lib/dom/scripts/systeminterface.py

Issue 10704100: Do not split attributes on getters and setters in databasebuilder. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 8 years, 5 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 side-by-side diff with in-line comments
Download patch
Index: lib/dom/scripts/systeminterface.py
diff --git a/lib/dom/scripts/systeminterface.py b/lib/dom/scripts/systeminterface.py
index 6814f258f99606dd3d28a90bf4584ec34b19391f..64b8682963d15b6957a5991c523a6d8dd58901ab 100644
--- a/lib/dom/scripts/systeminterface.py
+++ b/lib/dom/scripts/systeminterface.py
@@ -170,7 +170,9 @@ class DartInterfaceGenerator(systembase.BaseGenerator):
constant.type.id),
VALUE=constant.value)
- def AddAttribute(self, getter, setter):
+ def AddAttribute(self, attribute):
+ getter = attribute
+ setter = attribute if not systembase.IsReadOnly(attribute) else None
if getter and setter and getter.type.id == setter.type.id:
self._members_emitter.Emit('\n $TYPE $NAME;\n',
NAME=DartDomNameOfAttribute(getter),

Powered by Google App Engine
This is Rietveld 408576698