minor: Add ty_infer constructor to SyntaxFactory

This commit is contained in:
Giga Bowser
2024-12-10 12:33:32 -05:00
parent d9bb8fcab1
commit 26e7e4f748
@@ -18,6 +18,14 @@ pub fn ty(&self, text: &str) -> ast::Type {
make::ty(text).clone_for_update()
}
pub fn ty_infer(&self) -> ast::InferType {
let ast::Type::InferType(ast) = make::ty_placeholder().clone_for_update() else {
unreachable!()
};
ast
}
pub fn type_param(
&self,
name: ast::Name,