mirror of
https://github.com/github/semantic.git
synced 2024-12-28 09:21:35 +03:00
Combine lets.
This commit is contained in:
parent
cbda7cf344
commit
ecaa5a1671
@ -207,8 +207,8 @@ instance Compile Py.ClassDefinition where
|
|||||||
|
|
||||||
body <- compile pybody buildTypeCall next
|
body <- compile pybody buildTypeCall next
|
||||||
let coreName = Name.named' n
|
let coreName = Name.named' n
|
||||||
let assignClass = coreName :<- (rec coreName body)
|
assignClass = coreName :<- (rec coreName body)
|
||||||
let continuing = fmap (locate it . (assignClass >>>=))
|
continuing = fmap (locate it . (assignClass >>>=))
|
||||||
continuing (local (def n) (cc next))
|
continuing (local (def n) (cc next))
|
||||||
|
|
||||||
instance Compile Py.ComparisonOperator
|
instance Compile Py.ComparisonOperator
|
||||||
|
Loading…
Reference in New Issue
Block a user