| OLD | NEW |
| 1 // Copyright (c) 2015, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2015, 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 /// An update to this file must be followed by regenerating the corresponding | 5 /// An update to this file must be followed by regenerating the corresponding |
| 6 /// json, dart2js and analyzer file. Use `publish.dart` in the bin directory. | 6 /// json, dart2js and analyzer file. Use `publish.dart` in the bin directory. |
| 7 /// | 7 /// |
| 8 /// Every message in this file must have an id. Use `message_id.dart` in the | 8 /// Every message in this file must have an id. Use `message_id.dart` in the |
| 9 /// bin directory to generate a fresh one. | 9 /// bin directory to generate a fresh one. |
| 10 /// | 10 /// |
| (...skipping 514 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 525 * It is a static type warning if <i>T</i> does not have an accessible | 525 * It is a static type warning if <i>T</i> does not have an accessible |
| 526 * instance member named <i>m</i>. | 526 * instance member named <i>m</i>. |
| 527 */ | 527 */ |
| 528 'UNDEFINED_METHOD_WITH_CONSTRUCTOR': new Message( | 528 'UNDEFINED_METHOD_WITH_CONSTRUCTOR': new Message( |
| 529 id: 'ERUSKD', | 529 id: 'ERUSKD', |
| 530 subId: 2, | 530 subId: 2, |
| 531 specializationOf: "UNDEFINED_METHOD", | 531 specializationOf: "UNDEFINED_METHOD", |
| 532 categories: [Category.staticTypeWarning], | 532 categories: [Category.staticTypeWarning], |
| 533 template: "The method '#{memberName}' is not defined for the class" | 533 template: "The method '#{memberName}' is not defined for the class" |
| 534 " '#{className}', but a constructor with that name is defined.", | 534 " '#{className}', but a constructor with that name is defined.", |
| 535 howToFix: "Try adding 'new' or 'const' to invoke the constuctor, or " | 535 howToFix: "Try adding 'new' or 'const' to invoke the constructor, or " |
| 536 "change the method name.", | 536 "change the method name.", |
| 537 usedBy: [analyzer], | 537 usedBy: [analyzer], |
| 538 examples: const [ | 538 examples: const [ |
| 539 """ | 539 """ |
| 540 class A { | 540 class A { |
| 541 A.bar() {} | 541 A.bar() {} |
| 542 } | 542 } |
| 543 main() { A.bar(); } | 543 main() { A.bar(); } |
| 544 """, | 544 """, |
| 545 ]), | 545 ]), |
| (...skipping 307 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 853 main() { x = 3; } | 853 main() { x = 3; } |
| 854 """, | 854 """, |
| 855 """ | 855 """ |
| 856 const x = 1; | 856 const x = 1; |
| 857 main() { x = 3; } | 857 main() { x = 3; } |
| 858 """, | 858 """, |
| 859 "get foo => null main() { foo = 5; }", | 859 "get foo => null main() { foo = 5; }", |
| 860 "const foo = 0 main() { foo = 5; }", | 860 "const foo = 0 main() { foo = 5; }", |
| 861 ]), | 861 ]), |
| 862 }; | 862 }; |
| OLD | NEW |