| 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 class MessageKind { | 7 class MessageKind { |
| 8 final String template; | 8 final String template; |
| 9 const MessageKind(this.template); | 9 const MessageKind(this.template); |
| 10 | 10 |
| (...skipping 187 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 198 | 198 |
| 199 static const ILLEGAL_SUPER_SEND = const MessageKind( | 199 static const ILLEGAL_SUPER_SEND = const MessageKind( |
| 200 "#{1} cannot be called on super"); | 200 "#{1} cannot be called on super"); |
| 201 | 201 |
| 202 static const ADDITIONAL_TYPE_ARGUMENT = const MessageKind( | 202 static const ADDITIONAL_TYPE_ARGUMENT = const MessageKind( |
| 203 "additional type argument"); | 203 "additional type argument"); |
| 204 | 204 |
| 205 static const MISSING_TYPE_ARGUMENT = const MessageKind( | 205 static const MISSING_TYPE_ARGUMENT = const MessageKind( |
| 206 "missing type argument"); | 206 "missing type argument"); |
| 207 | 207 |
| 208 // TODO(johnniwinther): Use ADDITIONAL_TYPE_ARGUMENT or MISSING_TYPE_ARGUMENT |
| 209 // instead. |
| 210 static const TYPE_ARGUMENT_COUNT_MISMATCH = const MessageKind( |
| 211 "incorrect number of type arguments on #{1}"); |
| 212 |
| 208 static const MISSING_ARGUMENTS_TO_ASSERT = const MessageKind( | 213 static const MISSING_ARGUMENTS_TO_ASSERT = const MessageKind( |
| 209 "missing arguments to assert"); | 214 "missing arguments to assert"); |
| 210 | 215 |
| 211 static const GETTER_MISMATCH = const MessageKind( | 216 static const GETTER_MISMATCH = const MessageKind( |
| 212 "Error: setter disagrees on: #{1}."); | 217 "Error: setter disagrees on: #{1}."); |
| 213 | 218 |
| 214 static const SETTER_MISMATCH = const MessageKind( | 219 static const SETTER_MISMATCH = const MessageKind( |
| 215 "Error: getter disagrees on: #{1}."); | 220 "Error: getter disagrees on: #{1}."); |
| 216 | 221 |
| 217 static const NO_STATIC_OVERRIDE = const MessageKind( | 222 static const NO_STATIC_OVERRIDE = const MessageKind( |
| (...skipping 203 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 421 | 426 |
| 422 class CompileTimeConstantError extends Diagnostic { | 427 class CompileTimeConstantError extends Diagnostic { |
| 423 CompileTimeConstantError(MessageKind kind, List arguments) | 428 CompileTimeConstantError(MessageKind kind, List arguments) |
| 424 : super(kind, arguments); | 429 : super(kind, arguments); |
| 425 } | 430 } |
| 426 | 431 |
| 427 class CompilationError extends Diagnostic { | 432 class CompilationError extends Diagnostic { |
| 428 CompilationError(MessageKind kind, List arguments) | 433 CompilationError(MessageKind kind, List arguments) |
| 429 : super(kind, arguments); | 434 : super(kind, arguments); |
| 430 } | 435 } |
| OLD | NEW |