| 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 1142 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1153 "Did you forget a factory keyword here?"); | 1153 "Did you forget a factory keyword here?"); |
| 1154 | 1154 |
| 1155 static const MessageKind DEFERRED_LIBRARY_NOT_FROM_MAIN = | 1155 static const MessageKind DEFERRED_LIBRARY_NOT_FROM_MAIN = |
| 1156 const MessageKind( | 1156 const MessageKind( |
| 1157 "DeferredLibrary used as an annotation here, " | 1157 "DeferredLibrary used as an annotation here, " |
| 1158 "but not used in the main library. Will not split the output.", | 1158 "but not used in the main library. Will not split the output.", |
| 1159 howToFix: | 1159 howToFix: |
| 1160 "Try adding a '@DeferredLibrary(...)' annotation in the main " | 1160 "Try adding a '@DeferredLibrary(...)' annotation in the main " |
| 1161 "library"); | 1161 "library"); |
| 1162 | 1162 |
| 1163 static const MessageKind DEFERRED_LIBRARY_DART_2_DART = |
| 1164 const MessageKind( |
| 1165 "Deferred loading is not supported by the dart backend yet. " |
| 1166 "Will not split the output."); |
| 1167 |
| 1163 static const MessageKind DEFERRED_LIBRARY_WITHOUT_PREFIX = | 1168 static const MessageKind DEFERRED_LIBRARY_WITHOUT_PREFIX = |
| 1164 const MessageKind( | 1169 const MessageKind( |
| 1165 "This import is deferred but there is no prefix keyword.", | 1170 "This import is deferred but there is no prefix keyword.", |
| 1166 howToFix: | 1171 howToFix: |
| 1167 "Try adding a prefix to the import."); | 1172 "Try adding a prefix to the import."); |
| 1168 | 1173 |
| 1169 static const MessageKind DEFERRED_LIBRARY_DUPLICATE_PREFIX = | 1174 static const MessageKind DEFERRED_LIBRARY_DUPLICATE_PREFIX = |
| 1170 const MessageKind( | 1175 const MessageKind( |
| 1171 "The prefix of this deferred import is not unique.", | 1176 "The prefix of this deferred import is not unique.", |
| 1172 howToFix: | 1177 howToFix: |
| 1173 "Try changing the import prefix."); | 1178 "Try changing the import prefix."); |
| 1174 | 1179 |
| 1180 static const MessageKind DEFERRED_TYPE_ANNOTATION = |
| 1181 const MessageKind( |
| 1182 "The type #{node} is deferred. " |
| 1183 "Deferred types are not valid as type annotations.", |
| 1184 howToFix: |
| 1185 "Try using a non-deferred abstract class as an interface."); |
| 1186 |
| 1175 static const MessageKind ILLEGAL_STATIC = const MessageKind( | 1187 static const MessageKind ILLEGAL_STATIC = const MessageKind( |
| 1176 "Modifier static is only allowed on functions declared in " | 1188 "Modifier static is only allowed on functions declared in " |
| 1177 "a class."); | 1189 "a class."); |
| 1178 | 1190 |
| 1179 static const MessageKind STATIC_FUNCTION_BLOAT = const MessageKind( | 1191 static const MessageKind STATIC_FUNCTION_BLOAT = const MessageKind( |
| 1180 "Using '#{class}.#{name}' may lead to unnecessarily large " | 1192 "Using '#{class}.#{name}' may lead to unnecessarily large " |
| 1181 "generated code.", | 1193 "generated code.", |
| 1182 howToFix: | 1194 howToFix: |
| 1183 "Try adding '@MirrorsUsed(...)' as described at " | 1195 "Try adding '@MirrorsUsed(...)' as described at " |
| 1184 "https://goo.gl/Akrrog."); | 1196 "https://goo.gl/Akrrog."); |
| (...skipping 718 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1903 return computeMessage(); | 1915 return computeMessage(); |
| 1904 } | 1916 } |
| 1905 | 1917 |
| 1906 bool operator==(other) { | 1918 bool operator==(other) { |
| 1907 if (other is !Message) return false; | 1919 if (other is !Message) return false; |
| 1908 return (kind == other.kind) && (toString() == other.toString()); | 1920 return (kind == other.kind) && (toString() == other.toString()); |
| 1909 } | 1921 } |
| 1910 | 1922 |
| 1911 int get hashCode => throw new UnsupportedError('Message.hashCode'); | 1923 int get hashCode => throw new UnsupportedError('Message.hashCode'); |
| 1912 } | 1924 } |
| OLD | NEW |