| 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 final GENERIC = const MessageKind('#{1}'); | 9 static final GENERIC = const MessageKind('#{1}'); |
| 10 | 10 |
| (...skipping 141 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 152 | 152 |
| 153 static final CANNOT_INSTANTIATE_TYPEDEF = const MessageKind( | 153 static final CANNOT_INSTANTIATE_TYPEDEF = const MessageKind( |
| 154 "cannot instantiate typedef '#{1}'"); | 154 "cannot instantiate typedef '#{1}'"); |
| 155 | 155 |
| 156 static final NO_DEFAULT_CLASS = const MessageKind( | 156 static final NO_DEFAULT_CLASS = const MessageKind( |
| 157 "no default class on enclosing interface '#{1}'"); | 157 "no default class on enclosing interface '#{1}'"); |
| 158 | 158 |
| 159 static final CYCLIC_TYPE_VARIABLE = const MessageKind( | 159 static final CYCLIC_TYPE_VARIABLE = const MessageKind( |
| 160 "cyclic reference to type variable #{1}"); | 160 "cyclic reference to type variable #{1}"); |
| 161 static final TYPE_NAME_EXPECTED = const MessageKind( | 161 static final TYPE_NAME_EXPECTED = const MessageKind( |
| 162 "class or interface name exptected"); | 162 "class or interface name expected"); |
| 163 | 163 |
| 164 static final CANNOT_EXTEND = const MessageKind( | 164 static final CANNOT_EXTEND = const MessageKind( |
| 165 "#{1} cannot be extended"); | 165 "#{1} cannot be extended"); |
| 166 | 166 |
| 167 static final CANNOT_IMPLEMENT = const MessageKind( | 167 static final CANNOT_IMPLEMENT = const MessageKind( |
| 168 "#{1} cannot be implemented"); | 168 "#{1} cannot be implemented"); |
| 169 | 169 |
| 170 static final ILLEGAL_SUPER_SEND = const MessageKind( | 170 static final ILLEGAL_SUPER_SEND = const MessageKind( |
| 171 "#{1} cannot be called on super"); | 171 "#{1} cannot be called on super"); |
| 172 | 172 |
| (...skipping 96 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 269 | 269 |
| 270 class CompileTimeConstantError extends Diagnostic { | 270 class CompileTimeConstantError extends Diagnostic { |
| 271 CompileTimeConstantError(MessageKind kind, List<Type> arguments) | 271 CompileTimeConstantError(MessageKind kind, List<Type> arguments) |
| 272 : super(kind, arguments); | 272 : super(kind, arguments); |
| 273 } | 273 } |
| 274 | 274 |
| 275 class CompilationError extends Diagnostic { | 275 class CompilationError extends Diagnostic { |
| 276 CompilationError(MessageKind kind, List<Type> arguments) | 276 CompilationError(MessageKind kind, List<Type> arguments) |
| 277 : super(kind, arguments); | 277 : super(kind, arguments); |
| 278 } | 278 } |
| OLD | NEW |