mirror of
https://github.com/github/semantic.git
synced 2024-12-26 08:25:19 +03:00
Enter assignment RHS values during scope graphing.
We were neglecting to enter this RHS. A happy little call to `maybe` addresses this.
This commit is contained in:
parent
b5fb41e7e4
commit
2c71d82636
@ -87,8 +87,10 @@ scopeGraphModule = getAp . scopeGraph
|
||||
instance ToScopeGraph Py.AssertStatement where scopeGraph = onChildren
|
||||
|
||||
instance ToScopeGraph Py.Assignment where
|
||||
scopeGraph (Py.Assignment _ (SingleIdentifier t) _val _typ) = complete <* declare @Name (formatName t) DeclProperties
|
||||
scopeGraph x = todo x
|
||||
scopeGraph (Py.Assignment _ (SingleIdentifier t) val _typ) = do
|
||||
declare @Name (formatName t) DeclProperties
|
||||
maybe complete scopeGraph val
|
||||
scopeGraph x = todo x
|
||||
|
||||
instance ToScopeGraph Py.Await where
|
||||
scopeGraph (Py.Await _ a) = scopeGraph a
|
||||
|
Loading…
Reference in New Issue
Block a user