| 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 546 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 557 foo(const x) {} | 557 foo(const x) {} |
| 558 main() => foo(42); | 558 main() => foo(42); |
| 559 """, """ | 559 """, """ |
| 560 foo({const x}) {} | 560 foo({const x}) {} |
| 561 main() => foo(42); | 561 main() => foo(42); |
| 562 """, """ | 562 """, """ |
| 563 foo([const x]) {} | 563 foo([const x]) {} |
| 564 main() => foo(42); | 564 main() => foo(42); |
| 565 """]); | 565 """]); |
| 566 | 566 |
| 567 static const MessageKind FORMAL_DECLARED_STATIC = const MessageKind( |
| 568 "Error: A formal parameter can't be declared static.", |
| 569 howToFix: "Try removing 'static'.", |
| 570 examples: const [""" |
| 571 foo(static x) {} |
| 572 main() => foo(42); |
| 573 """, """ |
| 574 foo({static x}) {} |
| 575 main() => foo(42); |
| 576 """, """ |
| 577 foo([static x]) {} |
| 578 main() => foo(42); |
| 579 """]); |
| 580 |
| 567 static const MessageKind CANNOT_INSTANTIATE_TYPE_VARIABLE = const MessageKind( | 581 static const MessageKind CANNOT_INSTANTIATE_TYPE_VARIABLE = const MessageKind( |
| 568 "Error: Cannot instantiate type variable '#{typeVariableName}'."); | 582 "Error: Cannot instantiate type variable '#{typeVariableName}'."); |
| 569 | 583 |
| 570 static const MessageKind CYCLIC_TYPE_VARIABLE = const MessageKind( | 584 static const MessageKind CYCLIC_TYPE_VARIABLE = const MessageKind( |
| 571 "Warning: Type variable '#{typeVariableName}' is a supertype of itself."); | 585 "Warning: Type variable '#{typeVariableName}' is a supertype of itself."); |
| 572 | 586 |
| 573 static const CYCLIC_TYPEDEF = const MessageKind( | 587 static const CYCLIC_TYPEDEF = const MessageKind( |
| 574 "Error: A typedef can't refer to itself.", | 588 "Error: A typedef can't refer to itself.", |
| 575 howToFix: "Try removing all references to '#{typedefName}' " | 589 howToFix: "Try removing all references to '#{typedefName}' " |
| 576 "in the definition of '#{typedefName}'.", | 590 "in the definition of '#{typedefName}'.", |
| (...skipping 722 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1299 | 1313 |
| 1300 class CompileTimeConstantError extends Diagnostic { | 1314 class CompileTimeConstantError extends Diagnostic { |
| 1301 CompileTimeConstantError(MessageKind kind, Map arguments, bool terse) | 1315 CompileTimeConstantError(MessageKind kind, Map arguments, bool terse) |
| 1302 : super(kind, arguments, terse); | 1316 : super(kind, arguments, terse); |
| 1303 } | 1317 } |
| 1304 | 1318 |
| 1305 class CompilationError extends Diagnostic { | 1319 class CompilationError extends Diagnostic { |
| 1306 CompilationError(MessageKind kind, Map arguments, bool terse) | 1320 CompilationError(MessageKind kind, Map arguments, bool terse) |
| 1307 : super(kind, arguments, terse); | 1321 : super(kind, arguments, terse); |
| 1308 } | 1322 } |
| OLD | NEW |