chore: remove comment from syn tree

This commit is contained in:
Jonathan Kelley 2022-12-28 12:05:13 -05:00
parent 14bc007c15
commit d22577082c
2 changed files with 0 additions and 5 deletions

View file

@ -297,8 +297,6 @@ impl DynamicMapping {
BodyNode::Text(text) if text.is_static() => {} BodyNode::Text(text) if text.is_static() => {}
BodyNode::Comment(_) => {}
BodyNode::RawExpr(_) BodyNode::RawExpr(_)
| BodyNode::Text(_) | BodyNode::Text(_)
| BodyNode::ForLoop(_) | BodyNode::ForLoop(_)

View file

@ -38,7 +38,6 @@ pub enum BodyNode {
IfChain(ExprIf), IfChain(ExprIf),
Text(IfmtInput), Text(IfmtInput),
RawExpr(Expr), RawExpr(Expr),
Comment(UserComment),
} }
impl BodyNode { impl BodyNode {
@ -54,7 +53,6 @@ impl BodyNode {
BodyNode::RawExpr(exp) => exp.span(), BodyNode::RawExpr(exp) => exp.span(),
BodyNode::ForLoop(fl) => fl.for_token.span(), BodyNode::ForLoop(fl) => fl.for_token.span(),
BodyNode::IfChain(f) => f.if_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 { impl ToTokens for BodyNode {
fn to_tokens(&self, tokens: &mut TokenStream2) { fn to_tokens(&self, tokens: &mut TokenStream2) {
match &self { match &self {
BodyNode::Comment(_) => {}
BodyNode::Element(el) => el.to_tokens(tokens), BodyNode::Element(el) => el.to_tokens(tokens),
BodyNode::Component(comp) => comp.to_tokens(tokens), BodyNode::Component(comp) => comp.to_tokens(tokens),
BodyNode::Text(txt) => tokens.append_all(quote! { BodyNode::Text(txt) => tokens.append_all(quote! {