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

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

Issue 2967363003: enable fasta scanner in analyzer by default (Closed)
Patch Set: Created 3 years, 5 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 | « no previous file | pkg/front_end/lib/src/scanner/scanner.dart » ('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 565 matching lines...) Expand 10 before | Expand all | Expand 10 after
576 message: "Expected a declaration, but got '$lexeme'.", 576 message: "Expected a declaration, but got '$lexeme'.",
577 arguments: {'token': token}); 577 arguments: {'token': token});
578 } 578 }
579 579
580 // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. 580 // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE.
581 const FastaCode< 581 const FastaCode<
582 _AsciiControlCharacter> codeAsciiControlCharacter = const FastaCode< 582 _AsciiControlCharacter> codeAsciiControlCharacter = const FastaCode<
583 _AsciiControlCharacter>("AsciiControlCharacter", 583 _AsciiControlCharacter>("AsciiControlCharacter",
584 template: 584 template:
585 r"The control character #unicode can only be used in strings and comment s.", 585 r"The control character #unicode can only be used in strings and comment s.",
586 analyzerCode: "ILLEGAL_CHARACTER",
586 dart2jsCode: "BAD_INPUT_CHARACTER", 587 dart2jsCode: "BAD_INPUT_CHARACTER",
587 format: _formatAsciiControlCharacter); 588 format: _formatAsciiControlCharacter);
588 589
589 typedef FastaMessage _AsciiControlCharacter( 590 typedef FastaMessage _AsciiControlCharacter(
590 Uri uri, int charOffset, int codePoint); 591 Uri uri, int charOffset, int codePoint);
591 592
592 // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. 593 // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE.
593 FastaMessage _formatAsciiControlCharacter( 594 FastaMessage _formatAsciiControlCharacter(
594 Uri uri, int charOffset, int codePoint) { 595 Uri uri, int charOffset, int codePoint) {
595 String unicode = "(U+${codePoint.toRadixString(16).padLeft(4, '0')})"; 596 String unicode = "(U+${codePoint.toRadixString(16).padLeft(4, '0')})";
(...skipping 525 matching lines...) Expand 10 before | Expand all | Expand 10 after
1121 // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. 1122 // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE.
1122 FastaMessage _formatNonAsciiIdentifier( 1123 FastaMessage _formatNonAsciiIdentifier(
1123 Uri uri, int charOffset, String character, int codePoint) { 1124 Uri uri, int charOffset, String character, int codePoint) {
1124 String unicode = "(U+${codePoint.toRadixString(16).padLeft(4, '0')})"; 1125 String unicode = "(U+${codePoint.toRadixString(16).padLeft(4, '0')})";
1125 return new FastaMessage(uri, charOffset, codeNonAsciiIdentifier, 1126 return new FastaMessage(uri, charOffset, codeNonAsciiIdentifier,
1126 message: 1127 message:
1127 "The non-ASCII character '$character' ($unicode) can't be used in iden tifiers, only in strings and comments.", 1128 "The non-ASCII character '$character' ($unicode) can't be used in iden tifiers, only in strings and comments.",
1128 tip: "Try using an US-ASCII letter, a digit, '_' (an underscore), or '\$' (a dollar sign).", 1129 tip: "Try using an US-ASCII letter, a digit, '_' (an underscore), or '\$' (a dollar sign).",
1129 arguments: {'character': character, 'codePoint': codePoint}); 1130 arguments: {'character': character, 'codePoint': codePoint});
1130 } 1131 }
OLDNEW
« no previous file with comments | « no previous file | pkg/front_end/lib/src/scanner/scanner.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698