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

Side by Side Diff: pkg/front_end/lib/src/fasta/fasta_codes_generated.dart

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
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 // NOTE: THIS FILE IS GENERATED. DO NOT EDIT. 5 // NOTE: THIS FILE IS GENERATED. DO NOT EDIT.
6 // 6 //
7 // Instead modify 'pkg/front_end/messages.yaml' and run 7 // Instead modify 'pkg/front_end/messages.yaml' and run
8 // 'pkg/front_end/tool/_fasta/generate_messages.dart' to update. 8 // 'pkg/front_end/tool/_fasta/generate_messages.dart' to update.
9 9
10 part of fasta.codes; 10 part of fasta.codes;
(...skipping 347 matching lines...) Expand 10 before | Expand all | Expand 10 after
358 // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. 358 // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE.
359 const Code<Null> codeConflictsWithTypeVariableCause = 359 const Code<Null> codeConflictsWithTypeVariableCause =
360 messageConflictsWithTypeVariableCause; 360 messageConflictsWithTypeVariableCause;
361 361
362 // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. 362 // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE.
363 const MessageCode messageConflictsWithTypeVariableCause = const MessageCode( 363 const MessageCode messageConflictsWithTypeVariableCause = const MessageCode(
364 "ConflictsWithTypeVariableCause", 364 "ConflictsWithTypeVariableCause",
365 message: r"""This is the type variable."""); 365 message: r"""This is the type variable.""");
366 366
367 // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. 367 // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE.
368 const Code<Null> codeConstClass = messageConstClass;
369
370 // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE.
371 const MessageCode messageConstClass = const MessageCode("ConstClass",
372 analyzerCode: "CONST_CLASS",
373 dart2jsCode: "EXTRANEOUS_MODIFIER",
374 message: r"""Classes can't be declared to be 'const'.""",
375 tip:
376 r"""Try removing the 'const' keyword. If you're trying to indicate that instances of the class can be constants, place the 'const' keyword on the class ' constructor(s).""");
377
378 // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE.
368 const Code<Null> codeConstConstructorNonFinalField = 379 const Code<Null> codeConstConstructorNonFinalField =
369 messageConstConstructorNonFinalField; 380 messageConstConstructorNonFinalField;
370 381
371 // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. 382 // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE.
372 const MessageCode messageConstConstructorNonFinalField = const MessageCode( 383 const MessageCode messageConstConstructorNonFinalField = const MessageCode(
373 "ConstConstructorNonFinalField", 384 "ConstConstructorNonFinalField",
374 message: r"""Constructor is marked 'const' so all fields must be final."""); 385 message: r"""Constructor is marked 'const' so all fields must be final.""");
375 386
376 // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. 387 // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE.
377 const Code<Null> codeConstConstructorNonFinalFieldCause = 388 const Code<Null> codeConstConstructorNonFinalFieldCause =
(...skipping 2741 matching lines...) Expand 10 before | Expand all | Expand 10 after
3119 r"""'yield' can't be used as an identifier in 'async', 'async*', or 'syn c*' methods."""); 3130 r"""'yield' can't be used as an identifier in 'async', 'async*', or 'syn c*' methods.""");
3120 3131
3121 // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. 3132 // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE.
3122 const Code<Null> codeYieldNotGenerator = messageYieldNotGenerator; 3133 const Code<Null> codeYieldNotGenerator = messageYieldNotGenerator;
3123 3134
3124 // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. 3135 // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE.
3125 const MessageCode messageYieldNotGenerator = const MessageCode( 3136 const MessageCode messageYieldNotGenerator = const MessageCode(
3126 "YieldNotGenerator", 3137 "YieldNotGenerator",
3127 dart2jsCode: "*ignored*", 3138 dart2jsCode: "*ignored*",
3128 message: r"""'yield' can only be used in 'sync*' or 'async*' methods."""); 3139 message: r"""'yield' can only be used in 'sync*' or 'async*' methods.""");
OLDNEW
« no previous file with comments | « pkg/analyzer/test/generated/parser_fasta_test.dart ('k') | pkg/front_end/lib/src/fasta/parser/parser.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698