mirror of
https://github.com/dart-lang/sdk
synced 2024-09-16 03:56:57 +00:00
Document IntLiteral.value as holding a uint64 value
Bug: #33351 Change-Id: I0b84e66b56d0b0f07ebc9e1a3593b2cc8e983afa Reviewed-on: https://dart-review.googlesource.com/62063 Reviewed-by: Kevin Millikin <kmillikin@google.com> Commit-Queue: Jens Johansen <jensj@google.com>
This commit is contained in:
parent
56d57407e1
commit
c9bd4df214
|
@ -3199,6 +3199,10 @@ class StringLiteral extends BasicLiteral {
|
|||
}
|
||||
|
||||
class IntLiteral extends BasicLiteral {
|
||||
/// Note that this value holds a uint64 value.
|
||||
/// E.g. "0x8000000000000000" will be saved as "-9223372036854775808" despite
|
||||
/// technically (on some platforms, particularly Javascript) being positive.
|
||||
/// If the number is meant to be negative it will be wrapped in a "unary-".
|
||||
int value;
|
||||
|
||||
IntLiteral(this.value);
|
||||
|
|
Loading…
Reference in a new issue