File tree Expand file tree Collapse file tree 1 file changed +6
-9
lines changed
ghcide/src/Development/IDE/Spans Expand file tree Collapse file tree 1 file changed +6
-9
lines changed Original file line number Diff line number Diff line change @@ -94,20 +94,18 @@ instance Show Bindings where
94
94
show _ = " <bindings>"
95
95
96
96
97
- ------------------------------------------------------------------------------
98
- -- | Given a 'Bindings' get every identifier in scope at the given
99
- -- 'RealSrcSpan',
100
- getLocalScope :: Bindings -> RealSrcSpan -> [(Name , Maybe Type )]
97
+ getLocalScope :: Bindings -- ^ Given a 'Bindings'
98
+ -> RealSrcSpan -- ^ in scope at the given 'RealSrcSpan'
99
+ -> [(Name , Maybe Type )] -- ^ return every identifier.
101
100
getLocalScope bs rss
102
101
= nameEnvElts
103
102
$ foldMap snd
104
103
$ IM. dominators (realSrcSpanToInterval rss)
105
104
$ getLocalBindings bs
106
105
107
- ------------------------------------------------------------------------------
108
- -- | Given a 'Bindings', get every binding currently active at a given
109
- -- 'RealSrcSpan',
110
- getDefiningBindings :: Bindings -> RealSrcSpan -> [(Name , Maybe Type )]
106
+ getDefiningBindings :: Bindings -- ^ Given a 'Bindings'
107
+ -> RealSrcSpan -- ^ at a given 'RealSrcSpan'
108
+ -> [(Name , Maybe Type )] -- ^ return bindings currently active
111
109
getDefiningBindings bs rss
112
110
= nameEnvElts
113
111
$ foldMap snd
@@ -137,4 +135,3 @@ getFuzzyDefiningBindings bs a b
137
135
$ foldMap snd
138
136
$ IM. intersections (Interval a b)
139
137
$ getBindingSites bs
140
-
You can’t perform that action at this time.
0 commit comments