mirror of
https://github.com/github/semantic.git
synced 2024-12-27 17:05:33 +03:00
Compile not statements.
This commit is contained in:
parent
e7c7910760
commit
9d0afb4f0a
@ -350,7 +350,11 @@ instance Compile Py.None where
|
||||
compile _it cc _ = cc (prelude ["None"])
|
||||
|
||||
instance Compile Py.NonlocalStatement
|
||||
instance Compile Py.NotOperator
|
||||
|
||||
instance Compile Py.NotOperator where
|
||||
compile _it@Py.NotOperator{ argument } cc next = do
|
||||
val <- compile argument pure next
|
||||
cc (prelude ["not"] $$ val)
|
||||
|
||||
instance Compile Py.ParenthesizedExpression where
|
||||
compile it@Py.ParenthesizedExpression { extraChildren } cc
|
||||
|
Loading…
Reference in New Issue
Block a user