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>
diff --git a/pkg/kernel/lib/ast.dart b/pkg/kernel/lib/ast.dart
index 4eb3bbf..959a84b 100644
--- a/pkg/kernel/lib/ast.dart
+++ b/pkg/kernel/lib/ast.dart
@@ -3199,6 +3199,10 @@
}
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);