File tree Expand file tree Collapse file tree 1 file changed +3
-0
lines changed
ghcide/src/Development/IDE/Spans Expand file tree Collapse file tree 1 file changed +3
-0
lines changed Original file line number Diff line number Diff line change @@ -179,6 +179,7 @@ documentHighlight hf rf pos = pure highlights
179
179
then DocumentHighlightKind_Write
180
180
else DocumentHighlightKind_Read
181
181
182
+ -- | Locate the type definition of the name at a given position.
182
183
gotoTypeDefinition
183
184
:: MonadIO m
184
185
=> WithHieDb
@@ -306,6 +307,7 @@ atPoint IdeOptions{} (HAR _ hf _ _ (kind :: HieKind hietype)) (DKMap dm km) env
306
307
UnhelpfulLoc {} | isInternalName name || isSystemName name -> Nothing
307
308
_ -> Just $ " *Defined " <> printOutputable (pprNameDefnLoc name) <> " *"
308
309
310
+ -- | Find 'Location's of type definition at a specific point and return them along with their 'Identifier's.
309
311
typeLocationsAtPoint
310
312
:: forall m
311
313
. MonadIO m
@@ -352,6 +354,7 @@ namesInType _ = []
352
354
getTypes :: [Type ] -> [Name ]
353
355
getTypes ts = concatMap namesInType ts
354
356
357
+ -- | Find 'Location's of definition at a specific point and return them along with their 'Identifier's.
355
358
locationsAtPoint
356
359
:: forall m a
357
360
. MonadIO m
You can’t perform that action at this time.
0 commit comments