Chromium Code Reviews| Index: dart/lib/compiler/implementation/warnings.dart |
| diff --git a/dart/lib/compiler/implementation/warnings.dart b/dart/lib/compiler/implementation/warnings.dart |
| index 8036c2d62043232d9fabe8896a4db6f3e14f8790..240fe5874eadd3cc9bebe927428d088d4c658033 100644 |
| --- a/dart/lib/compiler/implementation/warnings.dart |
| +++ b/dart/lib/compiler/implementation/warnings.dart |
| @@ -259,6 +259,21 @@ class MessageKind { |
| static const VOID_NOT_ALLOWED = const MessageKind( |
| 'type void is only allowed in a return type.'); |
| + static const BEFORE_TOP_LEVEL = const MessageKind( |
| + 'Error: part header must come before top-level definitions.'); |
|
Johnni Winther
2012/10/09 07:43:36
Why do some messages include 'Error:' and 'Warning
ahe
2012/10/09 07:48:09
Historic reasons.
karlklose
2012/10/09 07:49:47
See also http://code.google.com/p/dart/issues/deta
|
| + |
| + static const LIBRARY_NAME_MISMATCH = const MessageKind( |
| + 'Warning: expected part of library name "#{1}".'); |
| + |
| + static const DUPLICATED_PART_OF = const MessageKind( |
| + 'Error: duplicated part-of directive.'); |
| + |
| + static const ILLEGAL_DIRECTIVE = const MessageKind( |
| + 'Error: directive not allowed here.'); |
| + |
| + static const DUPLICATED_LIBRARY_NAME = const MessageKind( |
| + 'Warning: duplicated library name "#{1}".'); |
| + |
| static const INVALID_SOURCE_FILE_LOCATION = const MessageKind(''' |
| Invalid offset (#{1}) in source map. |
| File: #{2} |