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

Side by Side Diff: pkg/front_end/messages.yaml

Issue 2929383002: Various semantic checks on field initializers. (Closed)
Patch Set: Created 3 years, 6 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
« no previous file with comments | « pkg/front_end/lib/src/fasta/parser/parser.dart ('k') | tests/co19/co19-kernel.status » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 # Copyright (c) 2017, the Dart project authors. Please see the AUTHORS file 1 # Copyright (c) 2017, 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 # Each entry in this map corresponds to a diagnostic message. Ideally, each 5 # Each entry in this map corresponds to a diagnostic message. Ideally, each
6 # entry contains three parts: 6 # entry contains three parts:
7 # 7 #
8 # 1. A message template (template). 8 # 1. A message template (template).
9 # 9 #
10 # 2. A suggestion for how to correct the problem (tip). 10 # 2. A suggestion for how to correct the problem (tip).
(...skipping 416 matching lines...) Expand 10 before | Expand all | Expand 10 after
427 427
428 CatchSyntax: 428 CatchSyntax:
429 template: "'catch' must be followed by '(identifier)' or '(identifier, identif ier)'." 429 template: "'catch' must be followed by '(identifier)' or '(identifier, identif ier)'."
430 tip: "No types are needed, the first is given by 'on', the second is always 'S tackTrace'." 430 tip: "No types are needed, the first is given by 'on', the second is always 'S tackTrace'."
431 dart2jsCode: FASTA_IGNORED 431 dart2jsCode: FASTA_IGNORED
432 432
433 SuperNullAware: 433 SuperNullAware:
434 template: "'super' can't be null." 434 template: "'super' can't be null."
435 tip: "Try replacing '?.' with '.'" 435 tip: "Try replacing '?.' with '.'"
436 dart2jsCode: FASTA_IGNORED 436 dart2jsCode: FASTA_IGNORED
437
438 ConstFieldWithoutInitializer:
439 template: "A 'const' field must be initialized."
440 tip: "Try adding '= <initializer>'."
441 dart2jsCode: FASTA_IGNORED
442
443 FinalFieldWithoutInitializer:
444 template: "A 'final' field must be initialized."
445 tip: "Try adding '= <initializer>'."
446 dart2jsCode: FASTA_IGNORED
OLDNEW
« no previous file with comments | « pkg/front_end/lib/src/fasta/parser/parser.dart ('k') | tests/co19/co19-kernel.status » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698