Chromium Code Reviews| Index: pkg/compiler/lib/src/warnings.dart |
| diff --git a/pkg/compiler/lib/src/warnings.dart b/pkg/compiler/lib/src/warnings.dart |
| index 40b04edb23a94edbf4266ccc50ac1b6eb3ef48bd..f9bff05aadcb483a893524a3ca46ff85a45f23cf 100644 |
| --- a/pkg/compiler/lib/src/warnings.dart |
| +++ b/pkg/compiler/lib/src/warnings.dart |
| @@ -2410,6 +2410,28 @@ $IMPORT_EXPERIMENTAL_MIRRORS_PADDING#{importChain} |
| "Non-supported 'call' member on a native class, or a " |
| "subclass of a native class."); |
| + static const MessageKind DIRECTLY_THROWING_NSM = |
| + const MessageKind( |
| + "This 'noSuchMethod' implementation is guaranteed to throw an " |
| + "exception. The generated code will be smaller if it is " |
| + "rewritten.", |
| + howToFix: "Rewrite to " |
| + "'noSuchMethod(Invocation i) => super.noSuchMethod(i)'."); |
|
sra1
2015/03/31 02:19:14
Missing semicolon in rewrite text
|
| + |
| + static const MessageKind COMPLEX_THROWING_NSM = |
| + const MessageKind( |
| + "This 'noSuchMethod' implementation is guaranteed to throw an " |
| + "exception. The generated code will be smaller and the compiler " |
| + "will be able to perform more optimizations if it is rewritten.", |
| + howToFix: "Rewrite to " |
| + "'noSuchMethod(Invocation i) => super.noSuchMethod(i)'."); |
| + |
| + static const MessageKind COMPLEX_RETURNING_NSM = |
| + const MessageKind( |
| + "Overriding 'noSuchMethod' causes the compiler to generate " |
| + "more code and prevents the compiler from doing some optimizations.", |
| + howToFix: "Consider removing this 'noSuchMethod' implementation."); |
| + |
| toString() => template; |
| Message message([Map arguments = const {}, bool terse = false]) { |