diff options
Diffstat (limited to 'lib/src/make.rs')
-rw-r--r-- | lib/src/make.rs | 5 |
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 { | |||
83 | pub fn empty() -> types::Root { | 83 | pub fn empty() -> types::Root { |
84 | ast_from_text("") | 84 | ast_from_text("") |
85 | } | 85 | } |
86 | |||
87 | // TODO: make `op` strongly typed here | ||
88 | pub fn binary(lhs: &SyntaxNode, op: &str, rhs: &SyntaxNode) -> types::BinOp { | ||
89 | ast_from_text(&format!("{} {} {}", lhs, op, rhs)) | ||
90 | } | ||