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

Unified Diff: frog/leg/lib/core.dart

Issue 9283014: Implement field parameter for generative constructors. (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: '' Created 8 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
« no previous file with comments | « no previous file | frog/leg/resolver.dart » ('j') | frog/leg/resolver.dart » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: frog/leg/lib/core.dart
===================================================================
--- frog/leg/lib/core.dart (revision 3542)
+++ frog/leg/lib/core.dart (working copy)
@@ -340,8 +340,7 @@
Object receiver;
String name;
List args;
- NoSuchMethodException(Object r, String n, List a)
- : receiver = r, name = n, args = a;
+ NoSuchMethodException(Object this.receiver, String this.name, List this.args);
String toString() {
return "NoSuchMethodException - receiver: '$receiver'" +
"function name: '$name' arguments: [$args]";
@@ -368,7 +367,7 @@
class ListIterator<T> /* implements Iterator<T> */ {
int i;
List<T> list;
- ListIterator(List<T> list) : this.list = list, i = 0;
+ ListIterator(List<T> this.list) : i = 0;
bool hasNext() => i < JS("int", @"$0.length", list);
T next() {
var value = JS("Object", @"$0[$1]", list, i);
« no previous file with comments | « no previous file | frog/leg/resolver.dart » ('j') | frog/leg/resolver.dart » ('J')

Powered by Google App Engine
This is Rietveld 408576698