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

Unified Diff: lib/dom/templates/html/impl/impl_Node.darttemplate

Issue 10916177: Revert "Partially migrate from old getter syntax to new one." (Closed) Base URL: https://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 side-by-side diff with in-line comments
Download patch
Index: lib/dom/templates/html/impl/impl_Node.darttemplate
diff --git a/lib/dom/templates/html/impl/impl_Node.darttemplate b/lib/dom/templates/html/impl/impl_Node.darttemplate
index dcd5698d65cc589bfcf3418f6266ce5ea3b2bea7..e9693dc1437d4b766922d68c333cdd921345c2bd 100644
--- a/lib/dom/templates/html/impl/impl_Node.darttemplate
+++ b/lib/dom/templates/html/impl/impl_Node.darttemplate
@@ -14,10 +14,10 @@ class _ChildNodeListLazy implements NodeList {
$if DART2JS
- _NodeImpl get first => JS('_NodeImpl', '#.firstChild', _this);
+ _NodeImpl get first() => JS('_NodeImpl', '#.firstChild', _this);
_NodeImpl last() => JS('_NodeImpl', '#.lastChild', _this);
$else
- _NodeImpl get first => _this.$dom_firstChild;
+ _NodeImpl get first() => _this.$dom_firstChild;
_NodeImpl last() => _this.$dom_lastChild;
$endif
@@ -103,13 +103,13 @@ $endif
// TODO(jacobr): benchmark whether this is more efficient or whether caching
// a local copy of $dom_childNodes is more efficient.
- int get length => _this.$dom_childNodes.length;
+ int get length() => _this.$dom_childNodes.length;
_NodeImpl operator[](int index) => _this.$dom_childNodes[index];
}
class $CLASSNAME$EXTENDS$IMPLEMENTS$NATIVESPEC {
- _ChildNodeListLazy get nodes {
+ _ChildNodeListLazy get nodes() {
return new _ChildNodeListLazy(this);
}
« no previous file with comments | « lib/dom/templates/html/impl/impl_EventTarget.darttemplate ('k') | lib/dom/templates/html/impl/impl_NodeList.darttemplate » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698