mirror of https://github.com/mtshiba/pylyzer
Update convert.rs
This commit is contained in:
parent
4988282d9e
commit
4a606c4646
|
|
@ -313,7 +313,7 @@ impl ASTConverter {
|
||||||
UnaryOperator::Pos => (TokenKind::PrePlus, "+"),
|
UnaryOperator::Pos => (TokenKind::PrePlus, "+"),
|
||||||
// UnaryOperator::Not => (TokenKind::PreBitNot, "not"),
|
// UnaryOperator::Not => (TokenKind::PreBitNot, "not"),
|
||||||
UnaryOperator::Neg => (TokenKind::PreMinus, "-"),
|
UnaryOperator::Neg => (TokenKind::PreMinus, "-"),
|
||||||
UnaryOperator::Inv => (TokenKind::Minus, "~"),
|
UnaryOperator::Inv => (TokenKind::PreBitNot, "~"),
|
||||||
_ => { return Expr::Dummy(Dummy::new(vec![rhs])) }
|
_ => { return Expr::Dummy(Dummy::new(vec![rhs])) }
|
||||||
};
|
};
|
||||||
let op = Token::from_str(kind, cont);
|
let op = Token::from_str(kind, cont);
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue