Skip to content

Commit d9729fd

Browse files
committed
add type_bound_text in constructor
1 parent f539111 commit d9729fd

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
@@ -67,6 +67,10 @@ impl SyntaxFactory {
6767
make::type_bound(bound).clone_for_update()
6868
}
6969

70+
pub fn type_bound_text(&self, bound: &str) -> ast::TypeBound {
71+
make::type_bound_text(bound).clone_for_update()
72+
}
73+
7074
pub fn type_bound_list(
7175
&self,
7276
bounds: impl IntoIterator<Item = ast::TypeBound>,

0 commit comments

Comments
 (0)