| 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 1167 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1178 const MessageKind( | 1178 const MessageKind( |
| 1179 "Deferred loading is not supported by the dart backend yet." | 1179 "Deferred loading is not supported by the dart backend yet." |
| 1180 "The output will not be split."); | 1180 "The output will not be split."); |
| 1181 | 1181 |
| 1182 static const MessageKind DEFERRED_LIBRARY_WITHOUT_PREFIX = | 1182 static const MessageKind DEFERRED_LIBRARY_WITHOUT_PREFIX = |
| 1183 const MessageKind( | 1183 const MessageKind( |
| 1184 "This import is deferred but there is no prefix keyword.", | 1184 "This import is deferred but there is no prefix keyword.", |
| 1185 howToFix: | 1185 howToFix: |
| 1186 "Try adding a prefix to the import."); | 1186 "Try adding a prefix to the import."); |
| 1187 | 1187 |
| 1188 static const MessageKind DEFERRED_OLD_SYNTAX = |
| 1189 const MessageKind( |
| 1190 "The DeferredLibrary annotation is obsolete.", |
| 1191 howToFix: |
| 1192 "Use the \"import 'lib.dart' deferred as prefix\" syntax instead."); |
| 1193 |
| 1188 static const MessageKind DEFERRED_LIBRARY_DUPLICATE_PREFIX = | 1194 static const MessageKind DEFERRED_LIBRARY_DUPLICATE_PREFIX = |
| 1189 const MessageKind( | 1195 const MessageKind( |
| 1190 "The prefix of this deferred import is not unique.", | 1196 "The prefix of this deferred import is not unique.", |
| 1191 howToFix: | 1197 howToFix: |
| 1192 "Try changing the import prefix."); | 1198 "Try changing the import prefix."); |
| 1193 | 1199 |
| 1194 static const MessageKind DEFERRED_TYPE_ANNOTATION = | 1200 static const MessageKind DEFERRED_TYPE_ANNOTATION = |
| 1195 const MessageKind( | 1201 const MessageKind( |
| 1196 "The type #{node} is deferred. " | 1202 "The type #{node} is deferred. " |
| 1197 "Deferred types are not valid as type annotations.", | 1203 "Deferred types are not valid as type annotations.", |
| (...skipping 916 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2114 static String convertToString(value) { | 2120 static String convertToString(value) { |
| 2115 if (value is ErrorToken) { | 2121 if (value is ErrorToken) { |
| 2116 // Shouldn't happen. | 2122 // Shouldn't happen. |
| 2117 return value.assertionMessage; | 2123 return value.assertionMessage; |
| 2118 } else if (value is Token) { | 2124 } else if (value is Token) { |
| 2119 value = value.value; | 2125 value = value.value; |
| 2120 } | 2126 } |
| 2121 return '$value'; | 2127 return '$value'; |
| 2122 } | 2128 } |
| 2123 } | 2129 } |
| OLD | NEW |