aboutsummaryrefslogtreecommitdiff
path: root/lib/src/make.rs
diff options
context:
space:
mode:
Diffstat (limited to 'lib/src/make.rs')
-rw-r--r--lib/src/make.rs4
1 files changed, 4 insertions, 0 deletions
diff --git a/lib/src/make.rs b/lib/src/make.rs
index 217ba12..44adae6 100644
--- a/lib/src/make.rs
+++ b/lib/src/make.rs
@@ -24,6 +24,10 @@ pub fn parenthesize(node: &SyntaxNode) -> types::Paren {
24 ast_from_text(&format!("({})", node)) 24 ast_from_text(&format!("({})", node))
25} 25}
26 26
27pub fn quote(node: &SyntaxNode) -> types::Str {
28 ast_from_text(&format!("\"{}\"", node))
29}
30
27pub fn unary_not(node: &SyntaxNode) -> types::UnaryOp { 31pub fn unary_not(node: &SyntaxNode) -> types::UnaryOp {
28 ast_from_text(&format!("!{}", node)) 32 ast_from_text(&format!("!{}", node))
29} 33}