Chromium Code Reviews| OLD | NEW |
|---|---|
| 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 Loading... | |
| 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 } | |
| OLD | NEW |