| 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 part of dart2js; | |
| 6 | |
| 7 | 5 |
| 8 /** | 6 /** |
| 9 * If true, print a warning for each method that was resolved, but not | 7 * If true, print a warning for each method that was resolved, but not |
| 10 * compiled. | 8 * compiled. |
| 11 */ | 9 */ |
| 12 const bool REPORT_EXCESS_RESOLUTION = false; | 10 const bool REPORT_EXCESS_RESOLUTION = false; |
| 13 | 11 |
| 14 /** | 12 /** |
| 15 * If true, dump the inferred types after compilation. | 13 * If true, dump the inferred types after compilation. |
| 16 */ | 14 */ |
| (...skipping 846 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 863 // TODO(johnniwinther): Use [spannable] and [message] to provide better | 861 // TODO(johnniwinther): Use [spannable] and [message] to provide better |
| 864 // information on assertion errors. | 862 // information on assertion errors. |
| 865 if (condition is Function){ | 863 if (condition is Function){ |
| 866 condition = condition(); | 864 condition = condition(); |
| 867 } | 865 } |
| 868 if (!condition && message != null) { | 866 if (!condition && message != null) { |
| 869 print('assertion failed: $message'); | 867 print('assertion failed: $message'); |
| 870 } | 868 } |
| 871 return spannable != null && condition; | 869 return spannable != null && condition; |
| 872 } | 870 } |
| OLD | NEW |