Skip to content

Commit

Permalink
Fix offsets in comment.
Browse files Browse the repository at this point in the history
  • Loading branch information
munificent committed Aug 14, 2024
1 parent 393d0a4 commit 1f59e98
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/src/back_end/code.dart
Original file line number Diff line number Diff line change
Expand Up @@ -306,9 +306,9 @@ class _StringBuilder {
// `on` turns formatting back on, and `more` is formatted code at the
// end.
//
// We know the beginning of the unformatted region is at offset 10
// We know the beginning of the unformatted region is at offset 15
// (just after the comment) in the original ource. We know the
// selection marker is at offset 16 in the original source. From that,
// selection marker is at offset 21 in the original source. From that,
// we know the selection marker should end up 6 code points after the
// beginning of the unformatted region in the resulting output.
switch (code._marker) {
Expand Down

0 comments on commit 1f59e98

Please sign in to comment.