| 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 495 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 506 return new FastaMessage(uri, charOffset, codeUnsupportedPrefixPlus, | 506 return new FastaMessage(uri, charOffset, codeUnsupportedPrefixPlus, |
| 507 message: "'+' is not a prefix operator. ", | 507 message: "'+' is not a prefix operator. ", |
| 508 tip: "Try removing '+'.", | 508 tip: "Try removing '+'.", |
| 509 arguments: {}); | 509 arguments: {}); |
| 510 } | 510 } |
| 511 | 511 |
| 512 // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. | 512 // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. |
| 513 const FastaCode<_ExpectedString> codeExpectedString = | 513 const FastaCode<_ExpectedString> codeExpectedString = |
| 514 const FastaCode<_ExpectedString>("ExpectedString", | 514 const FastaCode<_ExpectedString>("ExpectedString", |
| 515 template: r"Expected a String, but got '#lexeme'.", | 515 template: r"Expected a String, but got '#lexeme'.", |
| 516 analyzerCode: "EXPECTED_STRING_LITERAL", |
| 516 dart2jsCode: "FASTA_FATAL", | 517 dart2jsCode: "FASTA_FATAL", |
| 517 format: _formatExpectedString); | 518 format: _formatExpectedString); |
| 518 | 519 |
| 519 typedef FastaMessage _ExpectedString(Uri uri, int charOffset, Token token); | 520 typedef FastaMessage _ExpectedString(Uri uri, int charOffset, Token token); |
| 520 | 521 |
| 521 // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. | 522 // DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE. |
| 522 FastaMessage _formatExpectedString(Uri uri, int charOffset, Token token) { | 523 FastaMessage _formatExpectedString(Uri uri, int charOffset, Token token) { |
| 523 String lexeme = token.lexeme; | 524 String lexeme = token.lexeme; |
| 524 return new FastaMessage(uri, charOffset, codeExpectedString, | 525 return new FastaMessage(uri, charOffset, codeExpectedString, |
| 525 message: "Expected a String, but got '$lexeme'.", | 526 message: "Expected a String, but got '$lexeme'.", |
| (...skipping 595 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 |