Safe Haskell | Safe-Inferred |
---|---|
Language | Haskell2010 |
Ide.Plugin.CodeRange.Rules
Contents
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
Constructors
CodeRange | |
Fields
|
Instances
Generic CodeRange # | |
Show CodeRange # | |
NFData CodeRange # | |
Defined in Ide.Plugin.CodeRange.Rules | |
Eq CodeRange # | |
Ord CodeRange # | |
Defined in Ide.Plugin.CodeRange.Rules | |
type Rep CodeRange # | |
Defined in Ide.Plugin.CodeRange.Rules type Rep CodeRange = D1 ('MetaData "CodeRange" "Ide.Plugin.CodeRange.Rules" "hls-code-range-plugin-2.4.0.0-AiN60Ym4QGI7QZa2YvfyAz" '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 #
CodeKind
represents the kind of a code range
Constructors
CodeKindRegion | ordinary code |
CodeKindImports | the group of imports |
CodeKindComment | a comment |
Instances
Generic CodeRangeKind # | |
Defined in Ide.Plugin.CodeRange.Rules Associated Types type Rep CodeRangeKind :: Type -> Type | |
Show CodeRangeKind # | |
Defined in Ide.Plugin.CodeRange.Rules Methods showsPrec :: Int -> CodeRangeKind -> ShowS # show :: CodeRangeKind -> String # showList :: [CodeRangeKind] -> ShowS # | |
NFData CodeRangeKind # | |
Defined in Ide.Plugin.CodeRange.Rules Methods rnf :: CodeRangeKind -> () # | |
Eq CodeRangeKind # | |
Defined in Ide.Plugin.CodeRange.Rules Methods (==) :: CodeRangeKind -> CodeRangeKind -> Bool # (/=) :: CodeRangeKind -> CodeRangeKind -> Bool # | |
type Rep CodeRangeKind # | |
Defined in Ide.Plugin.CodeRange.Rules type Rep CodeRangeKind = D1 ('MetaData "CodeRangeKind" "Ide.Plugin.CodeRange.Rules" "hls-code-range-plugin-2.4.0.0-AiN60Ym4QGI7QZa2YvfyAz" 'False) (C1 ('MetaCons "CodeKindRegion" 'PrefixI 'False) (U1 :: Type -> Type) :+: (C1 ('MetaCons "CodeKindImports" 'PrefixI 'False) (U1 :: Type -> Type) :+: C1 ('MetaCons "CodeKindComment" 'PrefixI 'False) (U1 :: Type -> Type))) |
data GetCodeRange #
Constructors
GetCodeRange |
Instances
Generic GetCodeRange # | |
Defined in Ide.Plugin.CodeRange.Rules Associated Types type Rep GetCodeRange :: Type -> Type | |
Show GetCodeRange # | |
Defined in Ide.Plugin.CodeRange.Rules Methods showsPrec :: Int -> GetCodeRange -> ShowS # show :: GetCodeRange -> String # showList :: [GetCodeRange] -> ShowS # | |
NFData GetCodeRange # | |
Defined in Ide.Plugin.CodeRange.Rules Methods rnf :: GetCodeRange -> () # | |
Eq GetCodeRange # | |
Defined in Ide.Plugin.CodeRange.Rules | |
Hashable GetCodeRange # | |
Defined in Ide.Plugin.CodeRange.Rules | |
type Rep GetCodeRange # | |
Defined in Ide.Plugin.CodeRange.Rules type Rep GetCodeRange = D1 ('MetaData "GetCodeRange" "Ide.Plugin.CodeRange.Rules" "hls-code-range-plugin-2.4.0.0-AiN60Ym4QGI7QZa2YvfyAz" 'False) (C1 ('MetaCons "GetCodeRange" 'PrefixI 'False) (U1 :: Type -> Type)) | |
type RuleResult GetCodeRange # | |
Defined in Ide.Plugin.CodeRange.Rules |
codeRangeRule :: Recorder (WithPriority Log) -> Rules () #
Internal
removeInterleaving :: [CodeRange] -> Writer [Log] [CodeRange] #
Remove interleaving of the list of CodeRange
s.
crkToFrk :: CodeRangeKind -> FoldingRangeKind #
Maps type CodeRangeKind to FoldingRangeKind