Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(178)

Unified Diff: dart/lib/compiler/implementation/warnings.dart

Issue 11092003: Implement part-of directive. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge
Patch Set: Update co19 status for dart2dart Created 8 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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}

Powered by Google App Engine
This is Rietveld 408576698