diff options
author | uHOOCCOOHu <[email protected]> | 2019-09-30 09:09:02 +0100 |
---|---|---|
committer | uHOOCCOOHu <[email protected]> | 2019-09-30 09:17:54 +0100 |
commit | f7e12559cb26b59a9a2ecee4deecaf6fe9100d16 (patch) | |
tree | d17395e4c3f7965c5cf9bdd50ef940e52eef1155 /crates/ra_syntax/src/ast | |
parent | 5a4b4f507e9b90bfe41b451763868cba0a70c392 (diff) |
Fixes
Diffstat (limited to 'crates/ra_syntax/src/ast')
-rw-r--r-- | crates/ra_syntax/src/ast/extensions.rs | 9 |
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 | ||
38 | impl ast::Attr { | 38 | impl 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(), |