mirror of
https://github.com/dart-lang/sdk
synced 2024-10-06 14:39:38 +00:00
[CFE] Correct error message for large integer literals
Error message is corrected to reflect move of BigInt class from dart:typed_data to dart:core. Issue: https://github.com/dart-lang/sdk/issues/31339 Change-Id: Ia959b940dd6443b071642d26d33055c836f16ad7 Reviewed-on: https://dart-review.googlesource.com/30622 Commit-Queue: Alexander Markov <alexmarkov@google.com> Reviewed-by: Peter von der Ahé <ahe@google.com>
This commit is contained in:
parent
b6276eb3d5
commit
07829bb52a
|
@ -2066,7 +2066,7 @@ const Template<
|
|||
messageTemplate:
|
||||
r"""The integer literal #lexeme can't be represented in 64 bits.""",
|
||||
tipTemplate:
|
||||
r"""Try using BigInt (from 'dart:typed_data' library) if you need an integer larger than 9,223,372,036,854,775,807 or less than -9,223,372,036,854,775,808.""",
|
||||
r"""Try using the BigInt class if you need an integer larger than 9,223,372,036,854,775,807 or less than -9,223,372,036,854,775,808.""",
|
||||
withArguments: _withArgumentsIntegerLiteralIsOutOfRange);
|
||||
|
||||
// DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE.
|
||||
|
@ -2083,7 +2083,7 @@ Message _withArgumentsIntegerLiteralIsOutOfRange(Token token) {
|
|||
message:
|
||||
"""The integer literal $lexeme can't be represented in 64 bits.""",
|
||||
tip:
|
||||
"""Try using BigInt (from 'dart:typed_data' library) if you need an integer larger than 9,223,372,036,854,775,807 or less than -9,223,372,036,854,775,808.""",
|
||||
"""Try using the BigInt class if you need an integer larger than 9,223,372,036,854,775,807 or less than -9,223,372,036,854,775,808.""",
|
||||
arguments: {'token': token});
|
||||
}
|
||||
|
||||
|
|
|
@ -1550,7 +1550,7 @@ InterpolationInUri:
|
|||
|
||||
IntegerLiteralIsOutOfRange:
|
||||
template: "The integer literal #lexeme can't be represented in 64 bits."
|
||||
tip: "Try using BigInt (from 'dart:typed_data' library) if you need an integer larger than 9,223,372,036,854,775,807 or less than -9,223,372,036,854,775,808."
|
||||
tip: "Try using the BigInt class if you need an integer larger than 9,223,372,036,854,775,807 or less than -9,223,372,036,854,775,808."
|
||||
|
||||
ColonInPlaceOfIn:
|
||||
template: "For-in loops use 'in' rather than a colon."
|
||||
|
|
Loading…
Reference in a new issue