| 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; | |
| 6 | |
| 7 class MessageKind { | 5 class MessageKind { |
| 8 final String template; | 6 final String template; |
| 9 const MessageKind(this.template); | 7 const MessageKind(this.template); |
| 10 | 8 |
| 11 static const GENERIC = const MessageKind('#{1}'); | 9 static const GENERIC = const MessageKind('#{1}'); |
| 12 | 10 |
| 13 static const NOT_ASSIGNABLE = const MessageKind( | 11 static const NOT_ASSIGNABLE = const MessageKind( |
| 14 '#{2} is not assignable to #{1}'); | 12 '#{2} is not assignable to #{1}'); |
| 15 static const VOID_EXPRESSION = const MessageKind( | 13 static const VOID_EXPRESSION = const MessageKind( |
| 16 'expression does not yield a value'); | 14 'expression does not yield a value'); |
| (...skipping 389 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 406 | 404 |
| 407 class CompileTimeConstantError extends Diagnostic { | 405 class CompileTimeConstantError extends Diagnostic { |
| 408 CompileTimeConstantError(MessageKind kind, List arguments) | 406 CompileTimeConstantError(MessageKind kind, List arguments) |
| 409 : super(kind, arguments); | 407 : super(kind, arguments); |
| 410 } | 408 } |
| 411 | 409 |
| 412 class CompilationError extends Diagnostic { | 410 class CompilationError extends Diagnostic { |
| 413 CompilationError(MessageKind kind, List arguments) | 411 CompilationError(MessageKind kind, List arguments) |
| 414 : super(kind, arguments); | 412 : super(kind, arguments); |
| 415 } | 413 } |
| OLD | NEW |