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>
diff --git a/pkg/analyzer/lib/src/dart/error/syntactic_errors.dart b/pkg/analyzer/lib/src/dart/error/syntactic_errors.dart
index 83be441..b75e8d1 100644
--- a/pkg/analyzer/lib/src/dart/error/syntactic_errors.dart
+++ b/pkg/analyzer/lib/src/dart/error/syntactic_errors.dart
@@ -451,7 +451,8 @@
static const ParserErrorCode INVALID_HEX_ESCAPE = const ParserErrorCode(
'INVALID_HEX_ESCAPE',
- "An escape sequence starting with '\\x' must be followed by 2 hexidecimal digits.");
+ "An escape sequence starting with '\\x' "
+ "must be followed by 2 hexadecimal digits.");
static const ParserErrorCode INVALID_LITERAL_IN_CONFIGURATION =
const ParserErrorCode('INVALID_LITERAL_IN_CONFIGURATION',
@@ -486,7 +487,7 @@
static const ParserErrorCode INVALID_UNICODE_ESCAPE = const ParserErrorCode(
'INVALID_UNICODE_ESCAPE',
"An escape sequence starting with '\\u' must be followed by 4 "
- "hexidecimal digits or from 1 to 6 digits between '{' and '}'.");
+ "hexadecimal digits or from 1 to 6 digits between '{' and '}'.");
static const ParserErrorCode LIBRARY_DIRECTIVE_NOT_FIRST =
const ParserErrorCode('LIBRARY_DIRECTIVE_NOT_FIRST',
diff --git a/pkg/front_end/lib/src/fasta/fasta_codes_generated.dart b/pkg/front_end/lib/src/fasta/fasta_codes_generated.dart
index b1a841f..b37e284 100644
--- a/pkg/front_end/lib/src/fasta/fasta_codes_generated.dart
+++ b/pkg/front_end/lib/src/fasta/fasta_codes_generated.dart
@@ -4628,7 +4628,7 @@
"InvalidHexEscape",
analyzerCode: "INVALID_HEX_ESCAPE",
message:
- r"""An escape sequence starting with '\x' must be followed by 2 hexidecimal digits.""");
+ r"""An escape sequence starting with '\x' must be followed by 2 hexadecimal digits.""");
// DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE.
const Code<Null> codeInvalidInitializer = messageInvalidInitializer;
@@ -4714,7 +4714,7 @@
"InvalidUnicodeEscape",
analyzerCode: "INVALID_UNICODE_ESCAPE",
message:
- r"""An escape sequence starting with '\u' must be followed by 4 hexidecimal digits or from 1 to 6 digits between '{' and '}'.""");
+ r"""An escape sequence starting with '\u' must be followed by 4 hexadecimal digits or from 1 to 6 digits between '{' and '}'.""");
// DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE.
const Code<Null> codeInvalidUseOfNullAwareAccess =
diff --git a/pkg/front_end/lib/src/scanner/errors.dart b/pkg/front_end/lib/src/scanner/errors.dart
index ab23b65..f96daa0 100644
--- a/pkg/front_end/lib/src/scanner/errors.dart
+++ b/pkg/front_end/lib/src/scanner/errors.dart
@@ -30,7 +30,7 @@
const ScannerErrorCode('MISSING_DIGIT', "Decimal digit expected.");
static const ScannerErrorCode MISSING_HEX_DIGIT = const ScannerErrorCode(
- 'MISSING_HEX_DIGIT', "Hexidecimal digit expected.");
+ 'MISSING_HEX_DIGIT', "Hexadecimal digit expected.");
static const ScannerErrorCode MISSING_IDENTIFIER =
const ScannerErrorCode('MISSING_IDENTIFIER', "Expected an identifier.");
diff --git a/pkg/front_end/messages.yaml b/pkg/front_end/messages.yaml
index 19f0706..4239884 100644
--- a/pkg/front_end/messages.yaml
+++ b/pkg/front_end/messages.yaml
@@ -897,14 +897,14 @@
- "'\\u{110000}'"
InvalidHexEscape:
- template: "An escape sequence starting with '\\x' must be followed by 2 hexidecimal digits."
+ template: "An escape sequence starting with '\\x' must be followed by 2 hexadecimal digits."
analyzerCode: INVALID_HEX_ESCAPE
expression:
- "'\\x0'"
- "'\\x0y'"
InvalidUnicodeEscape:
- template: "An escape sequence starting with '\\u' must be followed by 4 hexidecimal digits or from 1 to 6 digits between '{' and '}'."
+ template: "An escape sequence starting with '\\u' must be followed by 4 hexadecimal digits or from 1 to 6 digits between '{' and '}'."
analyzerCode: INVALID_UNICODE_ESCAPE
expression:
- "'\\u'"
diff --git a/pkg/front_end/test/scanner_test.dart b/pkg/front_end/test/scanner_test.dart
index 9ad98df..9eb2956 100644
--- a/pkg/front_end/test/scanner_test.dart
+++ b/pkg/front_end/test/scanner_test.dart
@@ -302,11 +302,11 @@
_assertToken(TokenType.HASH, "#");
}
- void test_hexidecimal() {
+ void test_hexadecimal() {
_assertToken(TokenType.HEXADECIMAL, "0x1A2B3C");
}
- void test_hexidecimal_missingDigit() {
+ void test_hexadecimal_missingDigit() {
_assertError(ScannerErrorCode.MISSING_HEX_DIGIT, 1, "0x");
}