| 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 1342 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1353 const MessageKind( | 1353 const MessageKind( |
| 1354 "Error: '#{keyword}' is a reserved word and can't be used here.", | 1354 "Error: '#{keyword}' is a reserved word and can't be used here.", |
| 1355 howToFix: "Try using a different name.", | 1355 howToFix: "Try using a different name.", |
| 1356 examples: const ["do() {} main() {}"]); | 1356 examples: const ["do() {} main() {}"]); |
| 1357 | 1357 |
| 1358 static const MessageKind UNUSED_METHOD = const MessageKind( | 1358 static const MessageKind UNUSED_METHOD = const MessageKind( |
| 1359 "Hint: The method '#{method_name}' is never called.", | 1359 "Hint: The method '#{method_name}' is never called.", |
| 1360 howToFix: "Consider deleting it.", | 1360 howToFix: "Consider deleting it.", |
| 1361 examples: const ["deadCode() {} main() {}"]); | 1361 examples: const ["deadCode() {} main() {}"]); |
| 1362 | 1362 |
| 1363 static const MessageKind UNIMPLEMENTED_METHOD = const MessageKind( |
| 1364 "Warning: '#{class_name}' doesn't implement '#{member_name}'.", |
| 1365 howToFix: "Try adding an implementation of '#{member_name}'.", |
| 1366 examples: const [""" |
| 1367 abstract class I { |
| 1368 m(); |
| 1369 } |
| 1370 |
| 1371 class C implements I {} |
| 1372 |
| 1373 class D implements I { |
| 1374 m() {} |
| 1375 } |
| 1376 |
| 1377 main() { |
| 1378 new D().m(); |
| 1379 new C(); |
| 1380 } |
| 1381 """, """ |
| 1382 abstract class I { |
| 1383 m(); |
| 1384 } |
| 1385 |
| 1386 class C extends I {} |
| 1387 |
| 1388 class D extends I { |
| 1389 m() {} |
| 1390 } |
| 1391 |
| 1392 main() { |
| 1393 new D().m(); |
| 1394 new C(); |
| 1395 } |
| 1396 """]); |
| 1397 |
| 1363 static const MessageKind COMPILER_CRASHED = const MessageKind( | 1398 static const MessageKind COMPILER_CRASHED = const MessageKind( |
| 1364 "Error: The compiler crashed when compiling this element."); | 1399 "Error: The compiler crashed when compiling this element."); |
| 1365 | 1400 |
| 1366 static const MessageKind PLEASE_REPORT_THE_CRASH = const MessageKind(''' | 1401 static const MessageKind PLEASE_REPORT_THE_CRASH = const MessageKind(''' |
| 1367 The compiler is broken. | 1402 The compiler is broken. |
| 1368 | 1403 |
| 1369 When compiling the above element, the compiler crashed. It is not | 1404 When compiling the above element, the compiler crashed. It is not |
| 1370 possible to tell if this is caused by a problem in your program or | 1405 possible to tell if this is caused by a problem in your program or |
| 1371 not. Regardless, the compiler should not crash. | 1406 not. Regardless, the compiler should not crash. |
| 1372 | 1407 |
| (...skipping 220 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1593 | 1628 |
| 1594 class CompileTimeConstantError extends Diagnostic { | 1629 class CompileTimeConstantError extends Diagnostic { |
| 1595 CompileTimeConstantError(MessageKind kind, Map arguments, bool terse) | 1630 CompileTimeConstantError(MessageKind kind, Map arguments, bool terse) |
| 1596 : super(kind, arguments, terse); | 1631 : super(kind, arguments, terse); |
| 1597 } | 1632 } |
| 1598 | 1633 |
| 1599 class CompilationError extends Diagnostic { | 1634 class CompilationError extends Diagnostic { |
| 1600 CompilationError(MessageKind kind, Map arguments, bool terse) | 1635 CompilationError(MessageKind kind, Map arguments, bool terse) |
| 1601 : super(kind, arguments, terse); | 1636 : super(kind, arguments, terse); |
| 1602 } | 1637 } |
| OLD | NEW |