Skip to content

Commit 0f45b2e

Browse files
nateboschcommit-bot@chromium.org
authored andcommitted
Fix spelling hexidecimal -> hexadecimal
Fixes #34460 Change-Id: I43ce8bbad9bfcc6b14c3a537ada84107e7bfaffe Reviewed-on: https://dart-review.googlesource.com/74940 Reviewed-by: Paul Berry <paulberry@google.com> Commit-Queue: Nate Bosch <nbosch@google.com>
1 parent 348ed30 commit 0f45b2e

File tree

5 files changed

+10
-9
lines changed

5 files changed

+10
-9
lines changed

pkg/analyzer/lib/src/dart/error/syntactic_errors.dart

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -451,7 +451,8 @@ class ParserErrorCode extends ErrorCode {
451451

452452
static const ParserErrorCode INVALID_HEX_ESCAPE = const ParserErrorCode(
453453
'INVALID_HEX_ESCAPE',
454-
"An escape sequence starting with '\\x' must be followed by 2 hexidecimal digits.");
454+
"An escape sequence starting with '\\x' "
455+
"must be followed by 2 hexadecimal digits.");
455456

456457
static const ParserErrorCode INVALID_LITERAL_IN_CONFIGURATION =
457458
const ParserErrorCode('INVALID_LITERAL_IN_CONFIGURATION',
@@ -486,7 +487,7 @@ class ParserErrorCode extends ErrorCode {
486487
static const ParserErrorCode INVALID_UNICODE_ESCAPE = const ParserErrorCode(
487488
'INVALID_UNICODE_ESCAPE',
488489
"An escape sequence starting with '\\u' must be followed by 4 "
489-
"hexidecimal digits or from 1 to 6 digits between '{' and '}'.");
490+
"hexadecimal digits or from 1 to 6 digits between '{' and '}'.");
490491

491492
static const ParserErrorCode LIBRARY_DIRECTIVE_NOT_FIRST =
492493
const ParserErrorCode('LIBRARY_DIRECTIVE_NOT_FIRST',

pkg/front_end/lib/src/fasta/fasta_codes_generated.dart

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4628,7 +4628,7 @@ const MessageCode messageInvalidHexEscape = const MessageCode(
46284628
"InvalidHexEscape",
46294629
analyzerCode: "INVALID_HEX_ESCAPE",
46304630
message:
4631-
r"""An escape sequence starting with '\x' must be followed by 2 hexidecimal digits.""");
4631+
r"""An escape sequence starting with '\x' must be followed by 2 hexadecimal digits.""");
46324632

46334633
// DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE.
46344634
const Code<Null> codeInvalidInitializer = messageInvalidInitializer;
@@ -4714,7 +4714,7 @@ const MessageCode messageInvalidUnicodeEscape = const MessageCode(
47144714
"InvalidUnicodeEscape",
47154715
analyzerCode: "INVALID_UNICODE_ESCAPE",
47164716
message:
4717-
r"""An escape sequence starting with '\u' must be followed by 4 hexidecimal digits or from 1 to 6 digits between '{' and '}'.""");
4717+
r"""An escape sequence starting with '\u' must be followed by 4 hexadecimal digits or from 1 to 6 digits between '{' and '}'.""");
47184718

47194719
// DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE.
47204720
const Code<Null> codeInvalidUseOfNullAwareAccess =

pkg/front_end/lib/src/scanner/errors.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ class ScannerErrorCode extends ErrorCode {
3030
const ScannerErrorCode('MISSING_DIGIT', "Decimal digit expected.");
3131

3232
static const ScannerErrorCode MISSING_HEX_DIGIT = const ScannerErrorCode(
33-
'MISSING_HEX_DIGIT', "Hexidecimal digit expected.");
33+
'MISSING_HEX_DIGIT', "Hexadecimal digit expected.");
3434

3535
static const ScannerErrorCode MISSING_IDENTIFIER =
3636
const ScannerErrorCode('MISSING_IDENTIFIER', "Expected an identifier.");

pkg/front_end/messages.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -897,14 +897,14 @@ InvalidCodePoint:
897897
- "'\\u{110000}'"
898898

899899
InvalidHexEscape:
900-
template: "An escape sequence starting with '\\x' must be followed by 2 hexidecimal digits."
900+
template: "An escape sequence starting with '\\x' must be followed by 2 hexadecimal digits."
901901
analyzerCode: INVALID_HEX_ESCAPE
902902
expression:
903903
- "'\\x0'"
904904
- "'\\x0y'"
905905

906906
InvalidUnicodeEscape:
907-
template: "An escape sequence starting with '\\u' must be followed by 4 hexidecimal digits or from 1 to 6 digits between '{' and '}'."
907+
template: "An escape sequence starting with '\\u' must be followed by 4 hexadecimal digits or from 1 to 6 digits between '{' and '}'."
908908
analyzerCode: INVALID_UNICODE_ESCAPE
909909
expression:
910910
- "'\\u'"

pkg/front_end/test/scanner_test.dart

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -302,11 +302,11 @@ abstract class ScannerTestBase {
302302
_assertToken(TokenType.HASH, "#");
303303
}
304304

305-
void test_hexidecimal() {
305+
void test_hexadecimal() {
306306
_assertToken(TokenType.HEXADECIMAL, "0x1A2B3C");
307307
}
308308

309-
void test_hexidecimal_missingDigit() {
309+
void test_hexadecimal_missingDigit() {
310310
_assertError(ScannerErrorCode.MISSING_HEX_DIGIT, 1, "0x");
311311
}
312312

0 commit comments

Comments
 (0)