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:
Jens Johansen 2018-06-26 07:17:55 +00:00 committed by commit-bot@chromium.org
parent 56d57407e1
commit c9bd4df214

View file

@ -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);