[kernel] Clarify AssertStatement offset fields

Say what those offsets are for, instead of what they're not for.

Change-Id: Ia8d0ef119386188d6d880a480d609bb7a324df8e
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/360643
Reviewed-by: Jens Johansen <jensj@google.com>
Commit-Queue: Ömer Ağacan <omersa@google.com>
This commit is contained in:
Ömer Sinan Ağacan
2024-04-03 08:56:37 +00:00
committed by Commit Queue
parent 555e38db9b
commit 03ce44cfbb
+4 -6
View File
@@ -9360,14 +9360,12 @@ class AssertStatement extends Statement {
Expression condition;
Expression? message; // May be null.
/// Character offset in the source where the assertion condition begins.
///
/// Note: This is not the offset into the UTF8 encoded `List<int>` source.
/// Character offset in the source ([Source.text]) where the assertion
/// condition begins.
int conditionStartOffset;
/// Character offset in the source where the assertion condition ends.
///
/// Note: This is not the offset into the UTF8 encoded `List<int>` source.
/// Character offset in the source ([Source.text]) where the assertion
/// condition ends.
int conditionEndOffset;
@override