Skip to content

Commit abab015

Browse files
committed
comment
1 parent fa0afb9 commit abab015

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

crates/ide_assists/src/handlers/extract_variable.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -171,6 +171,7 @@ fn get_receiver_type(ctx: &AssistContext, expression: &ast::Expr) -> Option<hir:
171171
Some(ctx.sema.type_of_expr(&receiver)?.original())
172172
}
173173

174+
/// In the expression `a.b.c.x()`, find `a`
174175
fn get_receiver(expression: ast::Expr) -> Option<ast::Expr> {
175176
match expression {
176177
ast::Expr::FieldExpr(field) if field.expr().is_some() => {

0 commit comments

Comments
 (0)