We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a6635ca commit bf0b4d5Copy full SHA for bf0b4d5
plugins/hls-signature-help-plugin/src/Ide/Plugin/SignatureHelp.hs
@@ -148,7 +148,9 @@ extractInfoFromSmallestContainingFunctionApplicationAst position hieAsts extract
148
type Annotation = (FastStringCompat, FastStringCompat)
149
150
nodeHasAnnotation :: Annotation -> HieAST a -> Bool
151
-nodeHasAnnotation annotation = sourceNodeInfo >>> maybe False (isAnnotationInNodeInfo annotation)
+nodeHasAnnotation annotation hieAst = case sourceNodeInfo hieAst of
152
+ Nothing -> False
153
+ Just nodeInfo -> isAnnotationInNodeInfo annotation nodeInfo
154
155
-- TODO(@linj): the left most node may not be the function node. example: (if True then f else g) x
156
getLeftMostNode :: HieAST a -> HieAST a
0 commit comments