| 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 549 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 560 "Error: 'default' only allowed on last case of a switch."); | 560 "Error: 'default' only allowed on last case of a switch."); |
| 561 | 561 |
| 562 static const MessageKind SWITCH_CASE_TYPES_NOT_EQUAL = const MessageKind( | 562 static const MessageKind SWITCH_CASE_TYPES_NOT_EQUAL = const MessageKind( |
| 563 "Error: 'case' expressions do not all have type '#{type}'."); | 563 "Error: 'case' expressions do not all have type '#{type}'."); |
| 564 | 564 |
| 565 static const MessageKind SWITCH_CASE_TYPES_NOT_EQUAL_CASE = const MessageKind( | 565 static const MessageKind SWITCH_CASE_TYPES_NOT_EQUAL_CASE = const MessageKind( |
| 566 "Info: 'case' expression of type '#{type}'."); | 566 "Info: 'case' expression of type '#{type}'."); |
| 567 | 567 |
| 568 static const MessageKind SWITCH_CASE_VALUE_OVERRIDES_EQUALS = | 568 static const MessageKind SWITCH_CASE_VALUE_OVERRIDES_EQUALS = |
| 569 const MessageKind( | 569 const MessageKind( |
| 570 "Error: 'case' expression type overrides 'operator=='."); | 570 "Error: 'case' expression type '#{type}' overrides 'operator =='."); |
| 571 | 571 |
| 572 static const MessageKind INVALID_ARGUMENT_AFTER_NAMED = const MessageKind( | 572 static const MessageKind INVALID_ARGUMENT_AFTER_NAMED = const MessageKind( |
| 573 "Error: Unnamed argument after named argument."); | 573 "Error: Unnamed argument after named argument."); |
| 574 | 574 |
| 575 static const MessageKind NOT_A_COMPILE_TIME_CONSTANT = const MessageKind( | 575 static const MessageKind NOT_A_COMPILE_TIME_CONSTANT = const MessageKind( |
| 576 "Error: Not a compile-time constant."); | 576 "Error: Not a compile-time constant."); |
| 577 | 577 |
| 578 static const MessageKind CYCLIC_COMPILE_TIME_CONSTANTS = const MessageKind( | 578 static const MessageKind CYCLIC_COMPILE_TIME_CONSTANTS = const MessageKind( |
| 579 "Error: Cycle in the compile-time constant computation."); | 579 "Error: Cycle in the compile-time constant computation."); |
| 580 | 580 |
| (...skipping 993 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1574 | 1574 |
| 1575 class CompileTimeConstantError extends Diagnostic { | 1575 class CompileTimeConstantError extends Diagnostic { |
| 1576 CompileTimeConstantError(MessageKind kind, Map arguments, bool terse) | 1576 CompileTimeConstantError(MessageKind kind, Map arguments, bool terse) |
| 1577 : super(kind, arguments, terse); | 1577 : super(kind, arguments, terse); |
| 1578 } | 1578 } |
| 1579 | 1579 |
| 1580 class CompilationError extends Diagnostic { | 1580 class CompilationError extends Diagnostic { |
| 1581 CompilationError(MessageKind kind, Map arguments, bool terse) | 1581 CompilationError(MessageKind kind, Map arguments, bool terse) |
| 1582 : super(kind, arguments, terse); | 1582 : super(kind, arguments, terse); |
| 1583 } | 1583 } |
| OLD | NEW |