Fix API of Attr

This commit is contained in:
uHOOCCOOHu 2019-09-30 05:15:03 +08:00
parent 71efdaa636
commit 5a4b4f507e
No known key found for this signature in database
GPG key ID: CED392DE0C483D00
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)
}
}