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

Unified Diff: pkg/compiler/lib/src/diagnostics/dart2js_messages.dart

Issue 1564803002: Specialize message for parts as entry point (Closed) Base URL: https://github.com/dart-lang/sdk.git@master
Patch Set: Updated cf. comment Created 4 years, 11 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
« no previous file with comments | « no previous file | pkg/compiler/lib/src/diagnostics/messages.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: pkg/compiler/lib/src/diagnostics/dart2js_messages.dart
diff --git a/pkg/compiler/lib/src/diagnostics/dart2js_messages.dart b/pkg/compiler/lib/src/diagnostics/dart2js_messages.dart
index 0f4e6247c53531ed8f8431ea22ce6300da54742b..90d4ecfb59a4671eaa444068bf0f83632393c7ec 100644
--- a/pkg/compiler/lib/src/diagnostics/dart2js_messages.dart
+++ b/pkg/compiler/lib/src/diagnostics/dart2js_messages.dart
@@ -1777,6 +1777,23 @@ part of library;
'template': 'The library is imported here.',
},
+ 'MAIN_HAS_PART_OF': {
+ 'id': 'MFMRRL',
+ 'template': "The main application file must not have a 'part-of' "
+ "directive.",
+ 'howToFix': "Try removing the 'part-of' directive or starting compilation "
+ "from another file.",
+ 'examples': [
+ {
+ 'main.dart': """
+part of library;
+
+main() {}
+"""
+ }
+ ],
+ },
+
'LIBRARY_NAME_MISMATCH': {
'id': 'AXGYPQ',
'template': "Expected part of library name '#{libraryName}'.",
« no previous file with comments | « no previous file | pkg/compiler/lib/src/diagnostics/messages.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698