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

Unified Diff: samples/chat/chat_server_lib.dart

Issue 8619008: Initializing formals can't be optional parameters (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: '' Created 9 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
Index: samples/chat/chat_server_lib.dart
===================================================================
--- samples/chat/chat_server_lib.dart (revision 1754)
+++ samples/chat/chat_server_lib.dart (working copy)
@@ -11,7 +11,7 @@
class ChatServer extends IsolatedServer {
ChatServer() : super() {
addHandler("/",
- (HTTPRequest request, HTTPResponse response)
+ (HTTPRequest request, HTTPResponse response)
=> redirectPageHandler(request, response, "dart_client/index.html"));
addHandler("/js_client/index.html",
(HTTPRequest request, HTTPResponse response) => fileHandler(request, response));
@@ -656,8 +656,9 @@
// recorded. A current sum of the content of all buckets except the
// one pointed a by _currentBucket is kept in _sum.
class Rate {
- Rate([int this._timeRange = 1000, int buckets = 10])
- : _buckets = new List(buckets + 1), // Current bucket is not in the sum.
+ Rate([int timeRange = 1000, int buckets = 10])
+ : _timeRange = timeRange,
+ _buckets = new List(buckets + 1), // Current bucket is not in the sum.
_currentBucket = 0,
_currentBucketTime = new Date.now().value,
_sum = 0 {

Powered by Google App Engine
This is Rietveld 408576698