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

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

Issue 2765253002: Report error on only-try block. (Closed)
Patch Set: Created 3 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 # 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 309 matching lines...) Expand 10 before | Expand all | Expand 10 after
320 declaration: "typedef F = Function(int f(String x)); main() { F f; }" 320 declaration: "typedef F = Function(int f(String x)); main() { F f; }"
321 321
322 SetterNotSync: 322 SetterNotSync:
323 template: "Setters can't use 'async', 'async*', or 'sync*'." 323 template: "Setters can't use 'async', 'async*', or 'sync*'."
324 324
325 YieldAsIdentifier: 325 YieldAsIdentifier:
326 template: "'yield' can't be used as an identifier in 'async', 'async*', or 'sy nc*' methods." 326 template: "'yield' can't be used as an identifier in 'async', 'async*', or 'sy nc*' methods."
327 327
328 YieldNotGenerator: 328 YieldNotGenerator:
329 template: "'yield' can only be used in 'sync*' or 'async*' methods." 329 template: "'yield' can only be used in 'sync*' or 'async*' methods."
330
331 OnlyTry:
332 template: "Try block should be followed by 'on', 'catch', or 'finally' block."
333 tip: "Did you forget to add a 'finally' block?"
334 statement: "try {}"
OLDNEW
« no previous file with comments | « pkg/front_end/lib/src/fasta/problems.dart ('k') | pkg/front_end/tool/_fasta/generate_messages.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698