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

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

Issue 3007033002: report const class as a more specific error code (Closed)
Patch Set: 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
« no previous file with comments | « pkg/front_end/lib/src/fasta/parser/parser.dart ('k') | no next file » | 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 156 matching lines...) Expand 10 before | Expand all | Expand 10 after
167 167
168 ExpectedString: 168 ExpectedString:
169 template: "Expected a String, but got '#lexeme'." 169 template: "Expected a String, but got '#lexeme'."
170 analyzerCode: EXPECTED_STRING_LITERAL 170 analyzerCode: EXPECTED_STRING_LITERAL
171 dart2jsCode: "*fatal*" 171 dart2jsCode: "*fatal*"
172 172
173 ExpectedType: 173 ExpectedType:
174 template: "Expected a type, but got '#lexeme'." 174 template: "Expected a type, but got '#lexeme'."
175 dart2jsCode: "*fatal*" 175 dart2jsCode: "*fatal*"
176 176
177 ConstClass:
178 template: "Classes can't be declared to be 'const'."
179 tip: "Try removing the 'const' keyword. If you're trying to indicate that inst ances of the class can be constants, place the 'const' keyword on the class' co nstructor(s)."
180 analyzerCode: CONST_CLASS
181 dart2jsCode: EXTRANEOUS_MODIFIER
182 script: "const class C {}"
183
177 ExtraneousModifier: 184 ExtraneousModifier:
178 template: "Can't have modifier '#lexeme' here." 185 template: "Can't have modifier '#lexeme' here."
179 tip: "Try removing '#lexeme'." 186 tip: "Try removing '#lexeme'."
180 analyzerCode: EXTRANEOUS_MODIFIER 187 analyzerCode: EXTRANEOUS_MODIFIER
181 dart2jsCode: EXTRANEOUS_MODIFIER 188 dart2jsCode: EXTRANEOUS_MODIFIER
182 script: 189 script:
183 - "var String foo; main(){}" 190 - "var String foo; main(){}"
184 - "var set foo; main(){}" 191 - "var set foo; main(){}"
185 - "var final foo; main(){}" 192 - "var final foo; main(){}"
186 - "var var foo; main(){}" 193 - "var var foo; main(){}"
(...skipping 734 matching lines...) Expand 10 before | Expand all | Expand 10 after
921 PackageNotFound: 928 PackageNotFound:
922 template: "Could not resolve the package '#name' in '#uri'." 929 template: "Could not resolve the package '#name' in '#uri'."
923 930
924 InvalidPackageUri: 931 InvalidPackageUri:
925 template: "Invalid package Uri '#uri':\n #string." 932 template: "Invalid package Uri '#uri':\n #string."
926 933
927 IntegerLiteralIsOutOfRange: 934 IntegerLiteralIsOutOfRange:
928 template: "The integer literal #lexeme can't be represented in 64 bits." 935 template: "The integer literal #lexeme can't be represented in 64 bits."
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." 936 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."
930 937
OLDNEW
« no previous file with comments | « pkg/front_end/lib/src/fasta/parser/parser.dart ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698