Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(160)

Side by Side Diff: pkg/dart_messages/lib/generated/shared_messages.json

Issue 1711863005: Split the JSON output into multiple lines. (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: Created 4 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
1 {"exampleMessage":{"id":"use an Id generated by bin/message_id.dart","subId":0," category":"AnalysisOptionsError","template":"#use #named #arguments","templateHo leOrder":["arguments","named","use"],"howToFix":"an explanation on how to fix th ings","options":null,"usedBy":[],"examples":[" Some multiline example;\n That generates the bug.",{"fileA.dart":" or a map from file to content .\n again multiline","fileB.dart":" with possibly multiple files.\ n muliline too"}]},"CONST_CONSTRUCTOR_OR_FACTORY_WITH_BODY":{"id":"LGJGHW ","subId":0,"category":"ParserError","template":"Const constructor or factory ca n't have a body.","templateHoleOrder":null,"howToFix":"Remove the 'const' keywor d or the body.","options":null,"usedBy":["Platform.dart2js"],"examples":[" class C {\n const C() {}\n }\n\n main() => new C(); "," class C {\n const factory C() {}\n }\n\n m ain() => new C();"]},"CONST_CONSTRUCTOR_WITH_BODY":{"id":"LGJGHW","subId":1,"cat egory":"ParserError","template":"Const constructor can't have a body.","template HoleOrder":null,"howToFix":"Try removing the 'const' keyword or the body.","opti ons":null,"usedBy":["Platform.analyzer"],"examples":[" class C {\n const C() {}\n }\n\n main() => new C();"]},"CONST_FACTORY": {"id":"LGJGHW","subId":2,"category":"ParserError","template":"Only redirecting f actory constructors can be declared to be 'const'.","templateHoleOrder":null,"ho wToFix":"Try removing the 'const' keyword or replacing the body with '=' followe d by a valid target.","options":null,"usedBy":["Platform.analyzer"],"examples":[ " class C {\n const factory C() {}\n }\n\n mai n() => new C();"]},"EXTRANEOUS_MODIFIER":{"id":"GRKIQE","subId":0,"category":"Pa rserError","template":"Can't have modifier '#{modifier}' here.","templateHoleOrd er":null,"howToFix":"Try removing '#{modifier}'.","options":null,"usedBy":["Plat form.dart2js"],"examples":["var String foo; main(){}","var set foo; main(){}","v ar final foo; main(){}","var var foo; main(){}","var const foo; main(){}","var a bstract foo; main(){}","var static foo; main(){}","var external foo; main(){}"," get var foo; main(){}","set var foo; main(){}","final var foo; main(){}","var va r foo; main(){}","const var foo; main(){}","abstract var foo; main(){}","static var foo; main(){}","external var foo; main(){}"]},"EXTRANEOUS_MODIFIER_REPLACE": {"id":"GRKIQE","subId":1,"category":"ParserError","template":"Can't have modifie r '#{modifier}' here.","templateHoleOrder":null,"howToFix":"Try replacing modifi er '#{modifier}' with 'var', 'final', or a type.","options":null,"usedBy":["Plat form.dart2js"],"examples":["set foo; main(){}","abstract foo; main(){}","static foo; main(){}","external foo; main(){}"]},"CONST_CLASS":{"id":"GRKIQE","subId":2 ,"category":"ParserError","template":"Classes can't be declared to be 'const'"," templateHoleOrder":null,"howToFix":"Try removing the 'const' keyword or moving t o the class' constructor(s).","options":null,"usedBy":["Platform.analyzer"],"exa mples":[" const class C {}\n\n main() => new C();\n "]},"CO NST_METHOD":{"id":"GRKIQE","subId":3,"category":"ParserError","template":"Getter s, setters and methods can't be declared to be 'const'","templateHoleOrder":null ,"howToFix":"Try removing the 'const' keyword.","options":null,"usedBy":["Platfo rm.analyzer"],"examples":["const int foo() => 499; main() {}","const int get foo => 499; main() {}","const set foo(v) => 499; main() {}","class A { const int fo o() => 499; } main() { new A(); }","class A { const int get foo => 499; } main() { new A(); }","class A { const set foo(v) => 499; } main() { new A(); }"]},"CON ST_ENUM":{"id":"GRKIQE","subId":4,"category":"ParserError","template":"Enums can 't be declared to be 'const'","templateHoleOrder":null,"howToFix":"Try removing the 'const' keyword.","options":null,"usedBy":["Platform.analyzer"],"examples":[ "const enum Foo { x } main() {}"]},"CONST_TYPEDEF":{"id":"GRKIQE","subId":5,"cat egory":"ParserError","template":"Type aliases can't be declared to be 'const'"," templateHoleOrder":null,"howToFix":"Try removing the 'const' keyword.","options" :null,"usedBy":["Platform.analyzer"],"examples":["const typedef void Foo(); main () {}"]},"CONST_AND_FINAL":{"id":"GRKIQE","subId":6,"category":"ParserError","te mplate":"Members can't be declared to be both 'const' and 'final'","templateHole Order":null,"howToFix":"Try removing either the 'const' or 'final' keyword.","op tions":null,"usedBy":["Platform.analyzer"],"examples":["final const int x = 499; main() {}","const final int x = 499; main() {}","class A { static final const i nt x = 499; } main() {}","class A { static const final int x = 499; } main() {}" ]},"CONST_AND_VAR":{"id":"GRKIQE","subId":7,"category":"ParserError","template": "Members can't be declared to be both 'const' and 'var'","templateHoleOrder":nul l,"howToFix":"Try removing either the 'const' or 'var' keyword.","options":null, "usedBy":["Platform.analyzer"],"examples":["var const x = 499; main() {}","const var x = 499; main() {}","class A { var const x = 499; } main() {}","class A { c onst var x = 499; } main() {}"]},"CLASS_IN_CLASS":{"id":"DOTHQH","subId":0,"cate gory":"ParserError","template":"Classes can't be declared inside other classes." ,"templateHoleOrder":null,"howToFix":"Try moving the class to the top-level.","o ptions":null,"usedBy":["Platform.analyzer"],"examples":["class A { class B {} } main() { new A(); }"]},"CONSTRUCTOR_WITH_RETURN_TYPE":{"id":"VOJBWY","subId":0," category":"ParserError","template":"Constructors can't have a return type","temp lateHoleOrder":null,"howToFix":"Try removing the return type.","options":null,"u sedBy":["Platform.analyzer","Platform.dart2js"],"examples":["class A { int A() { } } main() { new A(); }"]},"MISSING_EXPRESSION_IN_THROW":{"id":"FTGGMJ","subId": 0,"category":"ParserError","template":"Throw expressions must compute the object to be thrown.","templateHoleOrder":null,"howToFix":"Did you mean 'rethrow'?","o ptions":null,"usedBy":["Platform.analyzer","Platform.dart2js"],"examples":["main () { throw; }","main() { try { throw 0; } catch(e) { throw; } }"]},"RETHROW_OUTS IDE_CATCH":{"id":"MWETLC","subId":0,"category":"CompileTimeError","template":"Re throw must be inside of catch clause","templateHoleOrder":null,"howToFix":"Try m oving the expression into a catch clause, or using a 'throw' expression.","optio ns":null,"usedBy":["Platform.analyzer","Platform.dart2js"],"examples":["main() { rethrow; }"]},"RETURN_IN_GENERATIVE_CONSTRUCTOR":{"id":"UOTDQH","subId":0,"cate gory":"CompileTimeError","template":"Constructors can't return values.","templat eHoleOrder":null,"howToFix":"Try removing the return statement or using a factor y constructor.","options":null,"usedBy":["Platform.analyzer","Platform.dart2js"] ,"examples":[" class C {\n C() {\n return 1;\n }\n }\n\n main() => new C();"]},"RETURN_IN_GENERATOR":{"id":"JR UTUQ","subId":0,"category":"CompileTimeError","template":"Can't return a value f rom a generator function (using the '#{modifier}' modifier).","templateHoleOrder ":null,"howToFix":"Try removing the value, replacing 'return' with 'yield' or ch anging the method body modifier","options":null,"usedBy":["Platform.analyzer","P latform.dart2js"],"examples":[" foo() async* { return 0; }\n main( ) => foo();\n "," foo() sync* { return 0; }\n main() => foo ();\n "]}} 1 {
2 'exampleMessage': {"id":"use an Id generated by bin/message_id.dart","subId" :0,"category":"AnalysisOptionsError","template":"#use #named #arguments","templa teHoleOrder":["arguments","named","use"],"howToFix":"an explanation on how to fi x things","options":null,"usedBy":[],"examples":[" Some multiline example;\ n That generates the bug.",{"fileA.dart":" or a map from file to con tent.\n again multiline","fileB.dart":" with possibly multiple fil es.\n muliline too"}]},
3 'CONST_CONSTRUCTOR_OR_FACTORY_WITH_BODY': {"id":"LGJGHW","subId":0,"category":"P arserError","template":"Const constructor or factory can't have a body.","templa teHoleOrder":null,"howToFix":"Remove the 'const' keyword or the body.","options" :null,"usedBy":["Platform.dart2js"],"examples":[" class C {\n const C() {}\n }\n\n main() => new C();"," class C {\n const factory C() {}\n }\n\n main() => new C();"]},
4 'CONST_CONSTRUCTOR_WITH_BODY': {"id":"LGJGHW","subId":1,"category":"ParserError" ,"template":"Const constructor can't have a body.","templateHoleOrder":null,"how ToFix":"Try removing the 'const' keyword or the body.","options":null,"usedBy":[ "Platform.analyzer"],"examples":[" class C {\n const C() {}\n }\n\n main() => new C();"]},
5 'CONST_FACTORY': {"id":"LGJGHW","subId":2,"category":"ParserError","template":"O nly redirecting factory constructors can be declared to be 'const'.","templateHo leOrder":null,"howToFix":"Try removing the 'const' keyword or replacing the body with '=' followed by a valid target.","options":null,"usedBy":["Platform.analyz er"],"examples":[" class C {\n const factory C() {}\n }\n\n main() => new C();"]},
6 'EXTRANEOUS_MODIFIER': {"id":"GRKIQE","subId":0,"category":"ParserError","templa te":"Can't have modifier '#{modifier}' here.","templateHoleOrder":null,"howToFix ":"Try removing '#{modifier}'.","options":null,"usedBy":["Platform.dart2js"],"ex amples":["var String foo; main(){}","var set foo; main(){}","var final foo; main (){}","var var foo; main(){}","var const foo; main(){}","var abstract foo; main( ){}","var static foo; main(){}","var external foo; main(){}","get var foo; main( ){}","set var foo; main(){}","final var foo; main(){}","var var foo; main(){}"," const var foo; main(){}","abstract var foo; main(){}","static var foo; main(){}" ,"external var foo; main(){}"]},
7 'EXTRANEOUS_MODIFIER_REPLACE': {"id":"GRKIQE","subId":1,"category":"ParserError" ,"template":"Can't have modifier '#{modifier}' here.","templateHoleOrder":null," howToFix":"Try replacing modifier '#{modifier}' with 'var', 'final', or a type." ,"options":null,"usedBy":["Platform.dart2js"],"examples":["set foo; main(){}","a bstract foo; main(){}","static foo; main(){}","external foo; main(){}"]},
8 'CONST_CLASS': {"id":"GRKIQE","subId":2,"category":"ParserError","template":"Cla sses can't be declared to be 'const'","templateHoleOrder":null,"howToFix":"Try r emoving the 'const' keyword or moving to the class' constructor(s).","options":n ull,"usedBy":["Platform.analyzer"],"examples":[" const class C {}\n\n main() => new C();\n "]},
9 'CONST_METHOD': {"id":"GRKIQE","subId":3,"category":"ParserError","template":"Ge tters, setters and methods can't be declared to be 'const'","templateHoleOrder": null,"howToFix":"Try removing the 'const' keyword.","options":null,"usedBy":["Pl atform.analyzer"],"examples":["const int foo() => 499; main() {}","const int get foo => 499; main() {}","const set foo(v) => 499; main() {}","class A { const in t foo() => 499; } main() { new A(); }","class A { const int get foo => 499; } ma in() { new A(); }","class A { const set foo(v) => 499; } main() { new A(); }"]},
10 'CONST_ENUM': {"id":"GRKIQE","subId":4,"category":"ParserError","template":"Enum s can't be declared to be 'const'","templateHoleOrder":null,"howToFix":"Try remo ving the 'const' keyword.","options":null,"usedBy":["Platform.analyzer"],"exampl es":["const enum Foo { x } main() {}"]},
11 'CONST_TYPEDEF': {"id":"GRKIQE","subId":5,"category":"ParserError","template":"T ype aliases can't be declared to be 'const'","templateHoleOrder":null,"howToFix" :"Try removing the 'const' keyword.","options":null,"usedBy":["Platform.analyzer "],"examples":["const typedef void Foo(); main() {}"]},
12 'CONST_AND_FINAL': {"id":"GRKIQE","subId":6,"category":"ParserError","template": "Members can't be declared to be both 'const' and 'final'","templateHoleOrder":n ull,"howToFix":"Try removing either the 'const' or 'final' keyword.","options":n ull,"usedBy":["Platform.analyzer"],"examples":["final const int x = 499; main() {}","const final int x = 499; main() {}","class A { static final const int x = 4 99; } main() {}","class A { static const final int x = 499; } main() {}"]},
13 'CONST_AND_VAR': {"id":"GRKIQE","subId":7,"category":"ParserError","template":"M embers can't be declared to be both 'const' and 'var'","templateHoleOrder":null, "howToFix":"Try removing either the 'const' or 'var' keyword.","options":null,"u sedBy":["Platform.analyzer"],"examples":["var const x = 499; main() {}","const v ar x = 499; main() {}","class A { var const x = 499; } main() {}","class A { con st var x = 499; } main() {}"]},
14 'CLASS_IN_CLASS': {"id":"DOTHQH","subId":0,"category":"ParserError","template":" Classes can't be declared inside other classes.","templateHoleOrder":null,"howTo Fix":"Try moving the class to the top-level.","options":null,"usedBy":["Platform .analyzer"],"examples":["class A { class B {} } main() { new A(); }"]},
15 'CONSTRUCTOR_WITH_RETURN_TYPE': {"id":"VOJBWY","subId":0,"category":"ParserError ","template":"Constructors can't have a return type","templateHoleOrder":null,"h owToFix":"Try removing the return type.","options":null,"usedBy":["Platform.anal yzer","Platform.dart2js"],"examples":["class A { int A() {} } main() { new A(); }"]},
16 'MISSING_EXPRESSION_IN_THROW': {"id":"FTGGMJ","subId":0,"category":"ParserError" ,"template":"Throw expressions must compute the object to be thrown.","templateH oleOrder":null,"howToFix":"Did you mean 'rethrow'?","options":null,"usedBy":["Pl atform.analyzer","Platform.dart2js"],"examples":["main() { throw; }","main() { t ry { throw 0; } catch(e) { throw; } }"]},
17 'RETHROW_OUTSIDE_CATCH': {"id":"MWETLC","subId":0,"category":"CompileTimeError", "template":"Rethrow must be inside of catch clause","templateHoleOrder":null,"ho wToFix":"Try moving the expression into a catch clause, or using a 'throw' expre ssion.","options":null,"usedBy":["Platform.analyzer","Platform.dart2js"],"exampl es":["main() { rethrow; }"]},
18 'RETURN_IN_GENERATIVE_CONSTRUCTOR': {"id":"UOTDQH","subId":0,"category":"Compile TimeError","template":"Constructors can't return values.","templateHoleOrder":nu ll,"howToFix":"Try removing the return statement or using a factory constructor. ","options":null,"usedBy":["Platform.analyzer","Platform.dart2js"],"examples":[" class C {\n C() {\n return 1;\n }\n }\n\n main() => new C();"]},
19 'RETURN_IN_GENERATOR': {"id":"JRUTUQ","subId":0,"category":"CompileTimeError","t emplate":"Can't return a value from a generator function (using the '#{modifier} ' modifier).","templateHoleOrder":null,"howToFix":"Try removing the value, repla cing 'return' with 'yield' or changing the method body modifier","options":null, "usedBy":["Platform.analyzer","Platform.dart2js"],"examples":[" foo() asy nc* { return 0; }\n main() => foo();\n "," foo() sync* { re turn 0; }\n main() => foo();\n "]}
20 }
OLDNEW
« no previous file with comments | « no previous file | pkg/dart_messages/lib/shared_messages.dart » ('j') | pkg/dart_messages/lib/shared_messages.dart » ('J')

Powered by Google App Engine
This is Rietveld 408576698