/// The record expr of the field name we are completing
RecordExpr(ast::RecordExpr),
// Original file ast node
+ /// The record expr of the functional update syntax we are completing
+ RecordExprUpdate(ast::RecordExpr),
+ // Original file ast node
/// The record pat of the field name we are completing
RecordPat(ast::RecordPat),
}
},
ast::RecordExprFieldList(_it) => sema
.find_node_at_offset_with_macros(original_file, offset)
- .map(ImmediateLocation::RecordExpr)?,
+ .map(ImmediateLocation::RecordExprUpdate)?,
ast::TupleField(_it) => ImmediateLocation::TupleField,
ast::TupleFieldList(_it) => ImmediateLocation::TupleField,
ast::TypeBound(_it) => ImmediateLocation::TypeBound,