Chromium Code Reviews| 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 | 5 |
| 6 /** | 6 /** |
| 7 * The messages in this file should meet the following guide lines: | 7 * The messages in this file should meet the following guide lines: |
| 8 * | 8 * |
| 9 * 1. The message should be a complete sentence starting with an uppercase | 9 * 1. The message should be a complete sentence starting with an uppercase |
| 10 * letter, and ending with a period. | 10 * letter, and ending with a period. |
| (...skipping 257 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 268 INVALID_PACKAGE_URI, | 268 INVALID_PACKAGE_URI, |
| 269 INVALID_PARAMETER, | 269 INVALID_PARAMETER, |
| 270 INVALID_RECEIVER_IN_INITIALIZER, | 270 INVALID_RECEIVER_IN_INITIALIZER, |
| 271 INVALID_SOURCE_FILE_LOCATION, | 271 INVALID_SOURCE_FILE_LOCATION, |
| 272 INVALID_SYMBOL, | 272 INVALID_SYMBOL, |
| 273 INVALID_SYNC_MODIFIER, | 273 INVALID_SYNC_MODIFIER, |
| 274 INVALID_TYPE_VARIABLE_BOUND, | 274 INVALID_TYPE_VARIABLE_BOUND, |
| 275 INVALID_UNNAMED_CONSTRUCTOR_NAME, | 275 INVALID_UNNAMED_CONSTRUCTOR_NAME, |
| 276 INVALID_URI, | 276 INVALID_URI, |
| 277 INVALID_USE_OF_SUPER, | 277 INVALID_USE_OF_SUPER, |
| 278 JS_INTEROP_CLASS_CANNOT_EXTEND_DART_CLASS, | |
| 279 JS_INTEROP_CLASS_NON_EXTERNAL_MEMBER, | |
| 278 LIBRARY_NAME_MISMATCH, | 280 LIBRARY_NAME_MISMATCH, |
| 279 LIBRARY_NOT_FOUND, | 281 LIBRARY_NOT_FOUND, |
| 280 LIBRARY_NOT_SUPPORTED, | 282 LIBRARY_NOT_SUPPORTED, |
| 281 LIBRARY_TAG_MUST_BE_FIRST, | 283 LIBRARY_TAG_MUST_BE_FIRST, |
| 282 MAIN_NOT_A_FUNCTION, | 284 MAIN_NOT_A_FUNCTION, |
| 283 MAIN_WITH_EXTRA_PARAMETER, | 285 MAIN_WITH_EXTRA_PARAMETER, |
| 284 MALFORMED_STRING_LITERAL, | 286 MALFORMED_STRING_LITERAL, |
| 285 MEMBER_NOT_FOUND, | 287 MEMBER_NOT_FOUND, |
| 286 MEMBER_NOT_STATIC, | 288 MEMBER_NOT_STATIC, |
| 287 MEMBER_USES_CLASS_NAME, | 289 MEMBER_USES_CLASS_NAME, |
| (...skipping 1835 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 2123 | 2125 |
| 2124 MessageKind.INTERNAL_LIBRARY_FROM: | 2126 MessageKind.INTERNAL_LIBRARY_FROM: |
| 2125 const MessageTemplate(MessageKind.INTERNAL_LIBRARY_FROM, | 2127 const MessageTemplate(MessageKind.INTERNAL_LIBRARY_FROM, |
| 2126 "Internal library '#{resolvedUri}' is not accessible from " | 2128 "Internal library '#{resolvedUri}' is not accessible from " |
| 2127 "'#{importingUri}'."), | 2129 "'#{importingUri}'."), |
| 2128 | 2130 |
| 2129 MessageKind.INTERNAL_LIBRARY: | 2131 MessageKind.INTERNAL_LIBRARY: |
| 2130 const MessageTemplate(MessageKind.INTERNAL_LIBRARY, | 2132 const MessageTemplate(MessageKind.INTERNAL_LIBRARY, |
| 2131 "Internal library '#{resolvedUri}' is not accessible."), | 2133 "Internal library '#{resolvedUri}' is not accessible."), |
| 2132 | 2134 |
| 2135 MessageKind.JS_INTEROP_CLASS_CANNOT_EXTEND_DART_CLASS: | |
| 2136 const MessageTemplate( | |
| 2137 MessageKind.JS_INTEROP_CLASS_CANNOT_EXTEND_DART_CLASS, | |
| 2138 "#{cls} cannot extend a normal Dart class as it is annoted with" | |
|
Siggi Cherem (dart-lang)
2015/10/06 22:38:01
nit: "#{cls} ... " => "Class '#{cls}' ..."
or:
Jacob
2015/10/13 01:19:22
much better. done.
| |
| 2139 "@Js.", | |
| 2140 howToFix: "Add @Js annotation to super class", | |
|
Siggi Cherem (dart-lang)
2015/10/06 22:38:01
nits:
1. add => add the
super class => sup
Jacob
2015/10/13 01:19:22
Done.
| |
| 2141 examples: const [ | |
| 2142 """ | |
| 2143 class Foo { } | |
| 2144 | |
| 2145 @Js() | |
| 2146 class Bar extends Foo { } | |
| 2147 """]), | |
| 2148 | |
| 2149 MessageKind.JS_INTEROP_CLASS_NON_EXTERNAL_MEMBER: | |
| 2150 const MessageTemplate( | |
| 2151 MessageKind.JS_INTEROP_CLASS_NON_EXTERNAL_MEMBER, | |
| 2152 "Js interop class #{cls} member #{member} is not external.", | |
|
Siggi Cherem (dart-lang)
2015/10/06 22:38:01
nit: maybe change to:
"Member '#{member}' in js
Jacob
2015/10/13 01:19:22
Done.
| |
| 2153 howToFix: "Mark all interop methods external", | |
| 2154 examples: const [ | |
| 2155 """ | |
| 2156 @Js | |
| 2157 class Foo { | |
| 2158 external bar(); | |
| 2159 } | |
| 2160 """]), | |
| 2161 | |
| 2133 MessageKind.LIBRARY_NOT_FOUND: | 2162 MessageKind.LIBRARY_NOT_FOUND: |
| 2134 const MessageTemplate(MessageKind.LIBRARY_NOT_FOUND, | 2163 const MessageTemplate(MessageKind.LIBRARY_NOT_FOUND, |
| 2135 "Library not found '#{resolvedUri}'."), | 2164 "Library not found '#{resolvedUri}'."), |
| 2136 | 2165 |
| 2137 MessageKind.LIBRARY_NOT_SUPPORTED: | 2166 MessageKind.LIBRARY_NOT_SUPPORTED: |
| 2138 const MessageTemplate(MessageKind.LIBRARY_NOT_SUPPORTED, | 2167 const MessageTemplate(MessageKind.LIBRARY_NOT_SUPPORTED, |
| 2139 "Library not supported '#{resolvedUri}'.", | 2168 "Library not supported '#{resolvedUri}'.", |
| 2140 howToFix: "Try removing the dependency or enabling support using " | 2169 howToFix: "Try removing the dependency or enabling support using " |
| 2141 "the '--categories' option.", | 2170 "the '--categories' option.", |
| 2142 examples: const [/* | 2171 examples: const [/* |
| (...skipping 1318 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 3461 static String convertToString(value) { | 3490 static String convertToString(value) { |
| 3462 if (value is ErrorToken) { | 3491 if (value is ErrorToken) { |
| 3463 // Shouldn't happen. | 3492 // Shouldn't happen. |
| 3464 return value.assertionMessage; | 3493 return value.assertionMessage; |
| 3465 } else if (value is Token) { | 3494 } else if (value is Token) { |
| 3466 value = value.value; | 3495 value = value.value; |
| 3467 } | 3496 } |
| 3468 return '$value'; | 3497 return '$value'; |
| 3469 } | 3498 } |
| 3470 } | 3499 } |
| OLD | NEW |