File tree Expand file tree Collapse file tree 5 files changed +10
-9
lines changed
analyzer/lib/src/dart/error Expand file tree Collapse file tree 5 files changed +10
-9
lines changed Original file line number Diff line number Diff 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' ,
Original file line number Diff line number Diff 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.
46344634const 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.
47204720const Code <Null > codeInvalidUseOfNullAwareAccess =
Original file line number Diff line number Diff 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." );
Original file line number Diff line number Diff line change @@ -897,14 +897,14 @@ InvalidCodePoint:
897897 - " '\\ u{110000}'"
898898
899899InvalidHexEscape :
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
906906InvalidUnicodeEscape :
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'"
Original file line number Diff line number Diff 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
You can’t perform that action at this time.
0 commit comments