1
1
mirror of https://github.com/github/semantic.git synced 2024-12-27 17:05:33 +03:00
This commit is contained in:
Patrick Thomson 2019-09-23 12:33:45 -04:00
parent 54b5d379ea
commit 46c7d45865

View File

@ -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)