1
1
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:
Rob Rix 2019-06-11 12:57:27 -04:00
parent c8d1de416d
commit ead494ad3f
No known key found for this signature in database
GPG Key ID: F188A01508EA1CF7

View File

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