mirror of https://github.com/mtshiba/pylyzer
Update convert.rs
This commit is contained in:
parent
b9fa9982bc
commit
058e4b97d6
|
|
@ -1054,7 +1054,7 @@ impl ASTConverter {
|
||||||
.keywords
|
.keywords
|
||||||
.into_iter()
|
.into_iter()
|
||||||
.map(|Keyword { arg, value, range }| {
|
.map(|Keyword { arg, value, range }| {
|
||||||
let name = arg.unwrap();
|
let name = arg.unwrap_or(rustpython_ast::Identifier::new("_"));
|
||||||
let name = Token::symbol_with_loc(name.to_string(), pyloc_to_ergloc(range));
|
let name = Token::symbol_with_loc(name.to_string(), pyloc_to_ergloc(range));
|
||||||
let ex = self.convert_expr(value);
|
let ex = self.convert_expr(value);
|
||||||
KwArg::new(name, None, ex)
|
KwArg::new(name, None, ex)
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue