wip: more cleanup, more tests

This commit is contained in:
Jonathan Kelley committed 2022-06-27 16:24:36 -04:00
1 parent a2a194ca40
commit d70b436157
10 files changed
+560 -423

No files matched your search

+10
View File
@@ -209,6 +209,16 @@ pub enum ElementAttr {
/// onclick: {}
EventTokens { name: Ident, tokens: Expr },
}
impl ElementAttr {
pub fn is_expr(&self) -> bool {
matches!(
self,
ElementAttr::AttrExpression { .. }
| ElementAttr::CustomAttrExpression { .. }
| ElementAttr::EventTokens { .. }
)
}
}
#[derive(PartialEq, Eq)]
pub struct ElementAttrNamed {