mirror of
https://github.com/github/semantic.git
synced 2024-12-23 06:41:45 +03:00
Document setCharacterRange.
This commit is contained in:
parent
8cae8fe049
commit
73f8cd56e0
@ -18,6 +18,7 @@ data Annotated a annotation f = Annotated { annotation :: !annotation, syntax ::
|
||||
data Info = Info { characterRange :: !Range, categories :: !(Set Category) }
|
||||
deriving (Eq, Show)
|
||||
|
||||
-- | Return a new Info by replacing its characterRange.
|
||||
setCharacterRange :: Info -> Range -> Info
|
||||
setCharacterRange info range = Info range (Diff.categories info)
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user