OLD | NEW |
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 part of dart2js; | 5 part of dart2js; |
6 | 6 |
7 const DONT_KNOW_HOW_TO_FIX = "Computer says no!"; | 7 const DONT_KNOW_HOW_TO_FIX = "Computer says no!"; |
8 | 8 |
9 /** | 9 /** |
10 * The messages in this file should meet the following guide lines: | 10 * The messages in this file should meet the following guide lines: |
(...skipping 149 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
160 | 160 |
161 static const MessageKind NOT_CALLABLE = const MessageKind( | 161 static const MessageKind NOT_CALLABLE = const MessageKind( |
162 "'#{elementName}' is not callable."); | 162 "'#{elementName}' is not callable."); |
163 | 163 |
164 static const MessageKind MEMBER_NOT_STATIC = const MessageKind( | 164 static const MessageKind MEMBER_NOT_STATIC = const MessageKind( |
165 "'#{className}.#{memberName}' is not static."); | 165 "'#{className}.#{memberName}' is not static."); |
166 | 166 |
167 static const MessageKind NO_INSTANCE_AVAILABLE = const MessageKind( | 167 static const MessageKind NO_INSTANCE_AVAILABLE = const MessageKind( |
168 "'#{name}' is only available in instance methods."); | 168 "'#{name}' is only available in instance methods."); |
169 | 169 |
| 170 static const MessageKind NO_SUPER_AVAILABLE = const MessageKind( |
| 171 "'super' is only available in instance methods."); |
| 172 |
170 static const MessageKind PRIVATE_ACCESS = const MessageKind( | 173 static const MessageKind PRIVATE_ACCESS = const MessageKind( |
171 "'#{name}' is declared private within library " | 174 "'#{name}' is declared private within library " |
172 "'#{libraryName}'."); | 175 "'#{libraryName}'."); |
173 | 176 |
174 static const MessageKind THIS_IS_THE_DECLARATION = const MessageKind( | 177 static const MessageKind THIS_IS_THE_DECLARATION = const MessageKind( |
175 "This is the declaration of '#{name}'."); | 178 "This is the declaration of '#{name}'."); |
176 | 179 |
177 static const MessageKind THIS_IS_THE_METHOD = const MessageKind( | 180 static const MessageKind THIS_IS_THE_METHOD = const MessageKind( |
178 "This is the method declaration."); | 181 "This is the method declaration."); |
179 | 182 |
(...skipping 2376 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2556 static String convertToString(value) { | 2559 static String convertToString(value) { |
2557 if (value is ErrorToken) { | 2560 if (value is ErrorToken) { |
2558 // Shouldn't happen. | 2561 // Shouldn't happen. |
2559 return value.assertionMessage; | 2562 return value.assertionMessage; |
2560 } else if (value is Token) { | 2563 } else if (value is Token) { |
2561 value = value.value; | 2564 value = value.value; |
2562 } | 2565 } |
2563 return '$value'; | 2566 return '$value'; |
2564 } | 2567 } |
2565 } | 2568 } |
OLD | NEW |