Safe Haskell | Safe-Inferred |
---|---|
Language | GHC2021 |
Synopsis
- data CodeRange = CodeRange {}
- codeRange_range :: Lens' CodeRange Range
- codeRange_children :: Lens' CodeRange (Vector CodeRange)
- codeRange_kind :: Lens' CodeRange CodeRangeKind
- data CodeRangeKind
- data GetCodeRange = GetCodeRange
- codeRangeRule :: Recorder (WithPriority Log) -> Rules ()
- data Log
- removeInterleaving :: [CodeRange] -> Writer [Log] [CodeRange]
- simplify :: CodeRange -> CodeRange
- crkToFrk :: CodeRangeKind -> FoldingRangeKind
Documentation
A tree representing code ranges in a file. This can be useful for features like selection range and folding range
CodeRange | |
|
Instances
Generic CodeRange Source # | |
Show CodeRange Source # | |
NFData CodeRange Source # | |
Defined in Ide.Plugin.CodeRange.Rules | |
Eq CodeRange Source # | |
Ord CodeRange Source # | |
Defined in Ide.Plugin.CodeRange.Rules | |
type Rep CodeRange Source # | |
Defined in Ide.Plugin.CodeRange.Rules type Rep CodeRange = D1 ('MetaData "CodeRange" "Ide.Plugin.CodeRange.Rules" "haskell-language-server-2.9.0.0-4S5Vh3BPyyeJWzPv4aazqb-hls-code-range-plugin" 'False) (C1 ('MetaCons "CodeRange" 'PrefixI 'True) (S1 ('MetaSel ('Just "_codeRange_range") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 Range) :*: (S1 ('MetaSel ('Just "_codeRange_children") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 (Vector CodeRange)) :*: S1 ('MetaSel ('Just "_codeRange_kind") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 CodeRangeKind)))) |
data CodeRangeKind Source #
CodeKind
represents the kind of a code range
CodeKindRegion | ordinary code |
CodeKindImports | the group of imports |
CodeKindComment | a comment |
Instances
data GetCodeRange Source #
Instances
Generic GetCodeRange Source # | |
Defined in Ide.Plugin.CodeRange.Rules type Rep GetCodeRange :: Type -> Type # from :: GetCodeRange -> Rep GetCodeRange x # to :: Rep GetCodeRange x -> GetCodeRange # | |
Show GetCodeRange Source # | |
Defined in Ide.Plugin.CodeRange.Rules showsPrec :: Int -> GetCodeRange -> ShowS # show :: GetCodeRange -> String # showList :: [GetCodeRange] -> ShowS # | |
NFData GetCodeRange Source # | |
Defined in Ide.Plugin.CodeRange.Rules rnf :: GetCodeRange -> () # | |
Eq GetCodeRange Source # | |
Defined in Ide.Plugin.CodeRange.Rules (==) :: GetCodeRange -> GetCodeRange -> Bool # (/=) :: GetCodeRange -> GetCodeRange -> Bool # | |
Hashable GetCodeRange Source # | |
Defined in Ide.Plugin.CodeRange.Rules hashWithSalt :: Int -> GetCodeRange -> Int # hash :: GetCodeRange -> Int # | |
type Rep GetCodeRange Source # | |
type RuleResult GetCodeRange Source # | |
Defined in Ide.Plugin.CodeRange.Rules |
codeRangeRule :: Recorder (WithPriority Log) -> Rules () Source #
Internal
removeInterleaving :: [CodeRange] -> Writer [Log] [CodeRange] Source #
Remove interleaving of the list of CodeRange
s.
crkToFrk :: CodeRangeKind -> FoldingRangeKind Source #
Maps type CodeRangeKind to FoldingRangeKind