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

Side by Side Diff: pkg/compiler/lib/src/diagnostics/messages.dart

Issue 2221893003: pkg/compiler: fix imports (Closed) Base URL: https://github.com/dart-lang/sdk.git@master
Patch Set: Created 4 years, 4 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) 2011, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2011, 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 /** 5 /**
6 * The messages in this file should meet the following guide lines: 6 * The messages in this file should meet the following guide lines:
7 * 7 *
8 * 1. The message should be a complete sentence starting with an uppercase 8 * 1. The message should be a complete sentence starting with an uppercase
9 * letter, and ending with a period. 9 * letter, and ending with a period.
10 * 10 *
(...skipping 45 matching lines...) Expand 10 before | Expand all | Expand 10 after
56 * location of the existing element. 56 * location of the existing element.
57 * 57 *
58 * Generally, we want to provide messages that consists of three sentences: 58 * Generally, we want to provide messages that consists of three sentences:
59 * 1. what is wrong, 2. why is it wrong, 3. how do I fix it. However, we 59 * 1. what is wrong, 2. why is it wrong, 3. how do I fix it. However, we
60 * combine the first two in [template] and the last in [howToFix]. 60 * combine the first two in [template] and the last in [howToFix].
61 */ 61 */
62 62
63 library dart2js.messages; 63 library dart2js.messages;
64 64
65 import '../tokens/token.dart' show ErrorToken, Token; 65 import '../tokens/token.dart' show ErrorToken, Token;
66 66 import 'generated/shared_messages.dart' as shared_messages;
67 import 'invariant.dart' show invariant; 67 import 'invariant.dart' show invariant;
68 import 'spannable.dart' show CURRENT_ELEMENT_SPANNABLE; 68 import 'spannable.dart' show CURRENT_ELEMENT_SPANNABLE;
69 69
70 import 'generated/shared_messages.dart' as shared_messages;
71
72 const DONT_KNOW_HOW_TO_FIX = "Computer says no!"; 70 const DONT_KNOW_HOW_TO_FIX = "Computer says no!";
73 71
74 /// Keys for the [MessageTemplate]s. 72 /// Keys for the [MessageTemplate]s.
75 enum MessageKind { 73 enum MessageKind {
76 ABSTRACT_CLASS_INSTANTIATION, 74 ABSTRACT_CLASS_INSTANTIATION,
77 ABSTRACT_GETTER, 75 ABSTRACT_GETTER,
78 ABSTRACT_METHOD, 76 ABSTRACT_METHOD,
79 ABSTRACT_SETTER, 77 ABSTRACT_SETTER,
80 ACCESSED_IN_CLOSURE, 78 ACCESSED_IN_CLOSURE,
81 ACCESSED_IN_CLOSURE_HERE, 79 ACCESSED_IN_CLOSURE_HERE,
(...skipping 3728 matching lines...) Expand 10 before | Expand all | Expand 10 after
3810 static String convertToString(value) { 3808 static String convertToString(value) {
3811 if (value is ErrorToken) { 3809 if (value is ErrorToken) {
3812 // Shouldn't happen. 3810 // Shouldn't happen.
3813 return value.assertionMessage; 3811 return value.assertionMessage;
3814 } else if (value is Token) { 3812 } else if (value is Token) {
3815 value = value.value; 3813 value = value.value;
3816 } 3814 }
3817 return '$value'; 3815 return '$value';
3818 } 3816 }
3819 } 3817 }
OLDNEW
« no previous file with comments | « pkg/compiler/lib/src/diagnostics/diagnostic_listener.dart ('k') | pkg/compiler/lib/src/elements/common.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698