@@ -5,8 +5,7 @@ module Outline (
5
5
outlineTests
6
6
) where
7
7
8
- import qualified Ide.Plugin.Cabal.Outline as Outline
9
- import qualified Language.LSP.Protocol.Types as LSP
8
+ import Ide.Plugin.Cabal.Outline (defDocumentSymbol )
10
9
import Test.Hls
11
10
import Utils
12
11
@@ -39,32 +38,37 @@ outlineTests =
39
38
[sectionArgDocumentSymbol]
40
39
]
41
40
where
42
- fieldDocumentSymbol = (Outline. defDocumentSymbol (LSP. Range {_start = LSP. Position {_line = 0 , _character = 0 },
43
- _end = LSP. Position {_line = 0 , _character = 8 }}))
44
- { LSP. _name = " homepage" ,
45
- LSP. _kind = LSP. SymbolKind_Field ,
46
- LSP. _children = Nothing
41
+ fieldDocumentSymbol :: DocumentSymbol
42
+ fieldDocumentSymbol = (defDocumentSymbol (Range {_start = Position {_line = 0 , _character = 0 },
43
+ _end = Position {_line = 0 , _character = 8 }}))
44
+ { _name = " homepage" ,
45
+ _kind = SymbolKind_Field ,
46
+ _children = Nothing
47
47
}
48
- fieldLineDocumentSymbol = (Outline. defDocumentSymbol (LSP. Range {_start = LSP. Position {_line = 0 , _character = 0 },
49
- _end = LSP. Position {_line = 0 , _character = 13 }}))
50
- { LSP. _name = " cabal-version" ,
51
- LSP. _kind = LSP. SymbolKind_Field ,
52
- LSP. _children = Nothing -- the values of fieldLine are removed from the outline
48
+ fieldLineDocumentSymbol :: DocumentSymbol
49
+ fieldLineDocumentSymbol = (defDocumentSymbol (Range {_start = Position {_line = 0 , _character = 0 },
50
+ _end = Position {_line = 0 , _character = 13 }}))
51
+ { _name = " cabal-version" ,
52
+ _kind = SymbolKind_Field ,
53
+ _children = Nothing -- the values of fieldLine are removed from the outline
53
54
}
54
- sectionDocumentSymbol = (Outline. defDocumentSymbol (LSP. Range {_start = LSP. Position {_line = 0 , _character = 2 },
55
- _end = LSP. Position {_line = 0 , _character = 15 }}))
56
- { LSP. _name = " build-depends" ,
57
- LSP. _kind = LSP. SymbolKind_Field ,
58
- LSP. _children = Nothing -- the values of fieldLine are removed from the outline
55
+ sectionDocumentSymbol :: DocumentSymbol
56
+ sectionDocumentSymbol = (defDocumentSymbol (Range {_start = Position {_line = 0 , _character = 2 },
57
+ _end = Position {_line = 0 , _character = 15 }}))
58
+ { _name = " build-depends" ,
59
+ _kind = SymbolKind_Field ,
60
+ _children = Nothing -- the values of fieldLine are removed from the outline
59
61
}
60
- sectionArgDocumentSymbol = (Outline. defDocumentSymbol (LSP. Range {_start = LSP. Position {_line = 0 , _character = 2 },
61
- _end = LSP. Position {_line = 0 , _character = 19 }}))
62
- { LSP. _name = " if os ( windows )" ,
63
- LSP. _kind = LSP. SymbolKind_Object ,
64
- LSP. _children = Just $ [sectionArgChildrenDocumentSymbol] }
65
- sectionArgChildrenDocumentSymbol = (Outline. defDocumentSymbol (LSP. Range {_start = LSP. Position {_line = 1 , _character = 4 },
66
- _end = LSP. Position {_line = 1 , _character = 17 }}))
67
- { LSP. _name = " build-depends" ,
68
- LSP. _kind = LSP. SymbolKind_Field ,
69
- LSP. _children = Nothing
62
+ sectionArgDocumentSymbol :: DocumentSymbol
63
+ sectionArgDocumentSymbol = (defDocumentSymbol (Range {_start = Position {_line = 0 , _character = 2 },
64
+ _end = Position {_line = 0 , _character = 19 }}))
65
+ { _name = " if os ( windows )" ,
66
+ _kind = SymbolKind_Object ,
67
+ _children = Just $ [sectionArgChildrenDocumentSymbol] }
68
+ sectionArgChildrenDocumentSymbol :: DocumentSymbol
69
+ sectionArgChildrenDocumentSymbol = (defDocumentSymbol (Range {_start = Position {_line = 1 , _character = 4 },
70
+ _end = Position {_line = 1 , _character = 17 }}))
71
+ { _name = " build-depends" ,
72
+ _kind = SymbolKind_Field ,
73
+ _children = Nothing
70
74
}
0 commit comments