mirror of
https://github.com/github/semantic.git
synced 2024-12-27 00:44:57 +03:00
Cleanup.
This commit is contained in:
parent
54b5d379ea
commit
46c7d45865
@ -118,7 +118,8 @@ instance Compile (Py.Assignment Span) where
|
||||
, Py.right = Just rhs
|
||||
} cc = do
|
||||
value <- compile rhs
|
||||
locate it =<< ((Name.named' name :<- value) >>>=) <$> local (def name) cc
|
||||
let assigning n = (Name.named' name :<- value) >>>= n
|
||||
locate it =<< assigning <$> local (def name) cc
|
||||
compileCC other _ = fail ("Unhandled assignment case: " <> show other)
|
||||
compile t = compileCC t (pure none)
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user