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

Unified Diff: sdk/lib/svg/dart2js/svg_dart2js.dart

Issue 11316059: Add List.first. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Add dart2js interceptor and add test. Created 8 years, 1 month 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 | « sdk/lib/html/templates/immutable_list_mixin.darttemplate ('k') | sdk/lib/svg/dartium/svg_dartium.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: sdk/lib/svg/dart2js/svg_dart2js.dart
diff --git a/sdk/lib/svg/dart2js/svg_dart2js.dart b/sdk/lib/svg/dart2js/svg_dart2js.dart
index ef6935a5314d35df6a1185989893e970b7303f9b..d21f0f9d8e10cafadf0c1249e247f872669ac941 100644
--- a/sdk/lib/svg/dart2js/svg_dart2js.dart
+++ b/sdk/lib/svg/dart2js/svg_dart2js.dart
@@ -374,6 +374,8 @@ class SVGAnimatedLengthList implements JavaScriptIndexingBehavior, List<SVGAnima
return _Lists.lastIndexOf(this, element, start);
}
+ SVGAnimatedLength get first => this[0];
+
SVGAnimatedLength get last => this[length - 1];
SVGAnimatedLength removeLast() {
@@ -485,6 +487,8 @@ class SVGAnimatedNumberList implements JavaScriptIndexingBehavior, List<SVGAnima
return _Lists.lastIndexOf(this, element, start);
}
+ SVGAnimatedNumber get first => this[0];
+
SVGAnimatedNumber get last => this[length - 1];
SVGAnimatedNumber removeLast() {
@@ -624,6 +628,8 @@ class SVGAnimatedTransformList implements JavaScriptIndexingBehavior, List<SVGAn
return _Lists.lastIndexOf(this, element, start);
}
+ SVGAnimateTransformElement get first => this[0];
+
SVGAnimateTransformElement get last => this[length - 1];
SVGAnimateTransformElement removeLast() {
@@ -3050,6 +3056,8 @@ class SVGLengthList implements JavaScriptIndexingBehavior, List<SVGLength> nativ
return _Lists.lastIndexOf(this, element, start);
}
+ SVGLength get first => this[0];
+
SVGLength get last => this[length - 1];
SVGLength removeLast() {
@@ -3539,6 +3547,8 @@ class SVGNumberList implements JavaScriptIndexingBehavior, List<SVGNumber> nativ
return _Lists.lastIndexOf(this, element, start);
}
+ SVGNumber get first => this[0];
+
SVGNumber get last => this[length - 1];
SVGNumber removeLast() {
@@ -4198,6 +4208,8 @@ class SVGPathSegList implements JavaScriptIndexingBehavior, List<SVGPathSeg> nat
return _Lists.lastIndexOf(this, element, start);
}
+ SVGPathSeg get first => this[0];
+
SVGPathSeg get last => this[length - 1];
SVGPathSeg removeLast() {
@@ -5067,6 +5079,8 @@ class SVGStringList implements JavaScriptIndexingBehavior, List<String> native "
return _Lists.lastIndexOf(this, element, start);
}
+ String get first => this[0];
+
String get last => this[length - 1];
String removeLast() {
@@ -5631,6 +5645,8 @@ class SVGTransformList implements JavaScriptIndexingBehavior, List<SVGTransform>
return _Lists.lastIndexOf(this, element, start);
}
+ SVGTransform get first => this[0];
+
SVGTransform get last => this[length - 1];
SVGTransform removeLast() {
@@ -6009,6 +6025,8 @@ class _SVGElementInstanceList implements JavaScriptIndexingBehavior, List<SVGEle
return _Lists.lastIndexOf(this, element, start);
}
+ SVGElementInstance get first => this[0];
+
SVGElementInstance get last => this[length - 1];
SVGElementInstance removeLast() {
« no previous file with comments | « sdk/lib/html/templates/immutable_list_mixin.darttemplate ('k') | sdk/lib/svg/dartium/svg_dartium.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698