aboutsummaryrefslogtreecommitdiff
path: root/crates/ra_syntax/src/ast/extensions.rs
diff options
context:
space:
mode:
Diffstat (limited to 'crates/ra_syntax/src/ast/extensions.rs')
-rw-r--r--crates/ra_syntax/src/ast/extensions.rs9
1 files changed, 0 insertions, 9 deletions
diff --git a/crates/ra_syntax/src/ast/extensions.rs b/crates/ra_syntax/src/ast/extensions.rs
index a7b886457..cefc00402 100644
--- a/crates/ra_syntax/src/ast/extensions.rs
+++ b/crates/ra_syntax/src/ast/extensions.rs
@@ -36,15 +36,6 @@ fn text_of_first_token(node: &SyntaxNode) -> &SmolStr {
36} 36}
37 37
38impl ast::Attr { 38impl ast::Attr {
39 pub fn is_inner(&self) -> bool {
40 let prev = match self.syntax().prev_sibling() {
41 None => return false,
42 Some(prev) => prev,
43 };
44
45 prev.kind() == T![!]
46 }
47
48 pub fn as_simple_atom(&self) -> Option<SmolStr> { 39 pub fn as_simple_atom(&self) -> Option<SmolStr> {
49 match self.input() { 40 match self.input() {
50 None => self.simple_name(), 41 None => self.simple_name(),