OLD | NEW |
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 Loading... |
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 Loading... |
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 } |
OLD | NEW |