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 664 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
675 id: 'ERUSKD', | 675 id: 'ERUSKD', |
676 subId: 7, | 676 subId: 7, |
677 categories: [ | 677 categories: [ |
678 Category.staticTypeWarning, | 678 Category.staticTypeWarning, |
679 Category.staticWarning, | 679 Category.staticWarning, |
680 Category.hint | 680 Category.hint |
681 ], | 681 ], |
682 template: "The setter '#{memberName}' is not defined for the " | 682 template: "The setter '#{memberName}' is not defined for the " |
683 "class '#{className}'.", | 683 "class '#{className}'.", |
684 usedBy: [dart2js, analyzer], | 684 usedBy: [dart2js, analyzer], |
685 // TODO(eernst): When this.x access is available, add examples here, | |
686 // e.g., "class A { var x; A(this.x) : x = 3; } main() => new A(2);" | |
687 examples: const ["class A {} main() { new A().x = 499; }",]), | 685 examples: const ["class A {} main() { new A().x = 499; }",]), |
688 | 686 |
689 'NO_SUCH_SUPER_MEMBER': new Message( | 687 'NO_SUCH_SUPER_MEMBER': new Message( |
690 id: 'ERUSKD', | 688 id: 'ERUSKD', |
691 subId: 8, | 689 subId: 8, |
692 categories: [Category.staticTypeWarning], | 690 categories: [Category.staticTypeWarning], |
693 template: | 691 template: |
694 "Can't resolve '#{memberName}' in a superclass of '#{className}'.", | 692 "Can't resolve '#{memberName}' in a superclass of '#{className}'.", |
695 usedBy: [dart2js]), | 693 usedBy: [dart2js]), |
696 | 694 |
(...skipping 178 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
875 main() { x = 3; } | 873 main() { x = 3; } |
876 """, | 874 """, |
877 """ | 875 """ |
878 const x = 1; | 876 const x = 1; |
879 main() { x = 3; } | 877 main() { x = 3; } |
880 """, | 878 """, |
881 "get foo => null main() { foo = 5; }", | 879 "get foo => null main() { foo = 5; }", |
882 "const foo = 0 main() { foo = 5; }", | 880 "const foo = 0 main() { foo = 5; }", |
883 ]), | 881 ]), |
884 }; | 882 }; |
OLD | NEW |