Chromium Code Reviews| Index: dart/sdk/lib/_internal/compiler/implementation/warnings.dart |
| diff --git a/dart/sdk/lib/_internal/compiler/implementation/warnings.dart b/dart/sdk/lib/_internal/compiler/implementation/warnings.dart |
| index 49c112e669e65d40f06ddbe6bacf141a38072691..e1081bfef7c97ccc99334717e49113033cd3e978 100644 |
| --- a/dart/sdk/lib/_internal/compiler/implementation/warnings.dart |
| +++ b/dart/sdk/lib/_internal/compiler/implementation/warnings.dart |
| @@ -393,6 +393,27 @@ Length: #{length}'''); |
| "Error: Modifier static is only allowed on functions declared in" |
| " a class."); |
| + static const STATIC_FUNCTION_BLOAT = const MessageKind( |
| + 'Warning: Using "#{class}.#{name}" may result in larger output.'); |
| + |
| + static const NON_CONST_BLOAT = const MessageKind(''' |
| +Warning: Using "new #{name}" may result in larger output. |
| +Use "const #{name}" if possible.'''); |
| + |
| + static const STRING_EXPECTED = const MessageKind( |
| + 'Error: Expected a "String", but got an instance of "#{type}".'); |
| + |
| + static const PRIVATE_IDENTIFIER = const MessageKind( |
| + 'Error: "#{value}" is not a valid Symbol name because it starts with ' |
| + '"_".'); |
| + |
| + static const INVALID_SYMBOL = const MessageKind(''' |
| +Error: "#{value}" is not a valid Symbol name because is not: |
| + * an empty String, |
| + * a user defined operator, |
| + * a library name optionally followed by "=", or |
|
Johnni Winther
2013/04/18 19:01:39
Using the term 'library name' is confusing. I was
ahe
2013/04/18 19:23:47
Done.
|
| + * a library name followed by "." and a user defined operator.'''); |
| + |
| static const COMPILER_CRASHED = const MessageKind( |
| "Error: The compiler crashed when compiling this element."); |