Safe Haskell | Safe-Inferred |
---|---|
Language | Haskell2010 |
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
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" "hls-code-range-plugin-1.0.0.0-Hwsy2N5hjyYKdLXMmsj4nz" '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
Generic CodeRangeKind Source # | |
Defined in Ide.Plugin.CodeRange.Rules type Rep CodeRangeKind :: Type -> Type # from :: CodeRangeKind -> Rep CodeRangeKind x # to :: Rep CodeRangeKind x -> CodeRangeKind # | |
Show CodeRangeKind Source # | |
Defined in Ide.Plugin.CodeRange.Rules showsPrec :: Int -> CodeRangeKind -> ShowS # show :: CodeRangeKind -> String # showList :: [CodeRangeKind] -> ShowS # | |
NFData CodeRangeKind Source # | |
Defined in Ide.Plugin.CodeRange.Rules rnf :: CodeRangeKind -> () # | |
type Rep CodeRangeKind Source # | |
Defined in Ide.Plugin.CodeRange.Rules type Rep CodeRangeKind = D1 ('MetaData "CodeRangeKind" "Ide.Plugin.CodeRange.Rules" "hls-code-range-plugin-1.0.0.0-Hwsy2N5hjyYKdLXMmsj4nz" '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 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 #