This commit is contained in:
uHOOCCOOHu 2019-09-30 16:09:02 +08:00
parent 5a4b4f507e
commit f7e12559cb
No known key found for this signature in database
GPG key ID: CED392DE0C483D00
2 changed files with 8 additions and 19 deletions

View file

@ -36,15 +36,6 @@ fn text_of_first_token(node: &SyntaxNode) -> &SmolStr {
}
impl ast::Attr {
pub fn is_inner(&self) -> bool {
let prev = match self.syntax().prev_sibling() {
None => return false,
Some(prev) => prev,
};
prev.kind() == T![!]
}
pub fn as_simple_atom(&self) -> Option<SmolStr> {
match self.input() {
None => self.simple_name(),