| 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 const GENERIC = const MessageKind('#{1}'); | 9 static const GENERIC = const MessageKind('#{1}'); |
| 10 | 10 |
| (...skipping 30 matching lines...) Expand all Loading... |
| 41 static const CANNOT_RESOLVE_CONSTRUCTOR = const MessageKind( | 41 static const CANNOT_RESOLVE_CONSTRUCTOR = const MessageKind( |
| 42 'cannot resolve constructor #{1}'); | 42 'cannot resolve constructor #{1}'); |
| 43 static const CANNOT_RESOLVE_CONSTRUCTOR_FOR_IMPLICIT = const MessageKind( | 43 static const CANNOT_RESOLVE_CONSTRUCTOR_FOR_IMPLICIT = const MessageKind( |
| 44 'cannot resolve constructor #{1} for implicit super call'); | 44 'cannot resolve constructor #{1} for implicit super call'); |
| 45 static const CANNOT_RESOLVE_TYPE = const MessageKind( | 45 static const CANNOT_RESOLVE_TYPE = const MessageKind( |
| 46 'cannot resolve type #{1}'); | 46 'cannot resolve type #{1}'); |
| 47 static const DUPLICATE_DEFINITION = const MessageKind( | 47 static const DUPLICATE_DEFINITION = const MessageKind( |
| 48 'duplicate definition of #{1}'); | 48 'duplicate definition of #{1}'); |
| 49 static const DUPLICATE_IMPORT = const MessageKind( | 49 static const DUPLICATE_IMPORT = const MessageKind( |
| 50 'duplicate import of #{1}'); | 50 'duplicate import of #{1}'); |
| 51 static const DUPLICATE_EXPORT = const MessageKind( |
| 52 'duplicate export of #{1}'); |
| 51 static const NOT_A_TYPE = const MessageKind( | 53 static const NOT_A_TYPE = const MessageKind( |
| 52 '#{1} is not a type'); | 54 '#{1} is not a type'); |
| 53 static const NOT_A_PREFIX = const MessageKind( | 55 static const NOT_A_PREFIX = const MessageKind( |
| 54 '#{1} is not a prefix'); | 56 '#{1} is not a prefix'); |
| 55 static const NO_SUPER_IN_OBJECT = const MessageKind( | 57 static const NO_SUPER_IN_OBJECT = const MessageKind( |
| 56 "'Object' does not have a superclass"); | 58 "'Object' does not have a superclass"); |
| 57 static const CANNOT_FIND_CONSTRUCTOR = const MessageKind( | 59 static const CANNOT_FIND_CONSTRUCTOR = const MessageKind( |
| 58 'cannot find constructor #{1}'); | 60 'cannot find constructor #{1}'); |
| 59 static const CANNOT_FIND_CONSTRUCTOR2 = const MessageKind( | 61 static const CANNOT_FIND_CONSTRUCTOR2 = const MessageKind( |
| 60 'cannot find constructor #{1} in #{2}'); | 62 'cannot find constructor #{1} in #{2}'); |
| (...skipping 290 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 351 | 353 |
| 352 class CompileTimeConstantError extends Diagnostic { | 354 class CompileTimeConstantError extends Diagnostic { |
| 353 CompileTimeConstantError(MessageKind kind, List arguments) | 355 CompileTimeConstantError(MessageKind kind, List arguments) |
| 354 : super(kind, arguments); | 356 : super(kind, arguments); |
| 355 } | 357 } |
| 356 | 358 |
| 357 class CompilationError extends Diagnostic { | 359 class CompilationError extends Diagnostic { |
| 358 CompilationError(MessageKind kind, List arguments) | 360 CompilationError(MessageKind kind, List arguments) |
| 359 : super(kind, arguments); | 361 : super(kind, arguments); |
| 360 } | 362 } |
| OLD | NEW |