Skip to content

Commit

Permalink
Lint
Browse files Browse the repository at this point in the history
  • Loading branch information
raararaara committed Jul 4, 2024
1 parent 28761ac commit 3dfcc78
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions pkg/document/crdt/text.go
Original file line number Diff line number Diff line change
Expand Up @@ -18,12 +18,12 @@ package crdt

import (
"fmt"
"github.com/yorkie-team/yorkie/pkg/llrb"
"github.com/yorkie-team/yorkie/pkg/splay"
"strings"
"unicode/utf16"

"github.com/yorkie-team/yorkie/pkg/document/time"
"github.com/yorkie-team/yorkie/pkg/llrb"
"github.com/yorkie-team/yorkie/pkg/splay"
)

// TextValue is a value of Text which has an attributes that represent
Expand Down Expand Up @@ -369,6 +369,7 @@ func (t *Text) CheckWeight() bool {
return t.rgaTreeSplit.CheckWeight()
}

// TreeByIndex returns IndexTree of the text for debugging purpose.
func (t *Text) TreeByIndex() *splay.Tree[*RGATreeSplitNode[*TextValue]] {
return t.rgaTreeSplit.treeByIndex
}
Expand Down

0 comments on commit 3dfcc78

Please sign in to comment.