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 1061 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
1072 | 1072 |
1073 static const MessageKind DEFERRED_LIBRARY_NAME_MISMATCH = | 1073 static const MessageKind DEFERRED_LIBRARY_NAME_MISMATCH = |
1074 const MessageKind( | 1074 const MessageKind( |
1075 "Error: Library name mismatch '#{expectedName}' != '#{actualName}'."); | 1075 "Error: Library name mismatch '#{expectedName}' != '#{actualName}'."); |
1076 | 1076 |
1077 static const MessageKind ILLEGAL_STATIC = const MessageKind( | 1077 static const MessageKind ILLEGAL_STATIC = const MessageKind( |
1078 "Error: Modifier static is only allowed on functions declared in " | 1078 "Error: Modifier static is only allowed on functions declared in " |
1079 "a class."); | 1079 "a class."); |
1080 | 1080 |
1081 static const MessageKind STATIC_FUNCTION_BLOAT = const MessageKind( | 1081 static const MessageKind STATIC_FUNCTION_BLOAT = const MessageKind( |
1082 "Hint: Using '#{class}.#{name}' may result in larger output."); | 1082 "Hint: Using '#{class}.#{name}' may lead to unnecessarily large generated" |
1083 " code.", | |
sigurdm
2013/12/03 08:09:52
It seems the tradition is to put the space on the
ahe
2013/12/03 15:39:07
Done.
| |
1084 howToFix: | |
1085 "Try adding '@MirrorsUsed(...)' as described at" | |
1086 " https://goo.gl/Akrrog."); | |
sigurdm
2013/12/03 08:09:52
The page referred to starts off a bit cryptic.
I c
ahe
2013/12/03 15:39:07
Done, except for the "non-normative" part. Not sur
| |
1083 | 1087 |
1084 static const MessageKind NON_CONST_BLOAT = const MessageKind(''' | 1088 static const MessageKind NON_CONST_BLOAT = const MessageKind( |
1085 Hint: Using "new #{name}' may result in larger output. | 1089 "Hint:Using 'new #{name}' may lead to unnecessarily large generated" |
Kathy Walrath
2013/12/02 16:28:34
Add a space after "Hint:"
ahe
2013/12/03 15:39:07
Done.
| |
1086 Use 'const #{name}' if possible.'''); | 1090 " code.", |
1091 howToFix: | |
1092 "Try using 'const #{name}' or adding '@MirrorsUsed(...)' as described" | |
1093 " at https://goo.gl/Akrrog."); | |
1087 | 1094 |
1088 static const MessageKind STRING_EXPECTED = const MessageKind( | 1095 static const MessageKind STRING_EXPECTED = const MessageKind( |
1089 "Error: Expected a 'String', but got an instance of '#{type}'."); | 1096 "Error: Expected a 'String', but got an instance of '#{type}'."); |
1090 | 1097 |
1091 static const MessageKind PRIVATE_IDENTIFIER = const MessageKind( | 1098 static const MessageKind PRIVATE_IDENTIFIER = const MessageKind( |
1092 "Error: '#{value}' is not a valid Symbol name because it starts with " | 1099 "Error: '#{value}' is not a valid Symbol name because it starts with " |
1093 "'_'."); | 1100 "'_'."); |
1094 | 1101 |
1095 static const MessageKind PRIVATE_NAMED_PARAMETER = const MessageKind( | 1102 static const MessageKind PRIVATE_NAMED_PARAMETER = const MessageKind( |
1096 "Error: Named optional parameter can't have a library private name.", | 1103 "Error: Named optional parameter can't have a library private name.", |
(...skipping 227 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
1324 examples: const [ | 1331 examples: const [ |
1325 "main();"]); | 1332 "main();"]); |
1326 | 1333 |
1327 static const MessageKind MIRROR_BLOAT = const MessageKind( | 1334 static const MessageKind MIRROR_BLOAT = const MessageKind( |
1328 "Hint: #{count} methods retained for use by dart:mirrors out of #{total}" | 1335 "Hint: #{count} methods retained for use by dart:mirrors out of #{total}" |
1329 " total methods (#{percentage}%)."); | 1336 " total methods (#{percentage}%)."); |
1330 | 1337 |
1331 static const MessageKind MIRROR_IMPORT = const MessageKind( | 1338 static const MessageKind MIRROR_IMPORT = const MessageKind( |
1332 "Info: Import of 'dart:mirrors'."); | 1339 "Info: Import of 'dart:mirrors'."); |
1333 | 1340 |
1341 static const MessageKind MIRROR_IMPORT_NO_USAGE = const MessageKind( | |
1342 "Info: This import is not annotated with @MirrorsUsed, which may lead to" | |
1343 " unnecessarily large generated code.", | |
1344 howToFix: | |
1345 "Try adding '@MirrorsUsed(...)' as described at" | |
1346 " https://goo.gl/Akrrog."); | |
1347 | |
1334 static const MessageKind WRONG_ARGUMENT_FOR_JS_INTERCEPTOR_CONSTANT = | 1348 static const MessageKind WRONG_ARGUMENT_FOR_JS_INTERCEPTOR_CONSTANT = |
1335 const MessageKind( | 1349 const MessageKind( |
1336 "Error: Argument for 'JS_INTERCEPTOR_CONSTANT' must be a type constant."); | 1350 "Error: Argument for 'JS_INTERCEPTOR_CONSTANT' must be a type constant."); |
1337 | 1351 |
1338 static const MessageKind EXPECTED_IDENTIFIER_NOT_RESERVED_WORD = | 1352 static const MessageKind EXPECTED_IDENTIFIER_NOT_RESERVED_WORD = |
1339 const MessageKind( | 1353 const MessageKind( |
1340 "Error: '#{keyword}' is a reserved word and can't be used here.", | 1354 "Error: '#{keyword}' is a reserved word and can't be used here.", |
1341 howToFix: "Try using a different name.", | 1355 howToFix: "Try using a different name.", |
1342 examples: const ["do() {} main() {}"]); | 1356 examples: const ["do() {} main() {}"]); |
1343 | 1357 |
(...skipping 235 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
1579 | 1593 |
1580 class CompileTimeConstantError extends Diagnostic { | 1594 class CompileTimeConstantError extends Diagnostic { |
1581 CompileTimeConstantError(MessageKind kind, Map arguments, bool terse) | 1595 CompileTimeConstantError(MessageKind kind, Map arguments, bool terse) |
1582 : super(kind, arguments, terse); | 1596 : super(kind, arguments, terse); |
1583 } | 1597 } |
1584 | 1598 |
1585 class CompilationError extends Diagnostic { | 1599 class CompilationError extends Diagnostic { |
1586 CompilationError(MessageKind kind, Map arguments, bool terse) | 1600 CompilationError(MessageKind kind, Map arguments, bool terse) |
1587 : super(kind, arguments, terse); | 1601 : super(kind, arguments, terse); |
1588 } | 1602 } |
OLD | NEW |