mirror of
https://github.com/github/semantic.git
synced 2024-11-23 08:27:56 +03:00
Future proof.
This commit is contained in:
parent
9cb6556499
commit
c367494e4b
@ -179,9 +179,9 @@ declareMaybeName :: ScopeGraphEff sig m
|
||||
=> Maybe Name
|
||||
-> Props.Declaration
|
||||
-> m Name
|
||||
declareMaybeName maybeName props = do
|
||||
declareMaybeName maybeName props@(Props.Declaration kind _ associatedScope span) = do
|
||||
case maybeName of
|
||||
Just name -> name <$ declare name props
|
||||
_ -> do
|
||||
name <- Name.gensym
|
||||
name <$ declare name (props { Props.relation = ScopeGraph.Gensym })
|
||||
name <$ declare name (Props.Declaration kind ScopeGraph.Gensym associatedScope span)
|
||||
|
Loading…
Reference in New Issue
Block a user