| OLD | NEW |
| 1 { | 1 { |
| 2 "exampleMessage": { | 2 "exampleMessage": { |
| 3 "id": "use an Id generated by bin/message_id.dart", | 3 "id": "use an Id generated by bin/message_id.dart", |
| 4 "subId": 0, | 4 "subId": 0, |
| 5 "categories": [ | 5 "categories": [ |
| 6 "AnalysisOptionsError" | 6 "AnalysisOptionsError" |
| 7 ], | 7 ], |
| 8 "template": "#use #named #arguments", | 8 "template": "#use #named #arguments", |
| 9 "templateHoleOrder": [ | 9 "templateHoleOrder": [ |
| 10 "arguments", | 10 "arguments", |
| 11 "named", | 11 "named", |
| 12 "use" | 12 "use" |
| 13 ], | 13 ], |
| 14 "howToFix": "an explanation on how to fix things", | 14 "howToFix": "an explanation on how to fix things", |
| 15 "options": null, | 15 "options": null, |
| 16 "usedBy": [], | 16 "usedBy": [], |
| 17 "examples": [ | 17 "examples": [ |
| 18 " Some multiline example;\n That generates the bug.", | 18 " Some multiline example;\n That generates the bug.", |
| 19 { | 19 { |
| 20 "fileA.dart": " or a map from file to content.\n again mul
tiline", | 20 "fileA.dart": " or a map from file to content.\n again mul
tiline", |
| 21 "fileB.dart": " with possibly multiple files.\n muliline t
oo" | 21 "fileB.dart": " with possibly multiple files.\n muliline t
oo" |
| 22 } | 22 } |
| 23 ] | 23 ] |
| 24 }, | 24 }, |
| 25 "CONST_CONSTRUCTOR_OR_FACTORY_WITH_BODY": { | 25 "CONST_CONSTRUCTOR_WITH_BODY": { |
| 26 "id": "LGJGHW", | 26 "id": "LGJGHW", |
| 27 "subId": 0, | 27 "subId": 0, |
| 28 "categories": [ | 28 "categories": [ |
| 29 "ParserError" | 29 "ParserError" |
| 30 ], | 30 ], |
| 31 "template": "Const constructor or factory can't have a body.", | |
| 32 "templateHoleOrder": null, | |
| 33 "howToFix": "Remove the 'const' keyword or the body.", | |
| 34 "options": null, | |
| 35 "usedBy": [ | |
| 36 "Platform.dart2js" | |
| 37 ], | |
| 38 "examples": [ | |
| 39 " class C {\n const C() {}\n }\n\n main(
) => new C();", | |
| 40 " class C {\n const factory C() {}\n }\n\n
main() => new C();" | |
| 41 ] | |
| 42 }, | |
| 43 "CONST_CONSTRUCTOR_WITH_BODY": { | |
| 44 "id": "LGJGHW", | |
| 45 "subId": 1, | |
| 46 "categories": [ | |
| 47 "ParserError" | |
| 48 ], | |
| 49 "template": "Const constructor can't have a body.", | 31 "template": "Const constructor can't have a body.", |
| 50 "templateHoleOrder": null, | 32 "templateHoleOrder": null, |
| 51 "howToFix": "Try removing the 'const' keyword or the body.", | 33 "howToFix": "Try removing the 'const' keyword or the body.", |
| 52 "options": null, | 34 "options": null, |
| 53 "usedBy": [ | 35 "usedBy": [ |
| 54 "Platform.analyzer" | 36 "Platform.analyzer", |
| 37 "Platform.dart2js" |
| 55 ], | 38 ], |
| 56 "examples": [ | 39 "examples": [ |
| 57 " class C {\n const C() {}\n }\n\n main(
) => new C();" | 40 " class C {\n const C() {}\n }\n\n main(
) => new C();" |
| 58 ] | 41 ] |
| 59 }, | 42 }, |
| 60 "CONST_FACTORY": { | 43 "CONST_FACTORY": { |
| 61 "id": "LGJGHW", | 44 "id": "LGJGHW", |
| 62 "subId": 2, | 45 "subId": 1, |
| 63 "categories": [ | 46 "categories": [ |
| 64 "ParserError" | 47 "ParserError" |
| 65 ], | 48 ], |
| 66 "template": "Only redirecting factory constructors can be declared to be 'co
nst'.", | 49 "template": "Only redirecting factory constructors can be declared to be 'co
nst'.", |
| 67 "templateHoleOrder": null, | 50 "templateHoleOrder": null, |
| 68 "howToFix": "Try removing the 'const' keyword or replacing the body with '='
followed by a valid target.", | 51 "howToFix": "Try removing the 'const' keyword or replacing the body with '='
followed by a valid target.", |
| 69 "options": null, | 52 "options": null, |
| 70 "usedBy": [ | 53 "usedBy": [ |
| 71 "Platform.analyzer" | 54 "Platform.analyzer", |
| 55 "Platform.dart2js" |
| 72 ], | 56 ], |
| 73 "examples": [ | 57 "examples": [ |
| 74 " class C {\n const factory C() {}\n }\n\n
main() => new C();" | 58 " class C {\n const factory C() {}\n }\n\n
main() => new C();" |
| 75 ] | 59 ] |
| 76 }, | 60 }, |
| 77 "EXTRANEOUS_MODIFIER": { | 61 "EXTRANEOUS_MODIFIER": { |
| 78 "id": "GRKIQE", | 62 "id": "GRKIQE", |
| 79 "subId": 0, | 63 "subId": 0, |
| 80 "categories": [ | 64 "categories": [ |
| 81 "ParserError" | 65 "ParserError" |
| (...skipping 614 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 696 "examples": [ | 680 "examples": [ |
| 697 " main() {\n final x = 1;\n x = 2;\n }", | 681 " main() {\n final x = 1;\n x = 2;\n }", |
| 698 " main() {\n const x = 1;\n x = 2;\n }\n
", | 682 " main() {\n const x = 1;\n x = 2;\n }\n
", |
| 699 " final x = 1;\n main() { x = 3; }\n ", | 683 " final x = 1;\n main() { x = 3; }\n ", |
| 700 " const x = 1;\n main() { x = 3; }\n ", | 684 " const x = 1;\n main() { x = 3; }\n ", |
| 701 "get foo => null main() { foo = 5; }", | 685 "get foo => null main() { foo = 5; }", |
| 702 "const foo = 0 main() { foo = 5; }" | 686 "const foo = 0 main() { foo = 5; }" |
| 703 ] | 687 ] |
| 704 } | 688 } |
| 705 } | 689 } |
| OLD | NEW |