| 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 1013 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1024 "Error: '+' is not a prefix operator. ", | 1024 "Error: '+' is not a prefix operator. ", |
| 1025 howToFix: "Try removing '+'.", | 1025 howToFix: "Try removing '+'.", |
| 1026 examples: const [ | 1026 examples: const [ |
| 1027 "main() => +2; // No longer a valid way to write '2'" | 1027 "main() => +2; // No longer a valid way to write '2'" |
| 1028 ]); | 1028 ]); |
| 1029 | 1029 |
| 1030 static const MessageKind UNSUPPORTED_THROW_WITHOUT_EXP = const MessageKind( | 1030 static const MessageKind UNSUPPORTED_THROW_WITHOUT_EXP = const MessageKind( |
| 1031 "Error: No expression after 'throw'. " | 1031 "Error: No expression after 'throw'. " |
| 1032 "Did you mean 'rethrow'?"); | 1032 "Did you mean 'rethrow'?"); |
| 1033 | 1033 |
| 1034 static const MessageKind DEPRECATED_TYPEDEF_MIXIN_SYNTAX = const MessageKind( |
| 1035 "Warning: 'typedef' not allowed here. ", |
| 1036 howToFix: "Try replacing 'typedef' with 'class'.", |
| 1037 examples: const [ |
| 1038 """ |
| 1039 class B { } |
| 1040 class M1 { } |
| 1041 typedef C = B with M1; // Need to replace 'typedef' with 'class'. |
| 1042 main() { new C(); } |
| 1043 """] |
| 1044 ); |
| 1045 |
| 1034 static const MessageKind MIRRORS_EXPECTED_STRING = const MessageKind( | 1046 static const MessageKind MIRRORS_EXPECTED_STRING = const MessageKind( |
| 1035 "Hint: Can't use '#{name}' here because it's an instance of '#{type}' " | 1047 "Hint: Can't use '#{name}' here because it's an instance of '#{type}' " |
| 1036 "and a 'String' value is expected.", | 1048 "and a 'String' value is expected.", |
| 1037 howToFix: "Did you forget to add quotes?", | 1049 howToFix: "Did you forget to add quotes?", |
| 1038 examples: const [ | 1050 examples: const [ |
| 1039 """ | 1051 """ |
| 1040 // 'Foo' is a type literal, not a string. | 1052 // 'Foo' is a type literal, not a string. |
| 1041 @MirrorsUsed(symbols: const [Foo]) | 1053 @MirrorsUsed(symbols: const [Foo]) |
| 1042 import 'dart:mirrors'; | 1054 import 'dart:mirrors'; |
| 1043 | 1055 |
| (...skipping 360 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1404 | 1416 |
| 1405 class CompileTimeConstantError extends Diagnostic { | 1417 class CompileTimeConstantError extends Diagnostic { |
| 1406 CompileTimeConstantError(MessageKind kind, Map arguments, bool terse) | 1418 CompileTimeConstantError(MessageKind kind, Map arguments, bool terse) |
| 1407 : super(kind, arguments, terse); | 1419 : super(kind, arguments, terse); |
| 1408 } | 1420 } |
| 1409 | 1421 |
| 1410 class CompilationError extends Diagnostic { | 1422 class CompilationError extends Diagnostic { |
| 1411 CompilationError(MessageKind kind, Map arguments, bool terse) | 1423 CompilationError(MessageKind kind, Map arguments, bool terse) |
| 1412 : super(kind, arguments, terse); | 1424 : super(kind, arguments, terse); |
| 1413 } | 1425 } |
| OLD | NEW |