mirror of
https://github.com/github/semantic.git
synced 2024-12-22 06:11:49 +03:00
Revert "O(1) length."
This reverts commit db4025e8daacf7a8a716b5ddc621b6053cff768f.
This commit is contained in:
parent
8e241ef71d
commit
7d019b9032
@ -114,7 +114,7 @@ rangeToSourceSpan source range@Range{} = SourceSpan startPos endPos
|
||||
toEndPos line range = SourcePos line (end range)
|
||||
|
||||
length :: Source -> Int
|
||||
length = rangeLength . sourceRange
|
||||
length = Text.length . sourceText
|
||||
|
||||
null :: Source -> Bool
|
||||
null = Text.null . sourceText
|
||||
|
Loading…
Reference in New Issue
Block a user