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

Side by Side Diff: frog/leg/lib/js_helper.dart

Issue 9632018: Switch-implementation. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Finished implementation Created 8 years, 9 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
2 // for details. All rights reserved. Use of this source code is governed by a 2 // for details. All rights reserved. Use of this source code is governed by a
3 // BSD-style license that can be found in the LICENSE file. 3 // BSD-style license that can be found in the LICENSE file.
4 4
5 #library('js_helper'); 5 #library('js_helper');
6 6
7 #import('coreimpl.dart'); 7 #import('coreimpl.dart');
8 8
9 #source('date_helper.dart'); 9 #source('date_helper.dart');
10 #source('regexp_helper.dart'); 10 #source('regexp_helper.dart');
(...skipping 1350 matching lines...) Expand 10 before | Expand all | Expand 10 after
1361 */ 1361 */
1362 callClosure0(closure) => closure(); 1362 callClosure0(closure) => closure();
1363 callClosure1(closure, arg1) => closure(arg1); 1363 callClosure1(closure, arg1) => closure(arg1);
1364 callClosure2(closure, arg1, arg2) => closure(arg1, arg2); 1364 callClosure2(closure, arg1, arg2) => closure(arg1, arg2);
1365 1365
1366 class StackTrace { 1366 class StackTrace {
1367 var stack; 1367 var stack;
1368 StackTrace(this.stack); 1368 StackTrace(this.stack);
1369 String toString() => stack != null ? stack : ''; 1369 String toString() => stack != null ? stack : '';
1370 } 1370 }
1371
1372
1373 FallThroughError fallThroughErrorInstance = null;
1374 getFallThroughError() {
ahe 2012/03/09 13:58:32 Add documentation comment that explain who calls t
Lasse Reichstein Nielsen 2012/03/12 13:05:23 Done.
1375 // TODO(lrn): Redo when we support "const FallThroughError()".
1376 if (fallThroughErrorInstance === null) {
1377 fallThroughErrorInstance = new FallThroughError();
1378 }
1379 return fallThroughErrorInstance;
1380 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698