| OLD | NEW |
| 1 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2011, 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; | 5 part of dart2js; |
| 6 | 6 |
| 7 const DONT_KNOW_HOW_TO_FIX = ""; | 7 const DONT_KNOW_HOW_TO_FIX = ""; |
| 8 | 8 |
| 9 /** | 9 /** |
| 10 * The messages in this file should meet the following guide lines: | 10 * The messages in this file should meet the following guide lines: |
| (...skipping 1165 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1176 static const MessageKind DEFERRED_LIBRARY_DART_2_DART = | 1176 static const MessageKind DEFERRED_LIBRARY_DART_2_DART = |
| 1177 const MessageKind( | 1177 const MessageKind( |
| 1178 "Deferred loading is not supported by the dart backend yet."); | 1178 "Deferred loading is not supported by the dart backend yet."); |
| 1179 | 1179 |
| 1180 static const MessageKind DEFERRED_LIBRARY_WITHOUT_PREFIX = | 1180 static const MessageKind DEFERRED_LIBRARY_WITHOUT_PREFIX = |
| 1181 const MessageKind( | 1181 const MessageKind( |
| 1182 "This import is deferred but there is no prefix keyword.", | 1182 "This import is deferred but there is no prefix keyword.", |
| 1183 howToFix: | 1183 howToFix: |
| 1184 "Try adding a prefix to the import."); | 1184 "Try adding a prefix to the import."); |
| 1185 | 1185 |
| 1186 static const MessageKind DEFERRED_OLD_SYNTAX = |
| 1187 const MessageKind( |
| 1188 "The DeferredLibrary annotation is obsolete.", |
| 1189 howToFix: |
| 1190 "Use the \"import 'lib.dart' deferred as prefix\" syntax instead."); |
| 1191 |
| 1186 static const MessageKind DEFERRED_LIBRARY_DUPLICATE_PREFIX = | 1192 static const MessageKind DEFERRED_LIBRARY_DUPLICATE_PREFIX = |
| 1187 const MessageKind( | 1193 const MessageKind( |
| 1188 "The prefix of this deferred import is not unique.", | 1194 "The prefix of this deferred import is not unique.", |
| 1189 howToFix: | 1195 howToFix: |
| 1190 "Try changing the import prefix."); | 1196 "Try changing the import prefix."); |
| 1191 | 1197 |
| 1192 static const MessageKind DEFERRED_TYPE_ANNOTATION = | 1198 static const MessageKind DEFERRED_TYPE_ANNOTATION = |
| 1193 const MessageKind( | 1199 const MessageKind( |
| 1194 "The type #{node} is deferred. " | 1200 "The type #{node} is deferred. " |
| 1195 "Deferred types are not valid as type annotations.", | 1201 "Deferred types are not valid as type annotations.", |
| (...skipping 911 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2107 static String convertToString(value) { | 2113 static String convertToString(value) { |
| 2108 if (value is ErrorToken) { | 2114 if (value is ErrorToken) { |
| 2109 // Shouldn't happen. | 2115 // Shouldn't happen. |
| 2110 return value.assertionMessage; | 2116 return value.assertionMessage; |
| 2111 } else if (value is Token) { | 2117 } else if (value is Token) { |
| 2112 value = value.value; | 2118 value = value.value; |
| 2113 } | 2119 } |
| 2114 return '$value'; | 2120 return '$value'; |
| 2115 } | 2121 } |
| 2116 } | 2122 } |
| OLD | NEW |