Fix API of Attr

This commit is contained in:
uHOOCCOOHu
2019-09-30 05:15:03 +08:00
parent 71efdaa636
commit 5a4b4f507e
9 changed files with 32 additions and 54 deletions

View File

@@ -99,7 +99,7 @@ pub trait AttrsOwner: AstNode {
children(self)
}
fn has_atom_attr(&self, atom: &str) -> bool {
self.attrs().filter_map(|x| x.as_atom()).any(|x| x == atom)
self.attrs().filter_map(|x| x.as_simple_atom()).any(|x| x == atom)
}
}