From 03ce44cfbbbbacdf66f09be8b7d863ace02a72e0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C3=96mer=20Sinan=20A=C4=9Facan?= Date: Wed, 3 Apr 2024 08:56:37 +0000 Subject: [PATCH] [kernel] Clarify AssertStatement offset fields MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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 Commit-Queue: Ömer Ağacan --- pkg/kernel/lib/ast.dart | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/pkg/kernel/lib/ast.dart b/pkg/kernel/lib/ast.dart index 2bc6a025c18..e8505f8be7f 100644 --- a/pkg/kernel/lib/ast.dart +++ b/pkg/kernel/lib/ast.dart @@ -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` 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` source. + /// Character offset in the source ([Source.text]) where the assertion + /// condition ends. int conditionEndOffset; @override