mirror of
https://github.com/github/semantic.git
synced 2024-12-15 01:51:39 +03:00
Simplify some fmaps.
This commit is contained in:
parent
db823182a7
commit
92a82f0bd2
@ -206,8 +206,8 @@ instance Evaluatable Class where
|
||||
(Just scope, Just frame) -> Just (scope, frame)
|
||||
_ -> Nothing
|
||||
|
||||
let superclassEdges = fmap (Superclass, ) . fmap (pure . fst) . catMaybes $ superScopes
|
||||
current = fmap (Lexical, ) . pure . pure $ currentScope'
|
||||
let superclassEdges = (Superclass, ) . pure . fst <$> catMaybes superScopes
|
||||
current = (Lexical, ) <$> pure (pure currentScope')
|
||||
edges = Map.fromList (superclassEdges <> current)
|
||||
childScope <- newScope edges
|
||||
declare (Declaration name) span (Just childScope)
|
||||
|
Loading…
Reference in New Issue
Block a user