From d22577082ceff5f579a3d8ca30e7562db7ad3a73 Mon Sep 17 00:00:00 2001 From: Jonathan Kelley Date: Wed, 28 Dec 2022 12:05:13 -0500 Subject: [PATCH] chore: remove comment from syn tree --- packages/rsx/src/lib.rs | 2 -- packages/rsx/src/node.rs | 3 --- 2 files changed, 5 deletions(-) diff --git a/packages/rsx/src/lib.rs b/packages/rsx/src/lib.rs index 4b33a71c8..7946a7132 100644 --- a/packages/rsx/src/lib.rs +++ b/packages/rsx/src/lib.rs @@ -297,8 +297,6 @@ impl DynamicMapping { BodyNode::Text(text) if text.is_static() => {} - BodyNode::Comment(_) => {} - BodyNode::RawExpr(_) | BodyNode::Text(_) | BodyNode::ForLoop(_) diff --git a/packages/rsx/src/node.rs b/packages/rsx/src/node.rs index eb2f95a42..c83655cb0 100644 --- a/packages/rsx/src/node.rs +++ b/packages/rsx/src/node.rs @@ -38,7 +38,6 @@ pub enum BodyNode { IfChain(ExprIf), Text(IfmtInput), RawExpr(Expr), - Comment(UserComment), } impl BodyNode { @@ -54,7 +53,6 @@ impl BodyNode { BodyNode::RawExpr(exp) => exp.span(), BodyNode::ForLoop(fl) => fl.for_token.span(), BodyNode::IfChain(f) => f.if_token.span(), - BodyNode::Comment(c) => c.span, } } } @@ -143,7 +141,6 @@ impl Parse for BodyNode { impl ToTokens for BodyNode { fn to_tokens(&self, tokens: &mut TokenStream2) { match &self { - BodyNode::Comment(_) => {} BodyNode::Element(el) => el.to_tokens(tokens), BodyNode::Component(comp) => comp.to_tokens(tokens), BodyNode::Text(txt) => tokens.append_all(quote! {