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

Unified Diff: tools/dom/scripts/systemhtml.py

Issue 15706003: Migrate to new indexed getter marking scheme. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 7 years, 7 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 | « tools/dom/scripts/idlparser.py ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tools/dom/scripts/systemhtml.py
diff --git a/tools/dom/scripts/systemhtml.py b/tools/dom/scripts/systemhtml.py
index 0302a6c7a0e8e019a643a32547b861295ddced7e..c6463e1176a412d8517fbd07c1518689ce6ad78d 100644
--- a/tools/dom/scripts/systemhtml.py
+++ b/tools/dom/scripts/systemhtml.py
@@ -708,8 +708,11 @@ class Dart2JSBackend(HtmlDartGenerator):
#
ext_attrs = self._interface.ext_attrs
- has_indexed_getter = ('IndexedGetter' in ext_attrs or
- 'CustomIndexedSetter' in ext_attrs)
+ has_indexed_getter = 'CustomIndexedGetter' in ext_attrs
+ for operation in self._interface.operations:
+ if operation.id == 'item' and 'getter' in operation.specials:
+ has_indexed_getter = True
+ break
if has_indexed_getter:
indexed_getter = ('JS("%s", "#[#]", this, index)' %
« no previous file with comments | « tools/dom/scripts/idlparser.py ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698