aboutsummaryrefslogtreecommitdiff
path: root/lib/src/make.rs
diff options
context:
space:
mode:
authorAkshay <[email protected]>2021-11-04 11:36:02 +0000
committerAkshay <[email protected]>2021-11-04 11:36:02 +0000
commit07d39899d32ed4c7ae822e98f4a8b28c72c48a99 (patch)
tree93968790365f238e8138669182cefab764ceae31 /lib/src/make.rs
parent5b87c6feb3e4a2fcc30ad94125be3dcd4e554754 (diff)
new lint: deprecated_is_null
Diffstat (limited to 'lib/src/make.rs')
-rw-r--r--lib/src/make.rs5
1 files changed, 5 insertions, 0 deletions
diff --git a/lib/src/make.rs b/lib/src/make.rs
index 44adae6..c36fa7e 100644
--- a/lib/src/make.rs
+++ b/lib/src/make.rs
@@ -83,3 +83,8 @@ pub fn ident(text: &str) -> types::Ident {
83pub fn empty() -> types::Root { 83pub fn empty() -> types::Root {
84 ast_from_text("") 84 ast_from_text("")
85} 85}
86
87// TODO: make `op` strongly typed here
88pub fn binary(lhs: &SyntaxNode, op: &str, rhs: &SyntaxNode) -> types::BinOp {
89 ast_from_text(&format!("{} {} {}", lhs, op, rhs))
90}