Chromium Code Reviews| 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 535 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 546 static const MessageKind SWITCH_CASE_VALUE_OVERRIDES_EQUALS = | 546 static const MessageKind SWITCH_CASE_VALUE_OVERRIDES_EQUALS = |
| 547 const MessageKind( | 547 const MessageKind( |
| 548 "'case' expression type '#{type}' overrides 'operator =='."); | 548 "'case' expression type '#{type}' overrides 'operator =='."); |
| 549 | 549 |
| 550 static const MessageKind INVALID_ARGUMENT_AFTER_NAMED = const MessageKind( | 550 static const MessageKind INVALID_ARGUMENT_AFTER_NAMED = const MessageKind( |
| 551 "Unnamed argument after named argument."); | 551 "Unnamed argument after named argument."); |
| 552 | 552 |
| 553 static const MessageKind NOT_A_COMPILE_TIME_CONSTANT = const MessageKind( | 553 static const MessageKind NOT_A_COMPILE_TIME_CONSTANT = const MessageKind( |
| 554 "Not a compile-time constant."); | 554 "Not a compile-time constant."); |
| 555 | 555 |
| 556 static const MessageKind DEFERRED_COMPILE_TIME_CONSTANT = const MessageKind( | |
| 557 "Deferred classes cannot be used in const instance creation " | |
|
floitsch
2014/03/06 15:32:58
maybe:
"Deferred classes cannot be used to create
sigurdm
2014/03/07 12:50:49
Done.
| |
| 558 "expressions."); | |
| 559 | |
| 556 static const MessageKind CYCLIC_COMPILE_TIME_CONSTANTS = const MessageKind( | 560 static const MessageKind CYCLIC_COMPILE_TIME_CONSTANTS = const MessageKind( |
| 557 "Cycle in the compile-time constant computation."); | 561 "Cycle in the compile-time constant computation."); |
| 558 | 562 |
| 559 static const MessageKind CONSTRUCTOR_IS_NOT_CONST = const MessageKind( | 563 static const MessageKind CONSTRUCTOR_IS_NOT_CONST = const MessageKind( |
| 560 "Constructor is not a 'const' constructor."); | 564 "Constructor is not a 'const' constructor."); |
| 561 | 565 |
| 562 static const MessageKind CONST_MAP_KEY_OVERRIDES_EQUALS = | 566 static const MessageKind CONST_MAP_KEY_OVERRIDES_EQUALS = |
| 563 const MessageKind( | 567 const MessageKind( |
| 564 "Const-map key type '#{type}' overrides 'operator =='."); | 568 "Const-map key type '#{type}' overrides 'operator =='."); |
| 565 | 569 |
| (...skipping 1349 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 1915 return computeMessage(); | 1919 return computeMessage(); |
| 1916 } | 1920 } |
| 1917 | 1921 |
| 1918 bool operator==(other) { | 1922 bool operator==(other) { |
| 1919 if (other is !Message) return false; | 1923 if (other is !Message) return false; |
| 1920 return (kind == other.kind) && (toString() == other.toString()); | 1924 return (kind == other.kind) && (toString() == other.toString()); |
| 1921 } | 1925 } |
| 1922 | 1926 |
| 1923 int get hashCode => throw new UnsupportedError('Message.hashCode'); | 1927 int get hashCode => throw new UnsupportedError('Message.hashCode'); |
| 1924 } | 1928 } |
| OLD | NEW |