Unnamed repository; edit this file 'description' to name the repository.
add type_bound_text in constructor
| -rw-r--r-- | crates/syntax/src/ast/syntax_factory/constructors.rs | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/crates/syntax/src/ast/syntax_factory/constructors.rs b/crates/syntax/src/ast/syntax_factory/constructors.rs index c66f096e83..c92f7ec6f3 100644 --- a/crates/syntax/src/ast/syntax_factory/constructors.rs +++ b/crates/syntax/src/ast/syntax_factory/constructors.rs @@ -67,6 +67,10 @@ impl SyntaxFactory { make::type_bound(bound).clone_for_update() } + pub fn type_bound_text(&self, bound: &str) -> ast::TypeBound { + make::type_bound_text(bound).clone_for_update() + } + pub fn type_bound_list( &self, bounds: impl IntoIterator<Item = ast::TypeBound>, |