Skip to content

Commit 09250f9

Browse files
committed
add expr_self in syntax factory constructor
1 parent 7228912 commit 09250f9

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

crates/syntax/src/ast/syntax_factory/constructors.rs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,10 @@ impl SyntaxFactory {
2929
make::ext::expr_todo().clone_for_update()
3030
}
3131

32+
pub fn expr_self(&self) -> ast::Expr {
33+
make::ext::expr_self().clone_for_update()
34+
}
35+
3236
pub fn lifetime(&self, text: &str) -> ast::Lifetime {
3337
make::lifetime(text).clone_for_update()
3438
}

0 commit comments

Comments
 (0)