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

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

Issue 3007943002: gracefully recover from extraneous top level modifiers (Closed)
Patch Set: add more message examples Created 3 years, 3 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 183 matching lines...) Expand 10 before | Expand all | Expand 10 after
194 - "var var foo; main(){}" 194 - "var var foo; main(){}"
195 - "const var foo; main(){}" 195 - "const var foo; main(){}"
196 - "abstract var foo; main(){}" 196 - "abstract var foo; main(){}"
197 - "static var foo; main(){}" 197 - "static var foo; main(){}"
198 - "external var foo; main(){}" 198 - "external var foo; main(){}"
199 - "set foo; main(){}" 199 - "set foo; main(){}"
200 - "abstract foo; main(){}" 200 - "abstract foo; main(){}"
201 - "static foo; main(){}" 201 - "static foo; main(){}"
202 - "external foo; main(){}" 202 - "external foo; main(){}"
203 - "class C {abstract C.c();}" 203 - "class C {abstract C.c();}"
204 - "final class C {}"
205 - "abstract enum foo {bar}"
206 - "const enum foo {bar}"
207 - "final enum foo {bar}"
208 - "abstract void foo() {}"
209 - "static void foo() {}"
210 - "abstract typedef foo();"
211 - "const typedef foo();"
212 - "final typedef foo();"
213 - "static typedef foo();"
204 214
205 InvalidAwaitFor: 215 InvalidAwaitFor:
206 template: "'await' is only supported in methods with an 'async' or 'async*' bo dy modifier." 216 template: "'await' is only supported in methods with an 'async' or 'async*' bo dy modifier."
207 tip: "Try adding 'async' or 'async*' to the method body or removing the 'await ' keyword." 217 tip: "Try adding 'async' or 'async*' to the method body or removing the 'await ' keyword."
208 dart2jsCode: INVALID_AWAIT_FOR 218 dart2jsCode: INVALID_AWAIT_FOR
209 script: > 219 script: >
210 main(o) sync* { 220 main(o) sync* {
211 await for (var e in o) {} 221 await for (var e in o) {}
212 } 222 }
213 223
(...skipping 697 matching lines...) Expand 10 before | Expand all | Expand 10 after
911 PackageNotFound: 921 PackageNotFound:
912 template: "Could not resolve the package '#name' in '#uri'." 922 template: "Could not resolve the package '#name' in '#uri'."
913 923
914 InvalidPackageUri: 924 InvalidPackageUri:
915 template: "Invalid package Uri '#uri':\n #string." 925 template: "Invalid package Uri '#uri':\n #string."
916 926
917 IntegerLiteralIsOutOfRange: 927 IntegerLiteralIsOutOfRange:
918 template: "The integer literal #lexeme can't be represented in 64 bits." 928 template: "The integer literal #lexeme can't be represented in 64 bits."
919 tip: "Try using BigInt (from 'dart:typed_data' library) if you need an integer larger than 9,223,372,036,854,775,807 or less than -9,223,372,036,854,775,808." 929 tip: "Try using BigInt (from 'dart:typed_data' library) if you need an integer larger than 9,223,372,036,854,775,807 or less than -9,223,372,036,854,775,808."
920 930
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698