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 its upper bound"); |
ahe
2013/04/02 09:08:16
How about: "is a supertype of itself"
Johnni Winther
2013/04/02 12:53:48
Done.
| |
195 | 195 |
196 static const CYCLIC_TYPEDEF = const MessageKind( | 196 static const CYCLIC_TYPEDEF = const MessageKind( |
197 "typedef #{typedefName} refers to itself"); | 197 "typedef #{typedefName} refers to itself"); |
198 | 198 |
199 static const CYCLIC_TYPEDEF_ONE = const MessageKind( | 199 static const CYCLIC_TYPEDEF_ONE = const MessageKind( |
200 "typedef #{typedefName} refers to itself through " | 200 "typedef #{typedefName} refers to itself through " |
201 "typedef #{otherTypedefName}"); | 201 "typedef #{otherTypedefName}"); |
202 | 202 |
203 static const CYCLIC_TYPEDEF_MORE = const MessageKind( | 203 static const CYCLIC_TYPEDEF_MORE = const MessageKind( |
204 "typedef #{typedefName} refers to itself through several typedefs"); | 204 "typedef #{typedefName} refers to itself through several typedefs"); |
(...skipping 379 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
584 | 584 |
585 class CompileTimeConstantError extends Diagnostic { | 585 class CompileTimeConstantError extends Diagnostic { |
586 CompileTimeConstantError(MessageKind kind, [Map arguments = const {}]) | 586 CompileTimeConstantError(MessageKind kind, [Map arguments = const {}]) |
587 : super(kind, arguments); | 587 : super(kind, arguments); |
588 } | 588 } |
589 | 589 |
590 class CompilationError extends Diagnostic { | 590 class CompilationError extends Diagnostic { |
591 CompilationError(MessageKind kind, [Map arguments = const {}]) | 591 CompilationError(MessageKind kind, [Map arguments = const {}]) |
592 : super(kind, arguments); | 592 : super(kind, arguments); |
593 } | 593 } |
OLD | NEW |