Skip to content

Commit a0a35b7

Browse files
committed
comment
1 parent 1c2e3b7 commit a0a35b7

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

ghcide/src/Development/IDE/Spans/AtPoint.hs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -179,6 +179,7 @@ documentHighlight hf rf pos = pure highlights
179179
then DocumentHighlightKind_Write
180180
else DocumentHighlightKind_Read
181181

182+
-- | Locate the type definition of the name at a given position.
182183
gotoTypeDefinition
183184
:: MonadIO m
184185
=> WithHieDb
@@ -306,6 +307,7 @@ atPoint IdeOptions{} (HAR _ hf _ _ (kind :: HieKind hietype)) (DKMap dm km) env
306307
UnhelpfulLoc {} | isInternalName name || isSystemName name -> Nothing
307308
_ -> Just $ "*Defined " <> printOutputable (pprNameDefnLoc name) <> "*"
308309

310+
-- | Find 'Location's of type definition at a specific point and return them along with their 'Identifier's.
309311
typeLocationsAtPoint
310312
:: forall m
311313
. MonadIO m
@@ -352,6 +354,7 @@ namesInType _ = []
352354
getTypes :: [Type] -> [Name]
353355
getTypes ts = concatMap namesInType ts
354356

357+
-- | Find 'Location's of definition at a specific point and return them along with their 'Identifier's.
355358
locationsAtPoint
356359
:: forall m a
357360
. MonadIO m

0 commit comments

Comments
 (0)