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