Fix renaming super keyword

This commit is contained in:
TheDoctor314 2022-02-08 21:28:32 +05:30
parent add80bccfc
commit 10e7e18dc6

View File

@ -343,6 +343,10 @@ fn source_edit_from_name_ref(
new_name: &str,
def: Definition,
) -> bool {
if name_ref.super_token().is_some() {
return true;
}
if let Some(record_field) = ast::RecordExprField::for_name_ref(name_ref) {
let rcf_name_ref = record_field.name_ref();
let rcf_expr = record_field.expr();