This commit is contained in:
harupy 2022-12-12 22:36:34 +09:00
parent f5ce9517fd
commit d13b27dcf0

View file

@ -439,7 +439,8 @@ TryStatement: ast::Stmt = {
.last() .last()
.map(|last| last.end_location) .map(|last| last.end_location)
.or_else(|| orelse.last().map(|last| last.end_location)) .or_else(|| orelse.last().map(|last| last.end_location))
.unwrap_or_else(|| handlers.last().unwrap().end_location); .or_else(|| handlers.last().map(|last| last.end_location))
.unwrap();
ast::Stmt { ast::Stmt {
custom: (), custom: (),
location, location,