Chromium Code Reviews| 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_OR_FACTORY_WITH_BODY": { |
|
Johnni Winther
2016/03/08 09:36:06
What to do with this entry?
| |
| 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.", | 31 "template": "Const constructor or factory can't have a body.", |
| 32 "templateHoleOrder": null, | 32 "templateHoleOrder": null, |
| 33 "howToFix": "Remove the 'const' keyword or the body.", | 33 "howToFix": "Remove the 'const' keyword or the body.", |
| 34 "options": null, | 34 "options": null, |
| 35 "usedBy": [ | 35 "usedBy": [], |
| 36 "Platform.dart2js" | |
| 37 ], | |
| 38 "examples": [ | 36 "examples": [ |
| 39 " class C {\n const C() {}\n }\n\n main( ) => new C();", | 37 " class C {\n const C() {}\n }\n\n main( ) => new C();", |
| 40 " class C {\n const factory C() {}\n }\n\n main() => new C();" | 38 " class C {\n const factory C() {}\n }\n\n main() => new C();" |
| 41 ] | 39 ] |
| 42 }, | 40 }, |
| 43 "CONST_CONSTRUCTOR_WITH_BODY": { | 41 "CONST_CONSTRUCTOR_WITH_BODY": { |
| 44 "id": "LGJGHW", | 42 "id": "LGJGHW", |
| 45 "subId": 1, | 43 "subId": 1, |
| 46 "categories": [ | 44 "categories": [ |
| 47 "ParserError" | 45 "ParserError" |
| 48 ], | 46 ], |
| 49 "template": "Const constructor can't have a body.", | 47 "template": "Const constructor can't have a body.", |
| 50 "templateHoleOrder": null, | 48 "templateHoleOrder": null, |
| 51 "howToFix": "Try removing the 'const' keyword or the body.", | 49 "howToFix": "Try removing the 'const' keyword or the body.", |
| 52 "options": null, | 50 "options": null, |
| 53 "usedBy": [ | 51 "usedBy": [ |
| 54 "Platform.analyzer" | 52 "Platform.analyzer", |
| 53 "Platform.dart2js" | |
| 55 ], | 54 ], |
| 56 "examples": [ | 55 "examples": [ |
| 57 " class C {\n const C() {}\n }\n\n main( ) => new C();" | 56 " class C {\n const C() {}\n }\n\n main( ) => new C();" |
| 58 ] | 57 ] |
| 59 }, | 58 }, |
| 60 "CONST_FACTORY": { | 59 "CONST_FACTORY": { |
| 61 "id": "LGJGHW", | 60 "id": "LGJGHW", |
| 62 "subId": 2, | 61 "subId": 2, |
| 63 "categories": [ | 62 "categories": [ |
| 64 "ParserError" | 63 "ParserError" |
| 65 ], | 64 ], |
| 66 "template": "Only redirecting factory constructors can be declared to be 'co nst'.", | 65 "template": "Only redirecting factory constructors can be declared to be 'co nst'.", |
| 67 "templateHoleOrder": null, | 66 "templateHoleOrder": null, |
| 68 "howToFix": "Try removing the 'const' keyword or replacing the body with '=' followed by a valid target.", | 67 "howToFix": "Try removing the 'const' keyword or replacing the body with '=' followed by a valid target.", |
| 69 "options": null, | 68 "options": null, |
| 70 "usedBy": [ | 69 "usedBy": [ |
| 71 "Platform.analyzer" | 70 "Platform.analyzer", |
| 71 "Platform.dart2js" | |
| 72 ], | 72 ], |
| 73 "examples": [ | 73 "examples": [ |
| 74 " class C {\n const factory C() {}\n }\n\n main() => new C();" | 74 " class C {\n const factory C() {}\n }\n\n main() => new C();" |
| 75 ] | 75 ] |
| 76 }, | 76 }, |
| 77 "EXTRANEOUS_MODIFIER": { | 77 "EXTRANEOUS_MODIFIER": { |
| 78 "id": "GRKIQE", | 78 "id": "GRKIQE", |
| 79 "subId": 0, | 79 "subId": 0, |
| 80 "categories": [ | 80 "categories": [ |
| 81 "ParserError" | 81 "ParserError" |
| (...skipping 614 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 696 "examples": [ | 696 "examples": [ |
| 697 " main() {\n final x = 1;\n x = 2;\n }", | 697 " main() {\n final x = 1;\n x = 2;\n }", |
| 698 " main() {\n const x = 1;\n x = 2;\n }\n ", | 698 " main() {\n const x = 1;\n x = 2;\n }\n ", |
| 699 " final x = 1;\n main() { x = 3; }\n ", | 699 " final x = 1;\n main() { x = 3; }\n ", |
| 700 " const x = 1;\n main() { x = 3; }\n ", | 700 " const x = 1;\n main() { x = 3; }\n ", |
| 701 "get foo => null main() { foo = 5; }", | 701 "get foo => null main() { foo = 5; }", |
| 702 "const foo = 0 main() { foo = 5; }" | 702 "const foo = 0 main() { foo = 5; }" |
| 703 ] | 703 ] |
| 704 } | 704 } |
| 705 } | 705 } |
| OLD | NEW |