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

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

Issue 10107010: Map IDBAny and IDBKey to Dynamic (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 8 years, 8 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
« no previous file with comments | « lib/dom/scripts/systemhtml.py ('k') | lib/dom/scripts/systemnative.py » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: lib/dom/scripts/systeminterface.py
diff --git a/lib/dom/scripts/systeminterface.py b/lib/dom/scripts/systeminterface.py
index ca61eae4f1156f94ec161848aeda38a52976f8fd..9366b3d101015990f6f8ba104d0894fdb39732ca 100644
--- a/lib/dom/scripts/systeminterface.py
+++ b/lib/dom/scripts/systeminterface.py
@@ -175,21 +175,24 @@ class DartInterfaceGenerator(object):
self._EmitConstant(self._members_emitter, constant)
def _EmitConstant(self, emitter, constant):
- emitter.Emit('\n static final $TYPE $NAME = $VALUE;\n',
+ emitter.Emit('\n static final $TYPE$NAME = $VALUE;\n',
NAME=constant.id,
- TYPE=DartType(constant.type.id),
+ TYPE=TypeOrNothing(DartType(constant.type.id),
+ constant.type.id),
VALUE=constant.value)
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=DartDomNameOfAttribute(getter),
- TYPE=DartType(getter.type.id));
+ TYPE=TypeOrVar(DartType(getter.type.id),
+ getter.type.id))
return
if getter and not setter:
- self._members_emitter.Emit('\n final $TYPE $NAME;\n',
+ self._members_emitter.Emit('\n final $TYPE$NAME;\n',
NAME=DartDomNameOfAttribute(getter),
- TYPE=DartType(getter.type.id));
+ TYPE=TypeOrNothing(DartType(getter.type.id),
+ getter.type.id))
return
raise Exception('Unexpected getter/setter combination %s %s' %
(getter, setter))
« no previous file with comments | « lib/dom/scripts/systemhtml.py ('k') | lib/dom/scripts/systemnative.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698