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

Side by Side 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: 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 unified diff | Download patch
OLDNEW
1 // Copyright (c) 2015, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2015, the Dart project authors. Please see the AUTHORS file
2 // for details. All rights reserved. Use of this source code is governed by a 2 // for details. All rights reserved. Use of this source code is governed by a
3 // BSD-style license that can be found in the LICENSE file. 3 // BSD-style license that can be found in the LICENSE file.
4 4
5 // The messages in this file should meet the following guide lines: 5 // The messages in this file should meet the following guide lines:
6 // 6 //
7 // 1. The message should be a complete sentence starting with an uppercase 7 // 1. The message should be a complete sentence starting with an uppercase
8 // letter, and ending with a period. 8 // letter, and ending with a period.
9 // 9 //
10 // 2. Reserved words and embedded identifiers should be in single quotes, so 10 // 2. Reserved words and embedded identifiers should be in single quotes, so
(...skipping 1759 matching lines...) Expand 10 before | Expand all | Expand 10 after
1770 """ 1770 """
1771 } 1771 }
1772 ], 1772 ],
1773 }, 1773 },
1774 1774
1775 'IMPORT_PART_OF_HERE': { 1775 'IMPORT_PART_OF_HERE': {
1776 'id': 'TRSZOJ', 1776 'id': 'TRSZOJ',
1777 'template': 'The library is imported here.', 1777 'template': 'The library is imported here.',
1778 }, 1778 },
1779 1779
1780 'LOAD_PART_OF': {
1781 'id': 'MFMRRL',
1782 'template': "The main application file must not have a 'part-of' "
1783 "directive.",
1784 'howToFix': "Try removing the 'part-of' directive or starting compilation "
1785 "from another file.",
1786 'examples': [
1787 {
1788 'main.dart': """
1789 part of library;
1790
1791 main() {}
1792 """
1793 }
1794 ],
1795 },
1796
1780 'LIBRARY_NAME_MISMATCH': { 1797 'LIBRARY_NAME_MISMATCH': {
1781 'id': 'AXGYPQ', 1798 'id': 'AXGYPQ',
1782 'template': "Expected part of library name '#{libraryName}'.", 1799 'template': "Expected part of library name '#{libraryName}'.",
1783 'howToFix': "Try changing the directive to 'part of #{libraryName};'.", 1800 'howToFix': "Try changing the directive to 'part of #{libraryName};'.",
1784 'examples': [ 1801 'examples': [
1785 { 1802 {
1786 'main.dart': """ 1803 'main.dart': """
1787 library lib.foo; 1804 library lib.foo;
1788 1805
1789 part 'part.dart'; 1806 part 'part.dart';
(...skipping 1916 matching lines...) Expand 10 before | Expand all | Expand 10 after
3706 "more code and prevents the compiler from doing some optimizations.", 3723 "more code and prevents the compiler from doing some optimizations.",
3707 'howToFix': "Consider removing this 'noSuchMethod' implementation." 3724 'howToFix': "Consider removing this 'noSuchMethod' implementation."
3708 }, 3725 },
3709 3726
3710 'UNRECOGNIZED_VERSION_OF_LOOKUP_MAP': { 3727 'UNRECOGNIZED_VERSION_OF_LOOKUP_MAP': {
3711 'id': 'OVAFEW', 3728 'id': 'OVAFEW',
3712 'template': "Unsupported version of package:lookup_map.", 3729 'template': "Unsupported version of package:lookup_map.",
3713 'howToFix': DONT_KNOW_HOW_TO_FIX 3730 'howToFix': DONT_KNOW_HOW_TO_FIX
3714 }, 3731 },
3715 }; 3732 };
OLDNEW
« no previous file with comments | « no previous file | pkg/compiler/lib/src/diagnostics/messages.dart » ('j') | pkg/compiler/lib/src/diagnostics/messages.dart » ('J')

Powered by Google App Engine
This is Rietveld 408576698