We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent eabb84b commit f643d45Copy full SHA for f643d45
1 file changed
crates/syntax/src/ast/syntax_factory/constructors.rs
@@ -1470,6 +1470,22 @@ impl SyntaxFactory {
1470
ast
1471
}
1472
1473
+ pub fn record_expr_field_list(
1474
+ &self,
1475
+ fields: impl IntoIterator<Item = ast::RecordExprField>,
1476
+ ) -> ast::RecordExprFieldList {
1477
+ let (fields, input) = iterator_input(fields);
1478
+ let ast = make::record_expr_field_list(fields).clone_for_update();
1479
+
1480
+ if let Some(mut mapping) = self.mappings() {
1481
+ let mut builder = SyntaxMappingBuilder::new(ast.syntax().clone());
1482
+ builder.map_children(input, ast.fields().map(|f| f.syntax().clone()));
1483
+ builder.finish(&mut mapping);
1484
+ }
1485
1486
+ ast
1487
1488
1489
pub fn record_expr_field(
1490
&self,
1491
name: ast::NameRef,
0 commit comments