mirror of
https://github.com/github/semantic.git
synced 2024-11-24 08:54:07 +03:00
These are incurred by IfStatement.
This commit is contained in:
parent
c8d1de416d
commit
ead494ad3f
@ -27,10 +27,8 @@ instance Compile Py.Module where
|
||||
|
||||
deriving via CompileSum Py.CompoundStatement instance Compile Py.CompoundStatement
|
||||
|
||||
instance Compile Py.Block
|
||||
instance Compile Py.ClassDefinition
|
||||
instance Compile Py.DecoratedDefinition
|
||||
instance Compile Py.Expression
|
||||
|
||||
instance Compile Py.IfStatement where
|
||||
compile IfStatement{..} = If <$> compile condition <*> compile consequence <*> case alternative of
|
||||
@ -39,6 +37,9 @@ instance Compile Py.IfStatement where
|
||||
where clause (Left (ElifClause{..})) rest = If <$> compile condition <*> compile consequence <*> rest
|
||||
clause (Right (ElseClause body)) _ = compile body
|
||||
|
||||
instance Compile Py.Block
|
||||
instance Compile Py.Expression
|
||||
|
||||
instance Compile Py.ForStatement
|
||||
instance Compile Py.FunctionDefinition
|
||||
instance Compile Py.TryStatement
|
||||
|
Loading…
Reference in New Issue
Block a user