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 173 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
184 static const CANNOT_INSTANTIATE_TYPEDEF = const MessageKind( | 184 static const CANNOT_INSTANTIATE_TYPEDEF = const MessageKind( |
185 "cannot instantiate typedef '#{typedefName}'"); | 185 "cannot instantiate typedef '#{typedefName}'"); |
186 | 186 |
187 static const CANNOT_INSTANTIATE_TYPE_VARIABLE = const MessageKind( | 187 static const CANNOT_INSTANTIATE_TYPE_VARIABLE = const MessageKind( |
188 "cannot instantiate type variable '#{typeVariableName}'"); | 188 "cannot instantiate type variable '#{typeVariableName}'"); |
189 | 189 |
190 static const NO_DEFAULT_CLASS = const MessageKind( | 190 static const NO_DEFAULT_CLASS = const MessageKind( |
191 "no default class on enclosing interface '#{interfaceName}'"); | 191 "no default class on enclosing interface '#{interfaceName}'"); |
192 | 192 |
193 static const CYCLIC_TYPE_VARIABLE = const MessageKind( | 193 static const CYCLIC_TYPE_VARIABLE = const MessageKind( |
194 "cyclic reference to type variable #{typeVariableName}"); | 194 "type variable #{typeVariableName} is a supertype of itself"); |
195 | 195 |
196 static const CLASS_NAME_EXPECTED = const MessageKind( | 196 static const CLASS_NAME_EXPECTED = const MessageKind( |
197 "class name expected"); | 197 "class name expected"); |
198 | 198 |
199 static const INTERFACE_TYPE_EXPECTED = const MessageKind( | 199 static const INTERFACE_TYPE_EXPECTED = const MessageKind( |
200 "interface type expected"); | 200 "interface type expected"); |
201 | 201 |
202 static const CANNOT_EXTEND = const MessageKind( | 202 static const CANNOT_EXTEND = const MessageKind( |
203 "#{type} cannot be extended"); | 203 "#{type} cannot be extended"); |
204 | 204 |
(...skipping 369 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
574 | 574 |
575 class CompileTimeConstantError extends Diagnostic { | 575 class CompileTimeConstantError extends Diagnostic { |
576 CompileTimeConstantError(MessageKind kind, [Map arguments = const {}]) | 576 CompileTimeConstantError(MessageKind kind, [Map arguments = const {}]) |
577 : super(kind, arguments); | 577 : super(kind, arguments); |
578 } | 578 } |
579 | 579 |
580 class CompilationError extends Diagnostic { | 580 class CompilationError extends Diagnostic { |
581 CompilationError(MessageKind kind, [Map arguments = const {}]) | 581 CompilationError(MessageKind kind, [Map arguments = const {}]) |
582 : super(kind, arguments); | 582 : super(kind, arguments); |
583 } | 583 } |
OLD | NEW |