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

Unified Diff: editor/util/debuggertest/pets.dart

Issue 11931034: Add methods to Collection. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Address comments. Created 7 years, 11 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: editor/util/debuggertest/pets.dart
diff --git a/editor/util/debuggertest/pets.dart b/editor/util/debuggertest/pets.dart
index cb6cd3c1ff5cdaa42faff690ac6b41b15a16c679..f78649a142f3a3ed671aa0b36c4123684e12bad0 100644
--- a/editor/util/debuggertest/pets.dart
+++ b/editor/util/debuggertest/pets.dart
@@ -29,16 +29,16 @@ class Cat implements Animal {
bool livesWith(Animal other) => other is Cat;
final String _color = "blue";
-
+
String get color {
return _color;
}
-
+
set color(String val) {
// nothing to do
val = "${val}";
}
-
+
void performAction() {
print("m${_eo()}w");
}
@@ -199,7 +199,7 @@ void checkTypes() {
// TODO: empty maps
var emptyMap = {};
- // display sets (_HashSetImpl)
+ // display sets (HashSet)
var set = new Set();
set.add(1);
set.add(2);
@@ -211,14 +211,14 @@ void checkTypes() {
void createARealBigArray() {
var arr = new List<int>(120);
-
+
for (int i = 0; i < arr.length; i++) {
arr[i] = i * 10;
}
-
+
print("big array created");
-
+
arr[0] = "assdsdf";
-
+
arr[0]++;
}

Powered by Google App Engine
This is Rietveld 408576698