| 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 70 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 81 static const REDIRECTING_CONSTRUCTOR_CYCLE = const MessageKind( | 81 static const REDIRECTING_CONSTRUCTOR_CYCLE = const MessageKind( |
| 82 'cyclic constructor redirection'); | 82 'cyclic constructor redirection'); |
| 83 static const REDIRECTING_CONSTRUCTOR_HAS_BODY = const MessageKind( | 83 static const REDIRECTING_CONSTRUCTOR_HAS_BODY = const MessageKind( |
| 84 'redirecting constructor cannot have a body'); | 84 'redirecting constructor cannot have a body'); |
| 85 static const REDIRECTING_CONSTRUCTOR_HAS_INITIALIZER = const MessageKind( | 85 static const REDIRECTING_CONSTRUCTOR_HAS_INITIALIZER = const MessageKind( |
| 86 'redirecting constructor cannot have other initializers'); | 86 'redirecting constructor cannot have other initializers'); |
| 87 static const SUPER_INITIALIZER_IN_OBJECT = const MessageKind( | 87 static const SUPER_INITIALIZER_IN_OBJECT = const MessageKind( |
| 88 "'Object' cannot have a super initializer"); | 88 "'Object' cannot have a super initializer"); |
| 89 static const DUPLICATE_SUPER_INITIALIZER = const MessageKind( | 89 static const DUPLICATE_SUPER_INITIALIZER = const MessageKind( |
| 90 'cannot have more than one super initializer'); | 90 'cannot have more than one super initializer'); |
| 91 static const INVALID_ARGUMENTS = const MessageKind( |
| 92 "arguments do not match the expected parameters of #{1}"); |
| 91 static const NO_MATCHING_CONSTRUCTOR = const MessageKind( | 93 static const NO_MATCHING_CONSTRUCTOR = const MessageKind( |
| 92 "super call arguments and constructor parameters don't match"); | 94 "super call arguments and constructor parameters don't match"); |
| 93 static const NO_MATCHING_CONSTRUCTOR_FOR_IMPLICIT = const MessageKind( | 95 static const NO_MATCHING_CONSTRUCTOR_FOR_IMPLICIT = const MessageKind( |
| 94 "implicit super call arguments and constructor parameters don't match"); | 96 "implicit super call arguments and constructor parameters don't match"); |
| 95 static const NO_CONSTRUCTOR = const MessageKind( | 97 static const NO_CONSTRUCTOR = const MessageKind( |
| 96 '#{1} is a #{2}, not a constructor'); | 98 '#{1} is a #{2}, not a constructor'); |
| 97 static const FIELD_PARAMETER_NOT_ALLOWED = const MessageKind( | 99 static const FIELD_PARAMETER_NOT_ALLOWED = const MessageKind( |
| 98 'a field parameter is only allowed in generative constructors'); | 100 'a field parameter is only allowed in generative constructors'); |
| 99 static const INVALID_PARAMETER = const MessageKind( | 101 static const INVALID_PARAMETER = const MessageKind( |
| 100 "cannot resolve parameter"); | 102 "cannot resolve parameter"); |
| (...skipping 239 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 340 | 342 |
| 341 class CompileTimeConstantError extends Diagnostic { | 343 class CompileTimeConstantError extends Diagnostic { |
| 342 CompileTimeConstantError(MessageKind kind, List arguments) | 344 CompileTimeConstantError(MessageKind kind, List arguments) |
| 343 : super(kind, arguments); | 345 : super(kind, arguments); |
| 344 } | 346 } |
| 345 | 347 |
| 346 class CompilationError extends Diagnostic { | 348 class CompilationError extends Diagnostic { |
| 347 CompilationError(MessageKind kind, List arguments) | 349 CompilationError(MessageKind kind, List arguments) |
| 348 : super(kind, arguments); | 350 : super(kind, arguments); |
| 349 } | 351 } |
| OLD | NEW |