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

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

Issue 9695015: Provide DartDomNameOfAttribute (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: fix native Created 8 years, 9 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: client/dom/scripts/systeminterface.py
diff --git a/client/dom/scripts/systeminterface.py b/client/dom/scripts/systeminterface.py
index b316490fc0cd6069ca5f44ad2c5df5b52c45092e..2eadba7dcc0e7240c483de898cc09bcdf7f3671e 100644
--- a/client/dom/scripts/systeminterface.py
+++ b/client/dom/scripts/systeminterface.py
@@ -182,11 +182,13 @@ class DartInterfaceGenerator(object):
def AddAttribute(self, getter, setter):
if getter and setter and getter.type.id == setter.type.id:
self._members_emitter.Emit('\n $TYPE $NAME;\n',
- NAME=getter.id, TYPE=DartType(getter.type.id));
+ NAME=DartDomNameOfAttribute(getter),
+ TYPE=DartType(getter.type.id));
return
if getter and not setter:
self._members_emitter.Emit('\n final $TYPE $NAME;\n',
- NAME=getter.id, TYPE=DartType(getter.type.id));
+ NAME=DartDomNameOfAttribute(getter),
+ TYPE=DartType(getter.type.id));
return
raise Exception('Unexpected getter/setter combination %s %s' %
(getter, setter))

Powered by Google App Engine
This is Rietveld 408576698