1
1
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:
Rob Rix 2017-02-10 16:44:00 -05:00
parent 8e241ef71d
commit 7d019b9032

View File

@ -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