| 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 const DONT_KNOW_HOW_TO_FIX = ""; | 7 const DONT_KNOW_HOW_TO_FIX = ""; |
| 8 | 8 |
| 9 /** | 9 /** |
| 10 * The messages in this file should meet the following guide lines: | 10 * The messages in this file should meet the following guide lines: |
| (...skipping 382 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 393 static const MessageKind REDIRECTING_CONSTRUCTOR_HAS_INITIALIZER = | 393 static const MessageKind REDIRECTING_CONSTRUCTOR_HAS_INITIALIZER = |
| 394 const MessageKind( | 394 const MessageKind( |
| 395 "Redirecting constructor cannot have other initializers."); | 395 "Redirecting constructor cannot have other initializers."); |
| 396 | 396 |
| 397 static const MessageKind SUPER_INITIALIZER_IN_OBJECT = const MessageKind( | 397 static const MessageKind SUPER_INITIALIZER_IN_OBJECT = const MessageKind( |
| 398 "'Object' cannot have a super initializer."); | 398 "'Object' cannot have a super initializer."); |
| 399 | 399 |
| 400 static const MessageKind DUPLICATE_SUPER_INITIALIZER = const MessageKind( | 400 static const MessageKind DUPLICATE_SUPER_INITIALIZER = const MessageKind( |
| 401 "Cannot have more than one super initializer."); | 401 "Cannot have more than one super initializer."); |
| 402 | 402 |
| 403 static const MessageKind INVALID_ARGUMENTS = const MessageKind( | 403 static const MessageKind INVALID_CONSTRUCTOR_ARGUMENTS = const MessageKind( |
| 404 "Arguments do not match the expected parameters of '#{methodName}'."); | 404 "Arguments do not match the expected parameters of constructor " |
| 405 "'#{constructorName}'."); |
| 405 | 406 |
| 406 static const MessageKind NO_MATCHING_CONSTRUCTOR = const MessageKind( | 407 static const MessageKind NO_MATCHING_CONSTRUCTOR = const MessageKind( |
| 407 "'super' call arguments and constructor parameters do not match."); | 408 "'super' call arguments and constructor parameters do not match."); |
| 408 | 409 |
| 409 static const MessageKind NO_MATCHING_CONSTRUCTOR_FOR_IMPLICIT = | 410 static const MessageKind NO_MATCHING_CONSTRUCTOR_FOR_IMPLICIT = |
| 410 const MessageKind( | 411 const MessageKind( |
| 411 "Implicit 'super' call arguments and constructor parameters " | 412 "Implicit 'super' call arguments and constructor parameters " |
| 412 "do not match."); | 413 "do not match."); |
| 413 | 414 |
| 414 static const MessageKind CONST_CALLS_NON_CONST = const MessageKind( | 415 static const MessageKind CONST_CALLS_NON_CONST = const MessageKind( |
| (...skipping 1661 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2076 static String convertToString(value) { | 2077 static String convertToString(value) { |
| 2077 if (value is ErrorToken) { | 2078 if (value is ErrorToken) { |
| 2078 // Shouldn't happen. | 2079 // Shouldn't happen. |
| 2079 return value.assertionMessage; | 2080 return value.assertionMessage; |
| 2080 } else if (value is Token) { | 2081 } else if (value is Token) { |
| 2081 value = value.value; | 2082 value = value.value; |
| 2082 } | 2083 } |
| 2083 return '$value'; | 2084 return '$value'; |
| 2084 } | 2085 } |
| 2085 } | 2086 } |
| OLD | NEW |