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

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

Issue 1750143005: Move more messages. (Closed) Base URL: https://github.com/dart-lang/sdk.git@master
Patch Set: Undo change to analyze_test_test.dart Created 4 years, 9 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 { 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",
(...skipping 114 matching lines...) Expand 10 before | Expand all | Expand 10 after
125 "static foo; main(){}", 125 "static foo; main(){}",
126 "external foo; main(){}" 126 "external foo; main(){}"
127 ] 127 ]
128 }, 128 },
129 "CONST_CLASS": { 129 "CONST_CLASS": {
130 "id": "GRKIQE", 130 "id": "GRKIQE",
131 "subId": 2, 131 "subId": 2,
132 "categories": [ 132 "categories": [
133 "ParserError" 133 "ParserError"
134 ], 134 ],
135 "template": "Classes can't be declared to be 'const'", 135 "template": "Classes can't be declared to be 'const'.",
136 "templateHoleOrder": null, 136 "templateHoleOrder": null,
137 "howToFix": "Try removing the 'const' keyword or moving to the class' constr uctor(s).", 137 "howToFix": "Try removing the 'const' keyword or moving to the class' constr uctor(s).",
138 "options": null, 138 "options": null,
139 "usedBy": [ 139 "usedBy": [
140 "Platform.analyzer" 140 "Platform.analyzer"
141 ], 141 ],
142 "examples": [ 142 "examples": [
143 " const class C {}\n\n main() => new C();\n " 143 " const class C {}\n\n main() => new C();\n "
144 ] 144 ]
145 }, 145 },
146 "CONST_METHOD": { 146 "CONST_METHOD": {
147 "id": "GRKIQE", 147 "id": "GRKIQE",
148 "subId": 3, 148 "subId": 3,
149 "categories": [ 149 "categories": [
150 "ParserError" 150 "ParserError"
151 ], 151 ],
152 "template": "Getters, setters and methods can't be declared to be 'const'", 152 "template": "Getters, setters and methods can't be declared to be 'const'.",
153 "templateHoleOrder": null, 153 "templateHoleOrder": null,
154 "howToFix": "Try removing the 'const' keyword.", 154 "howToFix": "Try removing the 'const' keyword.",
155 "options": null, 155 "options": null,
156 "usedBy": [ 156 "usedBy": [
157 "Platform.analyzer" 157 "Platform.analyzer"
158 ], 158 ],
159 "examples": [ 159 "examples": [
160 "const int foo() => 499; main() {}", 160 "const int foo() => 499; main() {}",
161 "const int get foo => 499; main() {}", 161 "const int get foo => 499; main() {}",
162 "const set foo(v) => 499; main() {}", 162 "const set foo(v) => 499; main() {}",
163 "class A { const int foo() => 499; } main() { new A(); }", 163 "class A { const int foo() => 499; } main() { new A(); }",
164 "class A { const int get foo => 499; } main() { new A(); }", 164 "class A { const int get foo => 499; } main() { new A(); }",
165 "class A { const set foo(v) => 499; } main() { new A(); }" 165 "class A { const set foo(v) => 499; } main() { new A(); }"
166 ] 166 ]
167 }, 167 },
168 "CONST_ENUM": { 168 "CONST_ENUM": {
169 "id": "GRKIQE", 169 "id": "GRKIQE",
170 "subId": 4, 170 "subId": 4,
171 "categories": [ 171 "categories": [
172 "ParserError" 172 "ParserError"
173 ], 173 ],
174 "template": "Enums can't be declared to be 'const'", 174 "template": "Enums can't be declared to be 'const'.",
175 "templateHoleOrder": null, 175 "templateHoleOrder": null,
176 "howToFix": "Try removing the 'const' keyword.", 176 "howToFix": "Try removing the 'const' keyword.",
177 "options": null, 177 "options": null,
178 "usedBy": [ 178 "usedBy": [
179 "Platform.analyzer" 179 "Platform.analyzer"
180 ], 180 ],
181 "examples": [ 181 "examples": [
182 "const enum Foo { x } main() {}" 182 "const enum Foo { x } main() {}"
183 ] 183 ]
184 }, 184 },
185 "CONST_TYPEDEF": { 185 "CONST_TYPEDEF": {
186 "id": "GRKIQE", 186 "id": "GRKIQE",
187 "subId": 5, 187 "subId": 5,
188 "categories": [ 188 "categories": [
189 "ParserError" 189 "ParserError"
190 ], 190 ],
191 "template": "Type aliases can't be declared to be 'const'", 191 "template": "Type aliases can't be declared to be 'const'.",
192 "templateHoleOrder": null, 192 "templateHoleOrder": null,
193 "howToFix": "Try removing the 'const' keyword.", 193 "howToFix": "Try removing the 'const' keyword.",
194 "options": null, 194 "options": null,
195 "usedBy": [ 195 "usedBy": [
196 "Platform.analyzer" 196 "Platform.analyzer"
197 ], 197 ],
198 "examples": [ 198 "examples": [
199 "const typedef void Foo(); main() {}" 199 "const typedef void Foo(); main() {}"
200 ] 200 ]
201 }, 201 },
202 "CONST_AND_FINAL": { 202 "CONST_AND_FINAL": {
203 "id": "GRKIQE", 203 "id": "GRKIQE",
204 "subId": 6, 204 "subId": 6,
205 "categories": [ 205 "categories": [
206 "ParserError" 206 "ParserError"
207 ], 207 ],
208 "template": "Members can't be declared to be both 'const' and 'final'", 208 "template": "Members can't be declared to be both 'const' and 'final'.",
209 "templateHoleOrder": null, 209 "templateHoleOrder": null,
210 "howToFix": "Try removing either the 'const' or 'final' keyword.", 210 "howToFix": "Try removing either the 'const' or 'final' keyword.",
211 "options": null, 211 "options": null,
212 "usedBy": [ 212 "usedBy": [
213 "Platform.analyzer" 213 "Platform.analyzer"
214 ], 214 ],
215 "examples": [ 215 "examples": [
216 "final const int x = 499; main() {}", 216 "final const int x = 499; main() {}",
217 "const final int x = 499; main() {}", 217 "const final int x = 499; main() {}",
218 "class A { static final const int x = 499; } main() {}", 218 "class A { static final const int x = 499; } main() {}",
219 "class A { static const final int x = 499; } main() {}" 219 "class A { static const final int x = 499; } main() {}"
220 ] 220 ]
221 }, 221 },
222 "CONST_AND_VAR": { 222 "CONST_AND_VAR": {
223 "id": "GRKIQE", 223 "id": "GRKIQE",
224 "subId": 7, 224 "subId": 7,
225 "categories": [ 225 "categories": [
226 "ParserError" 226 "ParserError"
227 ], 227 ],
228 "template": "Members can't be declared to be both 'const' and 'var'", 228 "template": "Members can't be declared to be both 'const' and 'var'.",
229 "templateHoleOrder": null, 229 "templateHoleOrder": null,
230 "howToFix": "Try removing either the 'const' or 'var' keyword.", 230 "howToFix": "Try removing either the 'const' or 'var' keyword.",
231 "options": null, 231 "options": null,
232 "usedBy": [ 232 "usedBy": [
233 "Platform.analyzer" 233 "Platform.analyzer"
234 ], 234 ],
235 "examples": [ 235 "examples": [
236 "var const x = 499; main() {}", 236 "var const x = 499; main() {}",
237 "const var x = 499; main() {}", 237 "const var x = 499; main() {}",
238 "class A { var const x = 499; } main() {}", 238 "class A { var const x = 499; } main() {}",
(...skipping 16 matching lines...) Expand all
255 "examples": [ 255 "examples": [
256 "class A { class B {} } main() { new A(); }" 256 "class A { class B {} } main() { new A(); }"
257 ] 257 ]
258 }, 258 },
259 "CONSTRUCTOR_WITH_RETURN_TYPE": { 259 "CONSTRUCTOR_WITH_RETURN_TYPE": {
260 "id": "VOJBWY", 260 "id": "VOJBWY",
261 "subId": 0, 261 "subId": 0,
262 "categories": [ 262 "categories": [
263 "ParserError" 263 "ParserError"
264 ], 264 ],
265 "template": "Constructors can't have a return type", 265 "template": "Constructors can't have a return type.",
266 "templateHoleOrder": null, 266 "templateHoleOrder": null,
267 "howToFix": "Try removing the return type.", 267 "howToFix": "Try removing the return type.",
268 "options": null, 268 "options": null,
269 "usedBy": [ 269 "usedBy": [
270 "Platform.analyzer", 270 "Platform.analyzer",
271 "Platform.dart2js" 271 "Platform.dart2js"
272 ], 272 ],
273 "examples": [ 273 "examples": [
274 "class A { int A() {} } main() { new A(); }" 274 "class A { int A() {} } main() { new A(); }"
275 ] 275 ]
(...skipping 16 matching lines...) Expand all
292 "main() { throw; }", 292 "main() { throw; }",
293 "main() { try { throw 0; } catch(e) { throw; } }" 293 "main() { try { throw 0; } catch(e) { throw; } }"
294 ] 294 ]
295 }, 295 },
296 "RETHROW_OUTSIDE_CATCH": { 296 "RETHROW_OUTSIDE_CATCH": {
297 "id": "MWETLC", 297 "id": "MWETLC",
298 "subId": 0, 298 "subId": 0,
299 "categories": [ 299 "categories": [
300 "CompileTimeError" 300 "CompileTimeError"
301 ], 301 ],
302 "template": "Rethrow must be inside of catch clause", 302 "template": "Rethrow must be inside of catch clause.",
303 "templateHoleOrder": null, 303 "templateHoleOrder": null,
304 "howToFix": "Try moving the expression into a catch clause, or using a 'thro w' expression.", 304 "howToFix": "Try moving the expression into a catch clause, or using a 'thro w' expression.",
305 "options": null, 305 "options": null,
306 "usedBy": [ 306 "usedBy": [
307 "Platform.analyzer", 307 "Platform.analyzer",
308 "Platform.dart2js" 308 "Platform.dart2js"
309 ], 309 ],
310 "examples": [ 310 "examples": [
311 "main() { rethrow; }" 311 "main() { rethrow; }"
312 ] 312 ]
(...skipping 17 matching lines...) Expand all
330 ] 330 ]
331 }, 331 },
332 "RETURN_IN_GENERATOR": { 332 "RETURN_IN_GENERATOR": {
333 "id": "JRUTUQ", 333 "id": "JRUTUQ",
334 "subId": 0, 334 "subId": 0,
335 "categories": [ 335 "categories": [
336 "CompileTimeError" 336 "CompileTimeError"
337 ], 337 ],
338 "template": "Can't return a value from a generator function (using the '#{mo difier}' modifier).", 338 "template": "Can't return a value from a generator function (using the '#{mo difier}' modifier).",
339 "templateHoleOrder": null, 339 "templateHoleOrder": null,
340 "howToFix": "Try removing the value, replacing 'return' with 'yield' or chan ging the method body modifier", 340 "howToFix": "Try removing the value, replacing 'return' with 'yield' or chan ging the method body modifier.",
341 "options": null, 341 "options": null,
342 "usedBy": [ 342 "usedBy": [
343 "Platform.analyzer", 343 "Platform.analyzer",
344 "Platform.dart2js" 344 "Platform.dart2js"
345 ], 345 ],
346 "examples": [ 346 "examples": [
347 " foo() async* { return 0; }\n main() => foo();\n ", 347 " foo() async* { return 0; }\n main() => foo();\n ",
348 " foo() sync* { return 0; }\n main() => foo();\n " 348 " foo() sync* { return 0; }\n main() => foo();\n "
349 ] 349 ]
350 }, 350 },
(...skipping 56 matching lines...) Expand 10 before | Expand all | Expand 10 after
407 "template": "The argument type '#{fromType}' cannot be assigned to the param eter type '#{toType}'.", 407 "template": "The argument type '#{fromType}' cannot be assigned to the param eter type '#{toType}'.",
408 "templateHoleOrder": null, 408 "templateHoleOrder": null,
409 "howToFix": null, 409 "howToFix": null,
410 "options": null, 410 "options": null,
411 "usedBy": [ 411 "usedBy": [
412 "Platform.analyzer" 412 "Platform.analyzer"
413 ], 413 ],
414 "examples": [ 414 "examples": [
415 "foo(int x) => x; main() { foo('bar'); }" 415 "foo(int x) => x; main() { foo('bar'); }"
416 ] 416 ]
417 },
418 "CANNOT_RESOLVE": {
419 "id": "ERUSKD",
420 "subId": 0,
421 "categories": [
422 "StaticTypeWarning"
423 ],
424 "template": "Can't resolve '#{name}'.",
425 "templateHoleOrder": null,
426 "howToFix": null,
427 "options": null,
428 "usedBy": [
429 "Platform.dart2js"
430 ],
431 "examples": null
432 },
433 "UNDEFINED_METHOD": {
434 "id": "ERUSKD",
435 "subId": 1,
436 "categories": [
437 "StaticTypeWarning",
438 "Hint"
439 ],
440 "template": "The method '#{memberName}' is not defined for the class '#{clas sName}'.",
441 "templateHoleOrder": null,
442 "howToFix": null,
443 "options": null,
444 "usedBy": [
445 "Platform.dart2js",
446 "Platform.analyzer"
447 ],
448 "examples": [
449 " class A {\n foo() { bar(); }\n }\n main() { new A().foo(); }\n "
450 ]
451 },
452 "UNDEFINED_METHOD_WITH_CONSTRUCTOR": {
453 "id": "ERUSKD",
454 "subId": 2,
455 "categories": [
456 "StaticTypeWarning"
457 ],
458 "template": "The method '#{memberName}' is not defined for the class '#{clas sName}', but a constructor with that name is defined.",
459 "templateHoleOrder": null,
460 "howToFix": "Try adding 'new' or 'const' to invoke the constuctor, or change the method name.",
461 "options": null,
462 "usedBy": [
463 "Platform.analyzer"
464 ],
465 "examples": [
466 " class A {\n A.bar() {}\n }\n main() { A.ba r(); }\n "
467 ]
468 },
469 "UNDEFINED_GETTER": {
470 "id": "ERUSKD",
471 "subId": 3,
472 "categories": [
473 "StaticTypeWarning",
474 "StaticWarning",
475 "Hint"
476 ],
477 "template": "The getter '#{memberName}' is not defined for the class '#{clas sName}'.",
478 "templateHoleOrder": null,
479 "howToFix": null,
480 "options": null,
481 "usedBy": [
482 "Platform.dart2js",
483 "Platform.analyzer"
484 ],
485 "examples": [
486 "class A {} main() { new A().x; }",
487 "class A {} main() { A.x; }"
488 ]
489 },
490 "UNDEFINED_ENUM_CONSTANT": {
491 "id": "ERUSKD",
492 "subId": 4,
493 "categories": [
494 "StaticTypeWarning"
495 ],
496 "template": "There is no constant named '#{memberName}' in '#{className}'.",
497 "templateHoleOrder": null,
498 "howToFix": null,
499 "options": null,
500 "usedBy": [
501 "Platform.analyzer"
502 ],
503 "examples": [
504 " enum E { ONE }\n E e() { return E.TWO; }\n main() { e(); }\n "
505 ]
506 },
507 "UNDEFINED_INSTANCE_GETTER_BUT_SETTER": {
508 "id": "ERUSKD",
509 "subId": 5,
510 "categories": [
511 "StaticTypeWarning"
512 ],
513 "template": "The setter '#{memberName}' in class '#{className}' can not be u sed as a getter.",
514 "templateHoleOrder": null,
515 "howToFix": null,
516 "options": null,
517 "usedBy": [
518 "Platform.dart2js"
519 ],
520 "examples": [
521 "class A { set x(y) {} } main() { new A().x; }"
522 ]
523 },
524 "UNDEFINED_OPERATOR": {
525 "id": "ERUSKD",
526 "subId": 6,
527 "categories": [
528 "StaticTypeWarning",
529 "Hint"
530 ],
531 "template": "The operator '#{memberName}' is not defined for the class '#{cl assName}'.",
532 "templateHoleOrder": null,
533 "howToFix": null,
534 "options": null,
535 "usedBy": [
536 "Platform.dart2js",
537 "Platform.analyzer"
538 ],
539 "examples": [
540 "class A {} main() { new A() + 3; }"
541 ]
542 },
543 "UNDEFINED_SETTER": {
544 "id": "ERUSKD",
545 "subId": 7,
546 "categories": [
547 "StaticTypeWarning",
548 "StaticWarning",
549 "Hint"
550 ],
551 "template": "The setter '#{memberName}' is not defined for the class '#{clas sName}'.",
552 "templateHoleOrder": null,
553 "howToFix": null,
554 "options": null,
555 "usedBy": [
556 "Platform.dart2js",
557 "Platform.analyzer"
558 ],
559 "examples": [
560 "class A {} main() { new A().x = 499; }"
561 ]
562 },
563 "NO_SUCH_SUPER_MEMBER": {
564 "id": "ERUSKD",
565 "subId": 8,
566 "categories": [
567 "StaticTypeWarning"
568 ],
569 "template": "Can't resolve '#{memberName}' in a superclass of '#{className}' .",
570 "templateHoleOrder": null,
571 "howToFix": null,
572 "options": null,
573 "usedBy": [
574 "Platform.dart2js"
575 ],
576 "examples": null
577 },
578 "UNDEFINED_SUPER_GETTER": {
579 "id": "ERUSKD",
580 "subId": 9,
581 "categories": [
582 "StaticTypeWarning",
583 "StaticWarning"
584 ],
585 "template": "The getter '#{memberName}' is not defined in a superclass of '# {className}'.",
586 "templateHoleOrder": null,
587 "howToFix": null,
588 "options": null,
589 "usedBy": [
590 "Platform.analyzer"
591 ],
592 "examples": [
593 " class A {}\n class B extends A {\n foo() => super .x;\n }\n main() { new B().foo(); }\n "
594 ]
595 },
596 "UNDEFINED_SUPER_METHOD": {
597 "id": "ERUSKD",
598 "subId": 10,
599 "categories": [
600 "StaticTypeWarning"
601 ],
602 "template": "The method '#{memberName}' is not defined in a superclass of '# {className}'.",
603 "templateHoleOrder": null,
604 "howToFix": null,
605 "options": null,
606 "usedBy": [
607 "Platform.analyzer"
608 ],
609 "examples": [
610 " class A {}\n class B extends A {\n foo() => super .x();\n }\n main() { new B().foo(); }\n "
611 ]
612 },
613 "UNDEFINED_SUPER_OPERATOR": {
614 "id": "ERUSKD",
615 "subId": 11,
616 "categories": [
617 "StaticTypeWarning"
618 ],
619 "template": "The operator '#{memberName}' is not defined in a superclass of '#{className}'.",
620 "templateHoleOrder": null,
621 "howToFix": null,
622 "options": null,
623 "usedBy": [
624 "Platform.analyzer"
625 ],
626 "examples": [
627 " class A {}\n class B extends A {\n foo() => super + 499;\n }\n main() { new B().foo(); }\n "
628 ]
629 },
630 "UNDEFINED_SUPER_SETTER": {
631 "id": "ERUSKD",
632 "subId": 12,
633 "categories": [
634 "StaticTypeWarning",
635 "StaticWarning"
636 ],
637 "template": "The setter '#{memberName}' is not defined in a superclass of '# {className}'.",
638 "templateHoleOrder": null,
639 "howToFix": null,
640 "options": null,
641 "usedBy": [
642 "Platform.analyzer",
643 "Platform.dart2js"
644 ],
645 "examples": [
646 " class A {}\n class B extends A {\n foo() { super. x = 499; }\n }\n main() { new B().foo(); }\n ",
647 " main() => new B().m();\n class A {\n get x => 1;\ n }\n class B extends A {\n m() { super.x = 2; }\n }\n "
648 ]
649 },
650 "UNDEFINED_FUNCTION": {
651 "id": "ERUSKD",
652 "subId": 13,
653 "categories": [
654 "StaticTypeWarning"
655 ],
656 "template": "The function '#{memberName}' is not defined.",
657 "templateHoleOrder": null,
658 "howToFix": null,
659 "options": null,
660 "usedBy": [
661 "Platform.analyzer"
662 ],
663 "examples": [
664 "main() { foo(); }"
665 ]
666 },
667 "UNDEFINED_STATIC_GETTER_BUT_SETTER": {
668 "id": "ERUSKD",
669 "subId": 14,
670 "categories": [
671 "StaticTypeWarning"
672 ],
673 "template": "Cannot resolve getter '#{name}'.",
674 "templateHoleOrder": null,
675 "howToFix": null,
676 "options": null,
677 "usedBy": [
678 "Platform.dart2js"
679 ],
680 "examples": [
681 "set foo(x) {} main() { foo; }"
682 ]
683 },
684 "UNDEFINED_STATIC_SETTER_BUT_GETTER": {
685 "id": "ERUSKD",
686 "subId": 15,
687 "categories": [
688 "StaticTypeWarning"
689 ],
690 "template": "Cannot resolve setter '#{name}'.",
691 "templateHoleOrder": null,
692 "howToFix": null,
693 "options": null,
694 "usedBy": [
695 "Platform.dart2js"
696 ],
697 "examples": [
698 " main() {\n final x = 1;\n x = 2;\n }",
699 " main() {\n const x = 1;\n x = 2;\n }\n ",
700 " final x = 1;\n main() { x = 3; }\n ",
701 " const x = 1;\n main() { x = 3; }\n ",
702 "get foo => null main() { foo = 5; }",
703 "const foo = 0 main() { foo = 5; }"
704 ]
417 } 705 }
418 } 706 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698