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