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

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

Issue 2999303002: map fasta error codes to analyzer (Closed)
Patch Set: rebase 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/analyzer/test/generated/parser_test.dart ('k') | pkg/front_end/messages.yaml » ('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 // 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 1007 matching lines...) Expand 10 before | Expand all | Expand 10 after
1018 const Template<Message Function(Token token)> templateExtraneousModifier = 1018 const Template<Message Function(Token token)> templateExtraneousModifier =
1019 const Template<Message Function(Token token)>( 1019 const Template<Message Function(Token token)>(
1020 messageTemplate: r"""Can't have modifier '#lexeme' here.""", 1020 messageTemplate: r"""Can't have modifier '#lexeme' here.""",
1021 tipTemplate: r"""Try removing '#lexeme'.""", 1021 tipTemplate: r"""Try removing '#lexeme'.""",
1022 withArguments: _withArgumentsExtraneousModifier); 1022 withArguments: _withArgumentsExtraneousModifier);
1023 1023
1024 // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. 1024 // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE.
1025 const Code<Message Function(Token token)> codeExtraneousModifier = 1025 const Code<Message Function(Token token)> codeExtraneousModifier =
1026 const Code<Message Function(Token token)>( 1026 const Code<Message Function(Token token)>(
1027 "ExtraneousModifier", templateExtraneousModifier, 1027 "ExtraneousModifier", templateExtraneousModifier,
1028 analyzerCode: "UNEXPECTED_TOKEN", dart2jsCode: "EXTRANEOUS_MODIFIER"); 1028 analyzerCode: "EXTRANEOUS_MODIFIER",
1029 dart2jsCode: "EXTRANEOUS_MODIFIER");
1029 1030
1030 // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. 1031 // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE.
1031 Message _withArgumentsExtraneousModifier(Token token) { 1032 Message _withArgumentsExtraneousModifier(Token token) {
1032 String lexeme = token.lexeme; 1033 String lexeme = token.lexeme;
1033 return new Message(codeExtraneousModifier, 1034 return new Message(codeExtraneousModifier,
1034 message: """Can't have modifier '$lexeme' here.""", 1035 message: """Can't have modifier '$lexeme' here.""",
1035 tip: """Try removing '$lexeme'.""", 1036 tip: """Try removing '$lexeme'.""",
1036 arguments: {'token': token}); 1037 arguments: {'token': token});
1037 } 1038 }
1038 1039
(...skipping 2058 matching lines...) Expand 10 before | Expand all | Expand 10 after
3097 r"""'yield' can't be used as an identifier in 'async', 'async*', or 'syn c*' methods."""); 3098 r"""'yield' can't be used as an identifier in 'async', 'async*', or 'syn c*' methods.""");
3098 3099
3099 // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. 3100 // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE.
3100 const Code<Null> codeYieldNotGenerator = messageYieldNotGenerator; 3101 const Code<Null> codeYieldNotGenerator = messageYieldNotGenerator;
3101 3102
3102 // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. 3103 // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE.
3103 const MessageCode messageYieldNotGenerator = const MessageCode( 3104 const MessageCode messageYieldNotGenerator = const MessageCode(
3104 "YieldNotGenerator", 3105 "YieldNotGenerator",
3105 dart2jsCode: "*ignored*", 3106 dart2jsCode: "*ignored*",
3106 message: r"""'yield' can only be used in 'sync*' or 'async*' methods."""); 3107 message: r"""'yield' can only be used in 'sync*' or 'async*' methods.""");
OLDNEW
« no previous file with comments | « pkg/analyzer/test/generated/parser_test.dart ('k') | pkg/front_end/messages.yaml » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698