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 class MessageKind { | 5 class MessageKind { |
6 final String template; | 6 final String template; |
7 const MessageKind(this.template); | 7 const MessageKind(this.template); |
8 | 8 |
9 static const GENERIC = const MessageKind('#{1}'); | 9 static const GENERIC = const MessageKind('#{1}'); |
10 | 10 |
(...skipping 265 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
276 | 276 |
277 The Dart team would greatly appreciate if you would take a moment to | 277 The Dart team would greatly appreciate if you would take a moment to |
278 report this problem at http://dartbug.com/new. | 278 report this problem at http://dartbug.com/new. |
279 | 279 |
280 Please include the following information: | 280 Please include the following information: |
281 | 281 |
282 * the name and version of your operating system, | 282 * the name and version of your operating system, |
283 | 283 |
284 * the Dart SDK build number (#{1}), and | 284 * the Dart SDK build number (#{1}), and |
285 | 285 |
286 * the stack trace you see here. | 286 * the entire message you see here (including the full stack trace |
| 287 below as well as the source location above). |
287 '''); | 288 '''); |
288 | 289 |
289 toString() => template; | 290 toString() => template; |
290 | 291 |
291 Message message([List arguments = const []]) { | 292 Message message([List arguments = const []]) { |
292 return new Message(this, arguments); | 293 return new Message(this, arguments); |
293 } | 294 } |
294 | 295 |
295 CompilationError error([List arguments = const []]) { | 296 CompilationError error([List arguments = const []]) { |
296 return new CompilationError(this, arguments); | 297 return new CompilationError(this, arguments); |
(...skipping 57 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
354 | 355 |
355 class CompileTimeConstantError extends Diagnostic { | 356 class CompileTimeConstantError extends Diagnostic { |
356 CompileTimeConstantError(MessageKind kind, List arguments) | 357 CompileTimeConstantError(MessageKind kind, List arguments) |
357 : super(kind, arguments); | 358 : super(kind, arguments); |
358 } | 359 } |
359 | 360 |
360 class CompilationError extends Diagnostic { | 361 class CompilationError extends Diagnostic { |
361 CompilationError(MessageKind kind, List arguments) | 362 CompilationError(MessageKind kind, List arguments) |
362 : super(kind, arguments); | 363 : super(kind, arguments); |
363 } | 364 } |
OLD | NEW |